Scripty Posted October 22, 2012 Share Posted October 22, 2012 don't ask me what it is for but i need this Do sleep until PixelGetColor(339, 575, $hwnd) = "0x4E4F4E" but there is a small chance that the pixel does not occur so can i do somthing like this: Do sleep; until PixelGetColor(339, 575, $hwnd) = "0x4E4F4E" if pixel not appear within 10 sec then continue from line 211 ( in the script ) and if so, how Link to comment Share on other sites More sharing options...
FireFox Posted October 22, 2012 Share Posted October 22, 2012 don't ask me what it is for And what is it for ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 22, 2012 Moderators Share Posted October 22, 2012 Scripty,don't ask me what it is forStarting your post with a comment like that makes me want to lock the tread without further ado. Please engage your brain before posting in future and try not to play us for fools. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Scripty Posted October 22, 2012 Author Share Posted October 22, 2012 (edited) its for a game i want it to leave the game and restart it if the pixel not appear when i want the pixel to appear thats all Edited October 22, 2012 by Melba23 Restored post after deletion by the OP Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 22, 2012 Moderators Share Posted October 22, 2012 Please see the forum rules, which specifically prohibit discussion of game automation. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 22, 2012 Moderators Share Posted October 22, 2012 (edited) Scripty,I see my initial impression of your intelligence was not mistaken. Please do as JLogan3o13 suggests and read the Forum Rules - particularly the bit about not discussing game automation - before you post again. Thread locked. M23P.S. And we can restore deleted posts - so you cannot hide that easily. Edited October 22, 2012 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts