Guest nubbins Posted March 15, 2005 Share Posted March 15, 2005 (edited) hey guys, im kind of new to basic, i got refered to autoit by a friend. I already have a script from another macro program called AC tools and i need help translating it into basic heres the code: loop 999999999 delay 50 constants 1 = 40 2 = 50 1sum = 2sum = end compute 1sum = TRUNC(1.25 * $1 + 230) compute 2sum = TRUNC(1.25 * $2 + 456) if {activewindow} = Untitled, notepad isblack $1sum, 562 loop 25 keys {return} end isblack $2sum, 561 loop 5 keys {return} end end end else stop end end it basicly checks to see if the active window is "untitled, notepad" and if it is, it checks the colour of a pixel and if the colour of the pixel is black return is pressed 25 times then goes on to check if another pixel is black and if it is return is pressed 5 times. then does it all again in the next loop. if the active window isnt "untitled, notepad" the string just stops. if the first pixel isnt black it doesnt do anything and just goes on to check the second pixel. if the second pixel isnt black the string starts over again in the next loop. im not really good at explaining things so sorry if it isnt clear thx in advance Edited March 15, 2005 by nubbins Link to comment Share on other sites More sharing options...
Blue_Drache Posted March 15, 2005 Share Posted March 15, 2005 (edited) hey guys, im kind of new to basic, i got refered to autoit by a friend. I already have a script from another macro program called AC tools and i need help translating it into basic heres the code: <...>it basicly checks to see if the active window is "untitled, notepad" and if it is, it checks the colour of a pixel and if the colour of the pixel is black return is pressed 25 times then goes on to check if another pixel is black and if it is return is pressed 5 times. then does it all again in the next loop.if the active window isnt "untitled, notepad" the string just stops.if the first pixel isnt black it doesnt do anything and just goes on to check the second pixel.if the second pixel isnt black the string starts over again in the next loop.im not really good at explaining things so sorry if it isnt clear thx in advance <{POST_SNAPBACK}>Look in the help file for:PixelSearch()WinWait()While/WEndWinActivateSend() Edited March 15, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Guest nubbins Posted March 16, 2005 Share Posted March 16, 2005 oo thx, ill read up on it, probably need more help tho Link to comment Share on other sites More sharing options...
Blue_Drache Posted March 16, 2005 Share Posted March 16, 2005 oo thx, ill read up on it, probably need more help tho <{POST_SNAPBACK}>Not a problem, just give a shout if you get stuck again. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache 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