a6point6 Posted March 11, 2020 Posted March 11, 2020 Im befabbled about what is wrong here: This works: while $inn=9 $c=PixelSearch(504,443,551,635,0x3269c8,2) if not @error Then mouseclick("left",$c[0]+4,$c[1]+3,4,2) $inn=10 EndIf WEnd This gives error: Subscript used on non-accessible variable mousemove($c[0],$c[1],2) mousemove($c^ ERROR while $inn=10 send("{TAB}") $c=PixelSearch(945,750,995,999,0x84c569,2) sleep(200) if not @error Then mousemove($c[0],$c[1],2) $inn=11 EndIf wend Anyone got an idea? Yes $c is called at the start of the script.
Nine Posted March 11, 2020 Posted March 11, 2020 What application are you trying to automate ? It seems very much like a game related script. Have you read the forum rules ? “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
Danp2 Posted March 11, 2020 Posted March 11, 2020 30 minutes ago, a6point6 said: $c=PixelSearch(945,750,995,999,0x84c569,2) sleep(200) if not @error Then You need to move the Sleep command. Otherwise, you lose the @error result from the prior command. a6point6 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
a6point6 Posted March 11, 2020 Author Posted March 11, 2020 57 minutes ago, Nine said: What application are you trying to automate ? It seems very much like a game related script. Have you read the forum rules ? It is not for a game, im a "Schleich" seller but i have over 5000 figures, and need an automated seller script for uploading them for auctions...
a6point6 Posted March 11, 2020 Author Posted March 11, 2020 32 minutes ago, Danp2 said: You need to move the Sleep command. Otherwise, you lose the @error result from the prior command. Thanx a bunch.. didnt know that
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now