Jump to content

Auto spacebar + right button mouse click


Recommended Posts

iat the start I wanted to tell that I am Polish and my English is poor.

need a script to make a bot to click the right mouse button and the space very quickly, here is a model only by a space and click on to disable the touch of a button,

I'm starting in this field and I do not know how to do it

if the wrong section I apologize

HotKeySet("!{SPACE}", "AutoSpace")

HotKeySet("+{SPACE}", "UnAutoSpace")

Global $pick = 0

TrayTip ( "Made By NFWU", "Auto-spacer" & @CRLF & "Alt+SPACE Activate" & @CRLF & "Shift+SPACE Deactivate", 60 , 1 )

While 1

Sleep(100)

while $pick == 1

send("{SPACE}")

wend

WEnd

func AutoSpace()

$pick = 1

endfunc

func UnAutoSpace()

$pick = 0

endfunc

Edited by Nowek
Link to comment
Share on other sites

hmm, i don't really know what are u think but try this:

#include <Misc.au3>

Local $hDll = DllOpen("user32.dll"), $iPaused = False
HotKeySet("!{ESC}", "_Terminate")
HotKeySet("!{PAUSE}", "_Pause")

While 1
    Sleep(10)
    If $iPaused <> True And _IsPressed("20", $hDll) Then
        Send("{SPACE UP}")
        Send("{SPACE DOWN}")
        Sleep(10)
    EndIf
WEnd

Func _Pause()
    $iPaused = Not $iPaused
EndFunc

Func _Terminate()
    Exit 0
EndFunc   ;==>Terminate

if u hold down the spacebar it will press it quickly continously (sometimes used for bunnyhop)

if u don't wanted this, then sorry XD

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