Jasio Posted April 2, 2006 Share Posted April 2, 2006 how do i just make something run forever until i stop it manually.. also, is it possible to stop it when i click "P" or another key? Link to comment Share on other sites More sharing options...
greenmachine Posted April 2, 2006 Share Posted April 2, 2006 HotKeySet ("p", "quitme") While 1 Sleep (100); just sleeps forever.... WEnd Func quitme() Exit EndFunc Link to comment Share on other sites More sharing options...
Jasio Posted April 2, 2006 Author Share Posted April 2, 2006 i dont understand this While 1 Sleep (100); just sleeps forever.... WEnd Link to comment Share on other sites More sharing options...
Jasio Posted April 2, 2006 Author Share Posted April 2, 2006 Another question.. is it possible to have the program locate text, or a specific image and click on it? Link to comment Share on other sites More sharing options...
greenmachine Posted April 2, 2006 Share Posted April 2, 2006 While 1 / WEnd is an infinite loop. Sleep is just that. Link to comment Share on other sites More sharing options...
evilertoaster Posted April 2, 2006 Share Posted April 2, 2006 (edited) It might be clearer to say- While 1=1; Stay in the loop as long as 1 is equal to 1 (always ^_^ ) Sleep(100) Wend Does that help? While 1 is kinda just "shorthand" or so... Edited April 2, 2006 by evilertoaster Link to comment Share on other sites More sharing options...
greenmachine Posted April 2, 2006 Share Posted April 2, 2006 Another question.. is it possible to have the program locate text, or a specific image and click on it?More details please.. where would this text or image be? Link to comment Share on other sites More sharing options...
Jasio Posted April 2, 2006 Author Share Posted April 2, 2006 This text/image appears on a different spot, on a website, every time it is clicked.. so i want the script to search the entire page for the image.. if you want i can post a picture of it.. the text isnt "highlightable" so im not sure if the bot can read it.. thanks Link to comment Share on other sites More sharing options...
greenmachine Posted April 2, 2006 Share Posted April 2, 2006 Use IE.au3 for work with websites. http://www.autoitscript.com/forum/index.php?showtopic=13398Post the image and I'll check it out. Link to comment Share on other sites More sharing options...
Jasio Posted April 2, 2006 Author Share Posted April 2, 2006 Link to comment Share on other sites More sharing options...
Jasio Posted April 2, 2006 Author Share Posted April 2, 2006 Can anyone help with making the script find the "Start Research !" button and clicking it? Link to comment Share on other sites More sharing options...
greenmachine Posted April 2, 2006 Share Posted April 2, 2006 Where did you find that image? In other words... give me the link to the site (or post source) so I can see how to automate it. Link to comment Share on other sites More sharing options...
kcd-clan Posted April 2, 2006 Share Posted April 2, 2006 (edited) hotkeyset("p","stop") while 1 msgbox(0,"HAHAHAHA","This is going to happen for ever.");The todo wend func stop() EXIT endfunc I dont get it the image aprear any where on the site or script Edited April 2, 2006 by kcd-clan Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone() Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 2, 2006 Share Posted April 2, 2006 u must tell us where you want the button to appear, your gonna have to make a GUI if you want it to be a button, or splashimage to just to put it on the screen, u got to tell us what u want it to do Link to comment Share on other sites More sharing options...
Jasio Posted April 3, 2006 Author Share Posted April 3, 2006 i want the script to FIND the button.. not create it (thatsgreat2345).. the button was off of a webpage.. but you have to be a member to get on itBasically the program i want plays the game for you.. simple enough, but every time you click the "Start Research !" button, the page reloads (after researching). I want the program to find the button (it moves up or down, because a different message is displayed every time you click it (randomly).. Clicking each spot its possible to land on doesnt work, because there are other things to click that would take you off of the site or to another page.. Link to comment Share on other sites More sharing options...
slightly_abnormal Posted April 3, 2006 Share Posted April 3, 2006 (edited) so if i set while 1 to while 0 it should quit the loop? but keep the script? hotkeyset("{esc}","end") while 1 msgbox(0,"Massage me",".....") WEnd func end() while 0 msgbox(0,"Massage me",".....") wend EndFunc Edited April 3, 2006 by slightly_abnormal 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