zeusxdd Posted May 27, 2019 Share Posted May 27, 2019 Hey guys im trying to make a bot ( newbie ), i have a error that says variable used without being declared even if i declared it. Can you guys help me? My code : #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <ImageSearch.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 125, 71, 192, 124) $Button1 = GUICtrlCreateButton("Starten", 24, 40, 75, 25) $Label1 = GUICtrlCreateLabel("ZEUS BOT XDD", 16, 16, 84, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 botbaslat() EndSwitch WEnd Global $x, $y Func botbaslat() WinActivate("#mein-herz-in-flammen - Discord") Local $search = _ImageSearch('ses.png',0,$x,$y,10) if $search = 1 Then MouseClick("left") Else MsgBox(0,"Error", "Error") EndIf EndFunc Error that im getting: >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\scripts\denemexdd\lollebotte.au3" "D:\scripts\denemexdd\lollebotte.au3" (27) : ==> Variable used without being declared.: Local $search = _ImageSearch('ses.png',0,$x,$y,10) Local $search = _ImageSearch('ses.png',0,^ ERROR >Exit code: 1 Time: 5.835 Link to comment Share on other sites More sharing options...
zeusxdd Posted May 27, 2019 Author Share Posted May 27, 2019 Discord just for trying the imagesearch, i will do it for a game. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted May 27, 2019 Share Posted May 27, 2019 2 minutes ago, zeusxdd said: i will do it for a game. Which is against Forum Rules Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
zeusxdd Posted May 27, 2019 Author Share Posted May 27, 2019 1 minute ago, FrancescoDiMuro said: Which is against Forum Rules Oops Link to comment Share on other sites More sharing options...
Developers Jos Posted May 27, 2019 Developers Share Posted May 27, 2019 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts