| View previous topic | View next topic |
| Author |
Message |
pkerkid Site Admin
Joined: 20 Oct 2007 Posts: 65 Votes: 0 (0)
|
Posted: Post subject: Launch Warrock from a form |
|
|
You will need:
Little bit of knowledge
VB6
Lets startby making 1 Button and 1 Textbox.
Click the text box now go change the name to
txtprocess The name not the caption ok the name.
And now in the caption u will put this:
C:\Program Files\WarRock\WRLauncher.exe
Ok now you can double click on the button and enter this:
Dim sTemp As String
'
' Start the process.
'
sTemp = Trim$(txtprocess)
If sTemp = "" Then Exit Sub
glPid = Shell(sTemp, vbNormalFocus)
If glPid = 0 Then
MsgBox "Could not start process", vbExclamation, "Error"
End If
Thats it Now just hide the text box behind a button then try it out.
Or
| Code: | Commandbutton1_Click
Shell "C:\Program Files\WarRock\WRLauncher.exe"
End Sub |
you can use smomething else instead of command button |
|
|
... |
|
Back to top |
doom7126 Noob
Joined: 24 Mar 2008 Posts: 23 Votes: 0 (0)
|
Posted: Post subject: |
|
|
| wow yea i cant do this plz help |
|
|
... |
|
Back to top |
pkerkid Site Admin
Joined: 20 Oct 2007 Posts: 65 Votes: 0 (0)
|
Posted: Post subject: |
|
|
| Do you have Vb6 installed? |
|
|
... |
|
Back to top |
wester050 Noob
Joined: 08 Mar 2008 Posts: 15 Votes: 0 (0)
|
Posted: Post subject: |
|
|
| now i understand vb6 and have had a little exp. wit it but still need some help lol |
|
|
... |
|
Back to top |