What's new

For Those Who dont know how to make a Auto Hot Key Script

Daoud

Bronze Member
Joined
Jan 15, 2010
Messages
433
There is a list of Auto Hot Key Buttons on the Bottom.
Example
Numpad1::
NumpadEnd::
{
SetKeyDelay, -1
send t/me pulls out a gun from his bag.{ENTER}
}
return



Code:
script Starts Here.
; SAMPLE HOTKEYS: Below are two sample hotkeys.  The first is Win+Z and it
; launches a web site in the default browser.  The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one).  To
; try out these hotkeys, run AutoHotkey again, which will load this file.

#z::Run [url=http://www.autohotkey.com]www.autohotkey.com[/url]

^!n::
IfWinExist Untitled - Notepad
   WinActivate
else
   Run Notepad
return


; Note: From now on whenever you run AutoHotkey directly, this script
; will be loaded.  So feel free to customize it to suit your needs.

; Please read the QUICK-START TUTORIAL near the top of the help file.
; It explains how to perform common automation tasks such as sending
; keystrokes and mouse clicks.  It also explains more about hotkeys.


Numpad1::
NumpadEnd::
{
SetKeyDelay, -1
send {ENTER}
}
return


Numpad2::
NumpadDown::
{
SetKeyDelay, -1
send {ENTER}
}
return


Numpad3::
NumpadPgDn::
{
SetKeyDelay, -1
send {ENTER}
}
return

Numpad4::
NumpadLeft::
{
SetKeyDelay, -1
send {ENTER}
}
return



Numpad5::
NumpadClear::
{
SetKeyDelay, -1
send {ENTER}
}
return

Numpad6::
NumpadRight::
{
SetKeyDelay, -1
send {ENTER}
}
return



Numpad7::
NumpadHome::
{
SetKeyDelay, -1
send {ENTER}
}
return

Numpad8::
NumpadUp::
{
SetKeyDelay, -1
send ENTER}
}
return

Numpad9::
NumpadPgUp::
{
SetKeyDelay, -1
send {ENTER}
}
return

Numpad0::
NumpadIns::
{
SetKeyDelay, -1
send ENTER}
}
return


NumpadEnter::
{
SetKeyDelay, -1
send {ENTER}


}
return

NumpadDot::
NumpadDel::
{
SetKeyDelay, -1
send t{ENTER}
}
return
Heres a list of hotkey Buttons


Mouse (mouse hotkeys require Windows NT/2000/XP or later)
LButton - the left mouse button
RButton - the right mouse button
MButton - the middle or wheel mouse button

WheelDown - this is equivalent to rotating the mouse wheel down (toward you)
WheelUp - the opposite of the above
WheelLeft and WheelRight [v1.0.48+] - these two require a mouse with left/right scrolling capability, but they have no effect on operating systems older than Windows Vista.
(See mouse wheel hotkeys to detect how far the wheel has been turned.)

Supported only in Windows 2000/XP or later:
XButton1 - a button that appears only on certain mice
XButton2 - a button that appears only on certain mice

Keyboard
Note: The names of the letter and number keys are the same as that single letter or digit. For example: b is the "b" key and 5 is the "5" key.

Space - the spacebar
Tab
Enter (or Return)
Escape (or Esc)
Backspace (or BS)

Delete (or Del)
Insert (or Ins)
Home
End
PgUp
PgDn
Up
Down
Left
Right

ScrollLock
CapsLock
NumLock

Numlock ON Numlock OFF
Numpad0 NumpadIns
Numpad1 NumpadEnd
Numpad2 NumpadDown
Numpad3 NumpadPgDn
Numpad4 NumpadLeft
Numpad5 NumpadClear
Numpad6 NumpadRight
Numpad7 NumpadHome
Numpad8 NumpadUp
Numpad9 NumpadPgUp
NumpadDot (.) NumpadDel
NumpadDiv (/) NumpadDiv (/)
NumpadMult (*) NumpadMult (*)
NumpadAdd (+) NumpadAdd (+)
NumpadSub (-) NumpadSub (-)
NumpadEnter NumpadEnter


F1 through F24 - The 12 or more function keys at the top of most keyboards.

AppsKey - this is the key that invokes the right-click context menu.

LWin - the left Windows logo key
RWin - the right Windows logo key. Note: unlike Control/Alt/Shift, there is no generic/neutral "Win" key because the OS does not support it.
Control (or Ctrl)
Alt
Shift
Note: The hotkeys Shift::, Alt::, and Control:: fire upon release of the key unless they have the tilde prefix such as ~Alt::. By contrast, a specific left or right hotkey such as LAlt:: fires when it is pressed down.

Note: For the most part, these next 6 keys are not supported by Windows 95/98/Me. Use the above instead:
LControl (or LCtrl) - the left control key
RControl (or RCtrl) - the right control key
LShift - the left shift key
RShift - the right shift key
LAlt - the left Alt key
RAlt - Note: If your keyboard layout has AltGr instead of RAlt, you can probably use it as a hotkey prefix via <^>! as described here. In addition, "LControl & RAlt::" would make AltGr itself into a hotkey.

PrintScreen
 
Top