Witam chciałem napisać bota do gry soccerstar online który wybierał by misję z największą ilością popularności a jak misja by dobiegła końca wybierał by drugą misję i tak w kółko napisałem takie coś ale mi nie działa:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$p = 5
$kp = 5
$misja= select missions popularity
$Form1 = GUICreate("Form1", 267, 203, 192, 124)
$Button4 = GUICtrlCreateButton("Start bota", 0, 0, 52, 19, $WS_GROUP)
$Button5 = GUICtrlCreateButton("Info", 52, 0, 52, 19, $WS_GROUP)
$Button1 = GUICtrlCreateButton("misja 1", 16, 40, 73, 105, $WS_GROUP)
$Button2 = GUICtrlCreateButton("misja 2", 96, 40, 73, 105, $WS_GROUP)
$Button3 = GUICtrlCreateButton("misja 3", 176, 40, 73, 105, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("Komp: "&$kp&"", 184, 16, 45, 17)
GUISetState(@SW_SHOW)
while 1
Case $Button4
$a = MsgBox(4,"Włacz bota do gry soccer star")
GUICtrlSetOnEvent + shellexecute http://s2.soccerstar.pl/
select work
Case $Button5
$a = MsgBox(5,"Jest to bot do gry soccer star zaloguj sie do gry wlacz bota i patrz jak rosnie twoja popularnosc")
Case $Button1
If $misja= 1 Then
$p = $p + 1
$kp = $kp - 1
GUICtrlDelete($Label1)
$Label1 = GUICtrlCreateLabel("Komp: "&$kp&"", 184, 16, 45, 17)
EndIf
Case $Button2
If $misja = 2 Then
$p = $p + 1
$kp = $kp - 1
GUICtrlDelete($Label1)
$Label1 = GUICtrlCreateLabel("Komp: "&$kp&"", 184, 16, 45, 17)
EndIf
Case $Button3
If $misja = 3 Then
$p = $p + 1
$kp = $kp - 1
GUICtrlDelete($Label1)
$Label1 = GUICtrlCreateLabel("Komp: "&$kp&"", 184, 16, 45, 17)
EndIf
Exit
EndIf
EndIf
EndSwitch
WEnd