Button ; <

04/09/2010 16:47 mipez#16
Quote:
Originally Posted by Dostrix View Post
nothing : <
Code:
While 1
$msg = GUIGetMsg()
Switch $msg
Case $button
start()
...
EndSwitch
WEnd

Func start()
$path = "C:\Documents and Settings\Rafał\Pulpit\Dostrix Bot"
ShellExecute($path & "\Jedzenie.exe","", $path)
EndFunc
I dunno, maybe your path's wrong... it works with my progs.

Or tell me the error message... if there is one.
04/10/2010 09:31 Dostrix#17
i daont have any one error, but its dont work...
when i press button, then nothing....
04/10/2010 10:23 .nAno#18
PHP Code:
$yourBotsName "BOT.exe"
ShellExecute $yourBotsName"", @ScriptDir "\" ) 
works ;)
04/10/2010 11:23 Dostrix#19
Quote:
Originally Posted by .nAno View Post
PHP Code:
$yourBotsName "BOT.exe"
ShellExecute $yourBotsName"", @ScriptDir "\" ) 
works ;)

ok its work : >
ty ^.^
and i have one question about button

How i can set this:
Code:
$sIni = @ScriptDir & "\config.ini"
$sData = "Key1=" & (GUICtrlRead($input1)) & @LF & "Key2=" & (GUICtrlRead($input2)) & @LF & "Key3=" & (GUICtrlRead($input3))
IniWriteSection($sIni, "Config", $sData)
$aData1 = IniReadSection($sIni, "Config")
to button? When i press button, its made .ini


PS. In hotkey its work, but button dont work ; <
and why when i write "5" in input1 and i save it, in .ini its write "1" ?
04/11/2010 15:51 Wellard#20
Thanks for the information.