Launch warrock in your trainers,
by Mafiosoi added the source to this at the bottom
things you'll need:
Text box named txtprocess
a button to launch warrock
little bit of vb6 knowledge
add this to the top of your module :
- Quote :
- Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal _
nShowCmd As Long) As Long
then add your button and text box if you havent already
rename the textbox to txtprocess
put this in your button
- Quote :
- 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
then in the text box put your warrock.exe destination like i have here
- Quote :
- C:\Program Files\WarRock\WRLauncher.exe
you can hide the txtbox so its not seen cause its not needed now that
we have the process set to warrock.
and thats all there is to it.