Code: Select all
#Persistent ; Don't close when the auto-execute ends
SetTitleMatchMode, 2
GroupAdd, Editor, AnzioWin ; Regular expression for window title
GroupAdd, Editor, Notepad ; Regular expression for window
#IfWinActive ahk_group Editor
a::A
b::B
c::C
d::D
e::E
f::F
g::G
h::H
i::I
j::J
k::K
l::L
m::M
n::N
o::O
p::P
q::Q
r::R
s::S
t::T
u::U
v::V
w::W
x::X
y::Y
z::Z
:*:BTW::BP583HDG
;replace with your login and password
;\::send, jasonw{enter}b2c3t20p16{enter}
NumpadAdd::send, PT
Home::send, LVL
End::send, LSL
!s::send, STEP
;#InstallKeybdHook
;SetNumLockState, AlwaysOn
F1::send, {shift down}[{shift up}1
F2::send, {shift down}[{shift up}2
F3::send, {shift down}[{shift up}3
F4::send, {shift down}[{shift up}4
F5::send, {shift down}[{shift up}5
F6::send, {shift down}[{shift up}6
F7::send, {Down}2 DAY LEAD TIME ON ABOVE ITEM
F8::send, {Down}3 DAY LEAD TIME ON ABOVE ITEM
F9::send, {Down}4 DAY LEAD TIME ON ABOVE ITEM
F10::send, {Down}5 DAY LEAD TIME ON ABOVE ITEM
F11::send, {Down}6 DAY LEAD TIME ON ABOVE ITEM
F12::send, {Down}7-10 DAY LEAD ON ABOVE ITEM
Insert::send, {Down}VERFY TYPE
!c::send {Down}==COD===COD===COD===COD===COD==
!p::send {Down}CREDIT P.U.
!a::send {shift down}[{shift up}A
^x::send, {Up}V{Enter}Y{Enter}
^v::send, {shift down}{Ins}{shift up}
^c::send, {Ctrl down}{Ins}{Ctrl up}
; Listen for activation messages to all windows
DllCall("CoInitialize", "uint", 0)
if (!hWinEventHook := DllCall("SetWinEventHook", "uint", 0x3, "uint", 0x3, "uint", 0, "uint", RegisterCallback("HookProc"), "uint", 0, "uint", 0, "uint", 0))
{
MsgBox, Error creating shell hook
Exitapp
}
MsgBox, Hook made
;DllCall("UnhookWinEvent", "uint", hWinEventHook) ; Remove the message listening hook
return
; Handle the messages we hooked on to
HookProc(hWinEventHook, event, hwnd, idObject, idChild, dwEventThread, dwmsEventTime)
{
global myHwnd
static lastHwnd
WinGetTitle, title, ahk_id %hwnd%
if (hwnd == myHwnd) ; If our window was just activated
{
tooltip, Gained focus
}
else if (lastHwnd == myHwnd) ; If our window was just deactivated
{
tooltip, Lost focus
}
lastHwnd := hwnd
}