| View previous topic :: View next topic |
| Author |
Message |
Christipher
Joined: 12 Mar 2005 Posts: 3
|
Posted: Sun Mar 13, 2005 1:38 am Post subject: Help need with Creating an Script |
|
|
Hello,
Im new at AutoHotkey and I would like to know if it is possible to create this type of Script.
If a pixel on an selected pixel on Monitor Area XY Changes Color my mouse will click automatic on XY Area on Monitor.
Hope for Help
Thankx |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5107 Location: eth0 ::1
|
Posted: Sun Mar 13, 2005 1:42 am Post subject: |
|
|
Something like: | Code: | xpos =
ypos =
PixelGetColor, OutputVar, %xpos%, %ypos%
If OutputVar = ...
MouseClick, Left, %xpos%, %ypos%
else
MsgBox, 16, Error, Colour not found
Return
|
See: PixelSearch, PixelGetColor, MouseClick _________________
RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Christipher
Joined: 12 Mar 2005 Posts: 3
|
Posted: Sun Mar 13, 2005 4:30 am Post subject: Thankx but one error. |
|
|
You done well...wow just one little thing.
It press at same area where it gets the color. I need it too press on different xpos and ypos.
Can you change that ? |
|
| Back to top |
|
 |
Christipher
Joined: 12 Mar 2005 Posts: 3
|
Posted: Sun Mar 13, 2005 5:26 am Post subject: Another thing.... |
|
|
| And it must work with hotkey and on an html site. |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Sun Mar 13, 2005 12:17 pm Post subject: |
|
|
| Quote: | | Can you change that ? | What about to change that yourself ? Tell me - what d'ya think are the conditions which have to be fullfilled to catch the second, third, ..., next occurence of a pixel with that color ! |
|
| Back to top |
|
 |
|