How to run a game directly from a trainer
I am trying to use openfiledialog1
with one button
i need when the button is clicked the without makeng the use to select the file to run the game
All in all i need this button
Open Game
to open the game directly
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Using ofd As New OpenFileDialog
If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim p As New Process
p.StartInfo.FileName = ofd.FileName
p.Start()
End If
End Using
End Sub
|
?
ok but where can i put the game name?
almost i dont need to show the openfiledialog
i need to open the game without selecting it
(28.07.2011, 04:19)giassamarkos schrieb: [ -> ]i need to open the game without selecting it
Code:
Dim p As New Process
p.StartInfo.FileName = "C:\game\game.exe"
p.Start()
|
thanks but how can i make a
[code=VB]
Messagebox.Show("Game not found.Place the trainer into the game.exe folder")
[/code]
How can i put that when the game file is not found?
(28.07.2011, 20:13)giassamarkos schrieb: [ -> ]thanks but how can i make a
[code=VB]
Messagebox.Show("Game not found.Place the trainer into the game.exe folder")
[/code]
How can i put that when the game file is not found?
Hey,
take a look at if-cases :
http://www.google.de/#sclient=psy&hl=de&...80&bih=920
i know that when i do that with the p.start it turns that there isnt the selected file when i do the if compare with the filename it turns with win32exception unhandled
without opendialog use shellexecute xD i find this method better than opendialog for a trainer
all solved