Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~*Esc::firstbtn := 0
- ~*Numpad0:: firstbtn := 0
- ~*Numpad1:: checkhotkey()
- ~*Numpad2:: checkhotkey()
- ~*Numpad3:: checkhotkey()
- ~*Numpad4:: checkhotkey()
- ~*Numpad5:: checkhotkey()
- ~*Numpad6:: checkhotkey()
- ~*Numpad7:: checkhotkey()
- ~*Numpad8:: checkhotkey()
- ~*Numpad9:: checkhotkey()
- firstBtn := 0
- checkhotkey() {
- local function, linNum
- if !firstBtn{
- stringreplace, firstBtn, a_thishotkey, ~*Numpad
- ;MsgBox, %firstBtn%
- }
- else {
- stringreplace, secondBtn, a_thishotkey, ~*Numpad
- ;MsgBox, %secondBtn%
- if (secondBtn > 6) {
- firstBtn := 0
- return
- }
- linNum := firstBtn . secondBtn
- ;MsgBox, %linNum%
- FileReadLine, function, Numpad.txt, %linNum%
- ;MsgBox, %function%
- %function%()
- firstBtn := 0
- linnum := 0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement