Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Minecraft auto turn and click.


  • Please log in to reply
2 replies to this topic
dnbESTgaming
  • Members
  • 1 posts
  • Last active: Dec 26 2013 04:53 PM
  • Joined: 24 Dec 2013

Can someone please help me with the script I'd like to have. I'd like the script to turn my minecraft character 90 degrees right after one second, then after threeseconds and again one second (loop the rotating) and i'd like if it would click all the time. even on the turns.

I have a script 

F12::
Loop
{
    if not GetKeyState("Capslock", "T")
        break

    Click
}
return

that keeps my mouse clicking as long as CapsLock is on.
and i have a script 

F8:: MouseMove, 972, 524

that rotates my player about 90 degrees to right.

How to combine theese two correctly, so my player would click all the time when and rotate after the right ammount of time (I'd like it to work when capslock is on, and I could start the script with F12)?

I hope my request was clear enough, so you could understand.

All questions are welcome.



Masonjar13
  • Members
  • 1517 posts
  • Last active:
  • Joined: 16 Sep 2012

Why not just throw it in?

F12::
Loop
{
    if not GetKeyState("Capslock", "T")
        break
    MouseMove, 972, 524
    Click
}
return

OS: Windows 7 Ultimate / Windows 8.1 Pro | Editor: Notepad++


Ruevil2
  • Members
  • 226 posts
  • Last active: Dec 04 2015 11:05 PM
  • Joined: 27 Mar 2012

Masonjar13:

Because he wants the turn events timed differently than the click events. Did you even read the first couple sentences?

 

dnbESTgaming:

This script clicks constantly while turning your char 90 degrees every 1 and 3 seconds, alternating. This is an approximation and I did not add any exit code.

Separating the click out into it's own timer allows it to run, and click, even though the rest of the script is 'Sleeping'.

 

 

First, set capslock to 'Off'. Then loop with keycapture to see when capslock is 'on'. If capslock is on, then set a timer for clicks and start turning.

 

 
SetCapsLockState, Off
 
Loop
{
    kstate := GetKeyState("Capslock", "T")
    if not kstate
    {
       SetTimer, AllClick, Off
       continue
    }
    If kstate
    {
        SetTimer, AllClick, 300
        MouseMove, 972, 524
        Sleep 1000
        MouseMove, 972, 524
        Sleep 3000
    }
}
 
AllClick:
    Click
return
 

 

Give this a try and see what happens!


If I helped you out and you would like to show appreciation, feel free to buy me a beer.  grin.png   btn_donateCC_LG.gif