redman12 Posted March 11, 2019 Posted March 11, 2019 okay so if im using pixel search to find a certain color, but then the menu closes i want it to stop searching for the pixle or to pause search, untill another command is ran like sleep or mouseclick whatever, then once that command is done it will continiue to pixle search and do what ever the do loop says if it finds the pixle
Skeletor Posted March 11, 2019 Posted March 11, 2019 WoW.. sounds like cool application you building, whats it used for? 😛 Kind RegardsSkeletor "Coffee: my defense against going postal." Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI
redman12 Posted March 11, 2019 Author Posted March 11, 2019 nothing, im just playing around with the program only learnt about it 2 days ago
Skeletor Posted March 11, 2019 Posted March 11, 2019 Okay, good start... Show us the code so we can help you modify it... Kind RegardsSkeletor "Coffee: my defense against going postal." Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI
redman12 Posted March 11, 2019 Author Posted March 11, 2019 (edited) HotKeySet("{F8}", "ex") $x = WinActivate("Document - WordPad") Local $paste = 1 Global $pix = True if $pix = True Then EndIf Do $pix = PixelSearch(-1919, 0, -12, 1004, 0xFFFF00, 5) MouseClick("right", $pix[0], $pix[1],1,1) Sleep (850) MouseClick("left", $pix[0] + 15, $pix[1] + 55,1,1) Sleep(2000) $paste = $paste + 1 Until $paste = 1 MouseClick("right", -1450, 35,1,1) MouseClick("right", -1455, 34,1,1) Func ex() MsgBox(0,"Exiting", "close") Exit EndFunc after it does the first bit it says Quote Subscript used on non-accessible variable.: MouseClick("right", $pix[0], $pix[1],1,1) MouseClick("right", $pix^ ERROR in the console Edited March 11, 2019 by redman12
Skeletor Posted March 11, 2019 Posted March 11, 2019 That mean that there are to many variables or less variables than what the array is expecting. Kind RegardsSkeletor "Coffee: my defense against going postal." Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI
redman12 Posted March 11, 2019 Author Posted March 11, 2019 so how do i get around this? how can i fix it so it doesnt happen and keeps going on with rest of commands
Developers Jos Posted March 11, 2019 Developers Posted March 11, 2019 @redman12, You seriously think this is now within our forum rules when you change a few things in the same script that was previously not allowed. You better read those rules properly now as this is your final warning. Jos 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