Tunahan Posted February 9, 2022 Posted February 9, 2022 i need help about this code, no matter what i do i can't solve the problem #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <ImageSearch.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 231, 188, 192, 124) $Checkbox1 = GUICtrlCreateCheckbox("kutu topla", 72, 32, 97, 17) $Button1 = GUICtrlCreateButton("basla", 72, 72, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 If GUICtrlRead($Checkbox1) = 1 Then a() EndIf EndSwitch WEnd Func a() Global $x, $y, $ux, $uy, $ax, $ay If _ImageSearch("kutu.png",0, $x, $y,10) 1 Then MouseClick("left", $x+10,$y+10,1,0) ElseIf _ImageSearch("hareket.png",0,0,0,25) = 0 Then _ImageSearch("ust.png",0, $ux, $uy,5) _ImageSearch("alt.png",0, $ax, $ay,5) MouseClick("left", Random($ux, $ax), Random($uy, $ay),1,0) MsgBox(0,0,"Haritaya Tiklandi X:"&$ux&" "&$ax&@CRLF&$uy&" "&$ay) EndIf EndFunc I don't understand what you mean by this error
Nine Posted February 9, 2022 Posted February 9, 2022 put a space before byref “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Tunahan Posted February 9, 2022 Author Posted February 9, 2022 2 hours ago, Nine said: put a space before byref What is byref ?
Developers Jos Posted February 9, 2022 Developers Posted February 9, 2022 14 minutes ago, Tunahan said: What is byref ? Did you actually read the error messages and see what position it is on? So what is this BOT for? 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.
Tunahan Posted February 9, 2022 Author Posted February 9, 2022 29 minutes ago, Jos said: Did you actually read the error messages and see what position it is on? So what is this BOT for? I swear I have read the error text at least a hundred times, but I still do not understand the error, can you please explain? for bot waruniverse
Somerset Posted February 9, 2022 Posted February 9, 2022 3 minutes ago, Tunahan said: I swear I have read the error text at least a hundred times, but I still do not understand the error, can you please explain? for bot waruniverse reported.
Developers Jos Posted February 9, 2022 Developers Posted February 9, 2022 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.
Recommended Posts