Hey!
How i can set to button run exe program?
I click to button and next program (exe) started
thanks
How i can set to button run exe program?
I click to button and next program (exe) started
thanks
...wenn schon :PQuote:
Run or ShellExecute
$button = GUICtrlCreateButton (...)
...
Switch GuiGetMsg()
Case $button
ShellExecute (...)
...
EndSwitch
Dim $array_with_executable [3]
$array_with_executable [0] = "C:\Path1"
$array_with_executable [1] = "C:\Path2"
$array_with_executable [2] = "C:\Path3"
$i = 0
$button = GUICtrlCreateButton (...)
...
Switch GuiGetMsg()
Case $button
ShellExecute ($array_with_executable[$i], ... )
$i = $i + 1
...
EndSwitch
Isses nicht leichter einfach eine ShellExecute nach der anderen auszuführen?Quote:
PHP Code:Dim $array_with_executable [3]
$array_with_executable [0] = "C:\Path1"
$array_with_executable [1] = "C:\Path2"
$array_with_executable [2] = "C:\Path3"
$i = 0
$button = GUICtrlCreateButton (...)
...
Switch GuiGetMsg()
Case $button
ShellExecute ($array_with_executable, ... )
$i = $i + 1
...
EndSwitch
While 1
$msg = GUIGetMsg()
Switch $msg
Case $button
ShellExecute("exename","", "yourpath")
ShellExecute("exename","", "yourpath")
ShellExecute("exename","", "yourpath")
...
EndSwitch
WEnd
and i haveQuote:
While 1
$msg = GUIGetMsg()
Switch $msg
Case $button
ShellExecute("Jedzenie","", "C:\Documents and Settings\Rafał\Pulpit\Dostrix Bot")
...
EndSwitch
WEnd
Quote:
$button = GUICtrlCreateButton("Jedzenie", 20, 20, 60, 30)
GUICtrlSetOnEvent($button , "button")
$path = "C:\Documents and Settings\Rafał\Pulpit\Dostrix Bot" ShellExecute($path & "\Jedzenie.exe","", $path)
nothing : <Quote:
While 1
$msg = GUIGetMsg()
Switch $msg
Case $button
$path = "C:\Documents and Settings\Rafał\Pulpit\Dostrix Bot"
ShellExecute($path & "\Jedzenie.exe","", $path)
...
EndSwitch
WEnd