Jump to content

disregard hotkey help


moxz
 Share

Recommended Posts

wondering if there's a way to set a hotkey, that when pressed, will disregard all other hotkeys, until pressed again

playing a video game and i want it to disregard the other hotkeys while i'm typing in chatbox (ENTER) wil be the toggle key

here's my script, thanks to anyone who can help

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
HotKeySet("{g}", "start")
HotKeySet("{r}", "walk")
HotKeySet("{tab}", "pause")
HotKeySet("{F5}", "off")
hotkeyset("+{1}", "shift1")
hotkeyset("+{2}", "shift2")
hotkeyset("+{3}", "shift3")
hotkeyset("+{4}", "shift4")
hotkeyset("{c}", "home")
hotkeyset("{ENTER}","enter")
$answer = msgbox(0 , "Minecraft bot", "" & @CRLF & "Click 'OK' to start")
if $answer = 1 Then
GUICreate("Minecraft bot", 100, 100,-1,-1, $WS_BORDER) 
GUICtrlCreateLabel("g = Auto-mine" & @LF & "r = Auto-walk"  & @LF & "tab = Pause" & @LF & "F5 = Exit" & @LF & "C = HOME", 10, 10)
GUISetState(@SW_SHOW)
EndIf
while 1
WEnd

func off()
    tooltip("stopping bot",0,0)
    send("{W UP}")
    mouseup("left")
    Exit
EndFunc

func start()
    tooltip("auto-mine running",0,0)
    mousedown("left")
    send("{W DOWN}")
    sleep(50)
EndFunc

Func walk()
    tooltip("auto-walk running",0,0)
    mouseup("left")
    send("{W DOWN}")
    sleep(50)
EndFunc

func pause()
    tooltip("bot paused",0,0)
    Send("{W UP}")
    mouseup("left")
    sleep(50)
EndFunc

func shift1()
    send(6)
EndFunc

func shift2()
    send(7)
EndFunc

func shift3()
    send(8)
EndFunc

func shift4()
    send(9)
EndFunc

func home()
    send("{ENTER}")
    send("/")
    send("h")
    send("o")
    send("m")
    send("e")
    send("{ENTER}")
    EndFunc
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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