Ravokion Posted July 19, 2008 Share Posted July 19, 2008 Hey guys. im trying to wright a script that will alow me to scan a set area for a color. im looking to make the area selectable on any resolution. My basic idea is to have 3 buttons set three variables. lets say the B, N, and M keys for example. when you push "B" im wanting it to set the pixle location of where ever the mouse is when "B" is pushed. then when "N" is pushed to set the pixle location of where the mouse is when "N" is pushed. so after selecting a location for both "B" and "N" you mouse over any color within the two variables set for "B" and "N", push "M" and it sets the "M" variable to that color. My intention is to have a Script to constantly search for a selected color withing the box set by the "B" and "N" variables. (if i can get help on this it should have the mouse ALWAYS move to where ever the selected color inside the box is.) Link to comment Share on other sites More sharing options...
BrettF Posted July 19, 2008 Share Posted July 19, 2008 Hey guys. im trying to wright a script that will alow me to scan a set area for a color.im looking to make the area selectable on any resolution. My basic idea is to have 3 buttons set three variables. lets say the B, N, and M keys for example. when you push "B" im wanting it to set the pixle location of where ever the mouse is when "B" is pushed.then when "N" is pushed to set the pixle location of where the mouse is when "N" is pushed. so after selecting a location for both "B" and "N" you mouse over any color within the two variables set for "B" and "N", push "M" and it sets the "M" variable to that color. My intention is to have a Script to constantly search for a selected color withing the box set by the "B" and "N" variables.(if i can get help on this it should have the mouse ALWAYS move to where ever the selected color inside the box is.)Ok.Step 1- Look at PixelSearch ()Step 2- Look at HotkeySet ()Step 3- Look at MouseGetPos ()Step 4- TryStep 5- Post back with what YOU have tried. Working or not. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
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