Marjij Posted July 24, 2009 Share Posted July 24, 2009 Hello, Two things... ============================= #1 First I am tryign to envoke a certain action by CNTRL+SHIFT+F. I have tried: Send("{CTRLDOWN}{SHIFTDOWN}f{SHIFTUP}{CTRLUP}") And occasionally it fires as CNTRL+F without the SHIFT. So I tried the helpflie and started using: Send("^F") which seems to do the same thing.. Now I do not get any CNTRL+F Missfires but.. I had to add a do until loop with a pixel search because it still doesn't always fire it seems.. The script would continue and the action was never envoked.. This is working but causes delays when it requires several retries.. Any suggestions. on a better way to do this with less problems? Current Code: Do Send("^F") Sleep (10000) Until PixelGetColor(1161, 293) = Dec("00FD00") ============================ #2 I have a loop within a loop. It performs a certain action 7 times then continues on with the main script.. Sometimes I have to change something and restart it but the action performed 7 times in the first loop is no longer necessary.. My question is, can I add some sort of feature to skip the inner loop like a hotkey for example and continue on with the rest of the script.. Some code available.. if necessary on request.. Link to comment Share on other sites More sharing options...
qazwsx Posted July 24, 2009 Share Posted July 24, 2009 (edited) Have a variable which changes when the hotkey is pressed. Hotkeyset ("a", "_toggle") Global $toggle = true if $toggle = true local $i = 0 while $i<7 and $toggle = true ;yourloop $i+=1 wend endif Func _toggle () $toggle = not $toggle endfunc Edited July 24, 2009 by qazwsx 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