Jump to content
Sign in to follow this  
lightning30

Repeat Script?

Recommended Posts

I am looking for a script that will continue to do the script i have made until i press a button to tell it to stop, is there a script ive tried a lot of different things then i get errors in the scripts.

Share this post


Link to post
Share on other sites

mayby this will help i have this so far

CODE
MouseClick("left", 87, 755)

MouseClick("right", 676, 502)

MouseClick("left", 728, 618)

MouseClick("left", 1015, 715,30)

MouseClick("left", 177, 656)

MouseClick("left", 49, 344)

it just deletes my email from my spam box and blocks the emails i want to run it for a little each day so i can hopfully stop getting so many emails, is there a way to put repeat script at the bottom of that? i want it to repeat until i click a button to stop it

Share this post


Link to post
Share on other sites

I am looking for a script that will continue to do the script i have made until i press a button to tell it to stop, is there a script ive tried a lot of different things then i get errors in the scripts.

Post your script or a sample script and you will probably get better response (as in how to do it)

Global $gQuit=false
do
    ;Do you script
until $gQuit
Func StopLoop()
    $gQuit = True
EndFunc

Share this post


Link to post
Share on other sites

ok it gives me this

HotKeySet ( "key" [, "function"] )

what would i change that to if i wanted to to repeat and stop when i press F11?

HotKeySet ( "F11" [, "repeat"] )

HotKeySet ( "F12" [, "stop"] )

?

Share this post


Link to post
Share on other sites

Try this:

Dim $Hotkey

HotKeySet("{F10}","Start")

Func Start()
    $Hotkey = NOT $Hotkey
    If $Hotkey Then ToolTip('Hotkey was pressed',0,0)
    While $Hotkey
        ;Do whatever you want here
    WEnd
    ToolTip("")
EndFuncoÝ÷ Ù8Z¶ÈhºWp¢¹~ØZ¶+'ßÛp«r¢íý­éh¢H§ú+¶§¥êáj"¶+-+ºÚ"µÍ×ÜÝ

HÚ[Ý[ÝØÜ]]Ü[X][ÈÜÝ

BYÛÛ[YHH[[[QÙ]ÚÜ[YJØÜ[]
JB[ÙB[[QÙ]ÚÜ[YJ]]Ò]^JH [È ][ÝÈ  ][ÝÈ  [È[QÙ]ÚÜ[YJØÜ[]
JB[Y^][[

Hope that works,

Kurt

Share this post


Link to post
Share on other sites

Try this:

Dim $Hotkey

HotKeySet("{F10}","Start")

Func Start()
    $Hotkey = NOT $Hotkey
    If $Hotkey Then ToolTip('Hotkey was pressed',0,0)
    While $Hotkey
        ;Do whatever you want here
    WEnd
    ToolTip("")
EndFuncoÝ÷ Ù8Z¶ÈhºWp¢¹~ØZ¶+'ßÛp«r¢íý­éh¢H§ú+¶§¥êáj"¶+-+ºÚ"µÍ×ÜÝ

HÚ[Ý[ÝØÜ]]Ü[X][ÈÜÝ

BYÛÛ[YHH[[[QÙ]ÚÜ[YJØÜ[]
JB[ÙB[[QÙ]ÚÜ[YJ]]Ò]^JH [È ][ÝÈ  ][ÝÈ  [È[QÙ]ÚÜ[YJØÜ[]
JB[Y^][[

Hope that works,

Kurt

im looking for something that will just restart the script over and over until i press a button and neither of those restarted unless i was supposed to change something in the script?

Share this post


Link to post
Share on other sites

Gay noob, why you block me on msn huh noob? Guys i prefer you dont help him, hes trying to steal an idea of mine that i created and nows trying to get free scripts so he has it as well... do not help him, lighting, your gay, your making this for a text based game, no one help him i request, he will just abuse the free scripts...

Share this post


Link to post
Share on other sites

Dim $Hotkey

HotKeySet("{F10}","Start")

Func Start()
    $Hotkey = NOT $Hotkey
    If $Hotkey Then ToolTip('Hotkey was pressed',0,0)
    While $Hotkey
    MouseClick("left", 87, 755)
MouseClick("right", 676, 502)
MouseClick("left", 728, 618)
MouseClick("left", 1015, 715,30)
MouseClick("left", 177, 656)
MouseClick("left", 49, 344)
    WEnd
    ToolTip("")
EndFunc

Doesn't get any simplier then that

So its for a game?

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  

×
×
  • Create New...