Sign in to follow this  
Followers 0
Jasio

Loop Forever..

16 posts in this topic

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?

Share this post


Link to post
Share on other sites



HotKeySet ("p", "quitme")

While 1
    Sleep (100); just sleeps forever....
WEnd

Func quitme()
    Exit
EndFunc

Share this post


Link to post
Share on other sites

i dont understand this

While 1

Sleep (100); just sleeps forever....

WEnd

Share this post


Link to post
Share on other sites

Another question.. is it possible to have the program locate text, or a specific image and click on it?

Share this post


Link to post
Share on other sites

While 1 / WEnd is an infinite loop. Sleep is just that.

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by evilertoaster

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Posted Image

Share this post


Link to post
Share on other sites

Can anyone help with making the script find the "Start Research !" button and clicking it?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#13 ·  Posted (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 by kcd-clan

Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 it

Basically 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..

Share this post


Link to post
Share on other sites

#16 ·  Posted (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 by slightly_abnormal

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0