AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help need with Creating an Script

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Christipher



Joined: 12 Mar 2005
Posts: 3

PostPosted: Sun Mar 13, 2005 1:38 am    Post subject: Help need with Creating an Script Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5107
Location: eth0 ::1

PostPosted: Sun Mar 13, 2005 1:42 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Christipher



Joined: 12 Mar 2005
Posts: 3

PostPosted: Sun Mar 13, 2005 4:30 am    Post subject: Thankx but one error. Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Christipher



Joined: 12 Mar 2005
Posts: 3

PostPosted: Sun Mar 13, 2005 5:26 am    Post subject: Another thing.... Reply with quote

And it must work with hotkey and on an html site.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
BoBo
Guest





PostPosted: Sun Mar 13, 2005 12:17 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group