AutoHotkey Community

It is currently May 24th, 2012, 7:01 am

All times are UTC [ DST ]


Search found 28 matches
Search these results:

Author Message

 Forum: Support   Topic: Toggle key

Posted: December 10th, 2011, 1:41 am 

Replies: 8
Views: 2232


Bobspanky wrote:

<alt::SendInput, % "{LAlt " ((X := !X) ? "Down" : "Up") "}"


Cool! Thanks for this, just what I was looking for

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 24th, 2011, 2:53 pm 

Replies: 57
Views: 1499


The PixelExist function I gave you tells you whether or not a pixel of the given color exists in the given rectange. You can use it in a While Loop. i think he wants you to fill it out like this, however i dont think it will work While PixelExist(0x2727C6, 1045, 562, 1165, 570) And Not Pixe...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 24th, 2011, 1:05 pm 

Replies: 57
Views: 1499


Customize this: While PixelExist(ColorToExist, 0, 0, 50, 50) And Not PixelExist(ColorToNotExist, 0, 0, 50, 50) And Not PixelExist(ColorToNotExist2, 0, 0, 50, 50) And Not PixelExist(ColorToNotExist3, 0, 0, 50, 50) Sleep 50 PixelExist(Color, x1, y1, x2, y2) ...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 24th, 2011, 11:22 am 

Replies: 57
Views: 1499


However, sounds like a problem on your end, not the code's. When you look away, to something else, I bet you're inadvertently passing the first pixel color... The problem is that it does not check for "the old one" each time it check for the three additional ones. I can start the script w...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 24th, 2011, 3:17 am 

Replies: 57
Views: 1499


It sort of works, I run the script and look at something which should make it keep holding Click Down , it does. However, if I move away the mouse from that, it releases automatically. It should only release if it detects the "old one" at the same time the other rectangle is void of the th...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 24th, 2011, 2:50 am 

Replies: 57
Views: 1499


-_- you are explaining this badly. I can't translate your description into code :( Let me try again. This is what I am thinking: If the first PixelSearch finds the "0x2727C6" and one of three colors is detected at a different specific location, it will not release the button, and keep sea...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 24th, 2011, 2:36 am 

Replies: 57
Views: 1499


For example. This script presses down but never releases. It runs once then AHK has to be reloaded to run a second time. H:: Click down search: Loop { PixelSearch, , , 1045, 562, 1165, 570, 0x2727C6, 0, Fast If !ErrorLevel Break Else sleep 150 } PixelSearch,,, 1039, 523, 1132, 545, 0x21CB2...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 23rd, 2011, 10:55 pm 

Replies: 57
Views: 1499


This is my guess, but i probably got the syntax wrong H:: Click down Loop { PixelSearch, OneX, OneY, 1045, 562, 1165, 570, 0x2727C6, 0, Fast PixelSearch, TwoX, TwoY, 1045, 562, 1165, 570, 0x0D7300 0, Fast PixelSearch, ThreeX, ThreeY, 1045, 562, 1165, 570, 0xA6CCC4, 0, Fast If (OneX != &quo...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 23rd, 2011, 9:40 pm 

Replies: 57
Views: 1499


Now, I have another question. Could this script be built upon? I have this idea: If the first pixelsearch finds the "0x2727C6" and one of three colors is detected at a specific location, it will not release the mouse button, and keep searching Here are the colors (the order does not matter...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 23rd, 2011, 9:10 pm 

Replies: 57
Views: 1499


And here's a shorter, more efficient script :D H:: Click down Loop { PixelSearch, , , 1045, 562, 1165, 570, 0x2727C6, 0, Fast If !ErrorLevel break Else sleep 150 } Click up Return You see, it does the same thing, but doesn't use goto to simulate a loop. Instead, it uses the more efficient...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 23rd, 2011, 5:15 pm 

Replies: 57
Views: 1499


go on irc webchat, its a sticky in ask for help :P Thanks a lot for your help ! :) Here's the working script H:: Click down goto, start start: PixelSearch, Px, Py, 1045, 562, 1165, 570, 0x2727C6, 0, Fast If ErrorLevel = 0 goto end Else { sleep 150 goto start } end: Click up Return

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 23rd, 2011, 3:44 pm 

Replies: 57
Views: 1499


maybe loop the whole thing? h:: loop { Click down Tooltip, clicked down Loop { PixelSearch,,, 0, 0, 500, 500, 0x2727C6, 100, Fast RGB If ErrorLevel = 0 Break Else { Return Tooltip, i am searching } } Tooltip, found it Click up Return } Exactly the same as before, this ...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 23rd, 2011, 3:32 pm 

Replies: 57
Views: 1499


if it finds it instantly, it will instantly let go. That's ok, I want it to do that H: Click down Tooltip, clicked down Loop { PixelSearch,,, 0, 0, 500, 500, 0x2727C6, 100, Fast RGB If ErrorLevel = 0 Break Else { Return Tooltip, i am searching } } Tooltip, found it Click up Retu...

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 23rd, 2011, 2:57 pm 

Replies: 57
Views: 1499


x79animal wrote:
turn off any other scripts you have, put this in a new script. maybe something else youve got is messing with it


Nope, no difference :/

 Forum: Support   Topic: PixelSearch script, help needed

Posted: May 23rd, 2011, 2:33 pm 

Replies: 57
Views: 1499


see for yourself H:: msgbox, test 1, down loop { PixelSearch,,, 0, 0, 500, 500, 0x2727C6, 100, Fast RGB if ErrorLevel { sleep 200 return } else Break } msgbox, test 2, up Return It kind of works for me. If I start the script while not looking at what I am searching for, I get th...
Sort by:  
Page 1 of 2 [ Search found 28 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group