X_xkijux_x Posted April 20, 2016 Posted April 20, 2016 Local $aCoord = PixelSearch(0, 0, 20, 300, 0xFF0000) If Not @error Then MsgBox($MB_SYSTEMMODAL, "", "X and Y are: " & $aCoord[0] & "," & $aCoord[1]) EndIf so i got this code but i want it to when it dosent find that collor it will go to the next part in the program so how do i change that ?? and i want it to loop if the color is there can someone plz help me
Bert Posted April 20, 2016 Posted April 20, 2016 what is the name of the application? Using Pixel search is the worst way to interact with a control. There may be a solution already you can use on the forum. The Vollatran project My blog: http://www.vollysinterestingshit.com/
BrewManNH Posted April 20, 2016 Posted April 20, 2016 What is the name of the application you're trying to automate, not the name of the program you're using to do the automation. We already know you're using AutoIt (obviously) otherwise you wouldn't be here. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
X_xkijux_x Posted April 20, 2016 Author Posted April 20, 2016 its a program where the pixel will change after some time so i dont know any other way to do it @BrewManNH
BrewManNH Posted April 20, 2016 Posted April 20, 2016 By your total lack of response I'm going with it's some game, so I'm out. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
X_xkijux_x Posted April 20, 2016 Author Posted April 20, 2016 its for a mail program at work Xd because all the spam mails have a red collor at it @BrewManNH
Bert Posted April 20, 2016 Posted April 20, 2016 the mail program doesn't have routing rules? The Vollatran project My blog: http://www.vollysinterestingshit.com/
X_xkijux_x Posted April 20, 2016 Author Posted April 20, 2016 (edited) Quote no it dosent @Bert Edited April 20, 2016 by X_xkijux_x
Joon Posted April 20, 2016 Posted April 20, 2016 What is the mail client that you are using? If it is web client, you can use IE UDF.
Bert Posted April 21, 2016 Posted April 21, 2016 Does the email provider support POP3? If yes, just use a different email client. The Vollatran project My blog: http://www.vollysinterestingshit.com/
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