moxz Posted April 19, 2011 Posted April 19, 2011 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 expandcollapse popup#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
Developers Jos Posted April 19, 2011 Developers Posted April 19, 2011 please Read the announcement at the top of the forum. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts