Jump to content

Please help me out


Recommended Posts

Ok, i am pretty new to this and i have figured out how to do a few scripts, but what i need help on is:

I need a script that will click the mouse (left) and after about 3-5 minutes, i need it to hold down F1, or stop click the mouse and hit F1, then have the mouse keep clicking in a full circle....could anyone help me out on this?

Link to comment
Share on other sites

oh, here is what i have so far (it works for the clicking)

Global $Paused

HotKeySet("{END}", "TogglePause")

HotKeySet("{HOME}", "Terminate")

While 1

Sleep(25)

WEnd

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

MouseClick("Left")

WEnd

EndFunc

Func Terminate()

Exit 0

EndFunc

Link to comment
Share on other sites

Ok, i am pretty new to this and i have figured out how to do a few scripts, but what i need help on is:

I need a script that will click the mouse (left) and after about 3-5 minutes, i need it to hold down F1, or stop click the mouse and hit F1, then have the mouse keep clicking in a full circle....could anyone help me out on this?

Clicking in a full circle? do you mean the script will loop and repeat itself? or the mouse actually move in a circle?

Look at Mouseclick() Sleep() and Send in the helpfile

Link to comment
Share on other sites

i mean to have it repeat, could you show me the script, im not that good at figuring out where to put everything and things like that, i tried before and it didnt turn out to good

oh, and i forgot, i can also have the clicking stop and have it type in Rest, and then start clicking again...F1 or Rest will work

Edited by Xbaseballkid93x
Link to comment
Share on other sites

i mean to have it repeat, could you show me the script, im not that good at figuring out where to put everything and things like that, i tried before and it didnt turn out to good

Well, I guess you tried so here:

Global $UnPaused=0
HotKeySet("{END}", "TogglePause")
HotKeySet("{HOME}", "Terminate")

While 1
    Sleep(100)
WEnd

Func TogglePause()
    $UnPaused = NOT $UnPaused
    While $UnPaused
        $i=0
        Do
            $i+=1
            MouseClick("Left")
            Sleep(10)
            ToolTip(Round($i/24000,0)&"%",0,0)
            Until $i=24000;about 4 mins
        Send("{F1}")
    WEnd
EndFunc

Func Terminate()
    Exit
EndFunc

That should be something like what you want right?

Edited by Paulie
Link to comment
Share on other sites

i tried it, but it never pressed F1 or stopped clicking...

Perhaps you didn't wait long enough, because it worked for me...

I edited the above with a tooltip so you can see how far it still has to go

Link to comment
Share on other sites

ok, also, if it is to long, do i just change the 24,000 number to like...12,000 or something like that or is there another step i have to do?

That is all you do.

However, for some reason, it is not pausing. Let me try and finagle it, to see if i can't get it to pause.

Link to comment
Share on other sites

OK, i got a pause to work, but it uses 2 hotkeys instead of one toggle. I don't know if that is ok with you, but now "insert" makes it pause and "end" makes it start

HotKeySet("{END}", "Go")
HotKeySet("{HOME}", "Terminate")
HotKeySet("{INSERT}","Pause")

While 1
    Sleep(100)
WEnd

Func Go()
    While 1
        $i=0
        Do
            $i+=1
            MouseClick("Left")
            Sleep(10)
            ToolTip(Round($i/24000,0)&"%",0,0)
        Until $i=12000;about 2 mins
        Send("{F1}")
    WEnd
EndFunc

Func Terminate()
    Exit
EndFunc

Func Pause()
    While 1
        Sleep(100)
        ToolTip("Paused...",0,0)
    WEnd
EndFunc
Link to comment
Share on other sites

for some reason, when i go to use the script, after like 3-4 minutes, it is still clicking and it never stopped to press F1, maybe it stops click and starts clicking to fast?

ohh i thought you just wanted it to press F1 then keep clicking.

do you want it to just stop all together after F1? or just pause for another minute?

Link to comment
Share on other sites

ok...I need it to click for about 2 minutes, stop for say 10 sec so it can press F1 then start back up, does that clear it up, or is that what you thought in the beginning??

HotKeySet("{END}", "Go")
HotKeySet("{HOME}", "Terminate")
HotKeySet("{INSERT}","Pause")
Global $Dur=2000;<=====Change this to adjust time to pause
While 1
    Sleep(100)
WEnd

Func Go()
    While 1
        $i=0
        Do
            $i+=1
            MouseClick("Left")
            Sleep(10)
            ToolTip(Round($i/$dur*100,0)&"%"&@CRLF&$i,0,0)
        Until $i=$dur;about 4 mins
        Send("{F1 Down}")
        Sleep(10000)
        Send("{F1 up}")
    WEnd
EndFunc

Func Terminate()
    Exit
EndFunc

Func Pause()
    While 1
        Sleep(100)
        ToolTip("Paused",0,0)
    WEnd
EndFunc

Is this what you wanted then?

Edited by Paulie
Link to comment
Share on other sites

there is just one problem, the game i want it to work in, it doesnt, but it works outside the game

What game is it.

It may be protected my some anti-macro software. (ie GameGuard) I which case there is little we can do.

Link to comment
Share on other sites

well, you see, it works for the mouse clicking and the counter, but when it pauses it doesn't hit F1. The game is DragonBall Zen. Its a game on Byond, so i highly doubt there is anything blocking it since others use programs on it

Edit: Also, you can use Micros in it because there is a guide showing how to make one. I made one and thats y i need it to hit F1

Edited by Xbaseballkid93x
Link to comment
Share on other sites

well, you see, it works for the mouse clicking and the counter, but when it pauses it doesn't hit F1. The game is DragonBall Zen. Its a game on Byond, so i highly doubt there is anything blocking it since others use programs on it

Edit: Also, you can use Micros in it because there is a guide showing how to make one. I made one and thats y i need it to hit F1

well, it should be pressing F1

try replacing this

Send("{F1 Down}")
        Sleep(10000)
        Send("{F1 up}")oÝ÷ Ùh­;¬¶Øb±«­¢+Ø)M¹ ÅÕ½ÐííÅôÅÕ½Ðì¤)M±À ÄÀÀÀÀ

But if that doesn't work, i don't know what to tell you. :shocked:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...