Advertisement
llLazy

Untitled

Nov 5th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. ~*Esc::firstbtn := 0
  2. ~*Numpad0:: firstbtn := 0
  3. ~*Numpad1:: checkhotkey()
  4. ~*Numpad2:: checkhotkey()
  5. ~*Numpad3:: checkhotkey()
  6. ~*Numpad4:: checkhotkey()
  7. ~*Numpad5:: checkhotkey()
  8. ~*Numpad6:: checkhotkey()
  9. ~*Numpad7:: checkhotkey()
  10. ~*Numpad8:: checkhotkey()
  11. ~*Numpad9:: checkhotkey()
  12.  
  13. firstBtn := 0
  14.  
  15. checkhotkey() {
  16. local function, linNum
  17. if !firstBtn{
  18. stringreplace, firstBtn, a_thishotkey, ~*Numpad
  19. ;MsgBox, %firstBtn%
  20. }
  21. else {
  22. stringreplace, secondBtn, a_thishotkey, ~*Numpad
  23. ;MsgBox, %secondBtn%
  24. if (secondBtn > 6) {
  25. firstBtn := 0
  26. return
  27. }
  28. linNum := firstBtn . secondBtn
  29. ;MsgBox, %linNum%
  30. FileReadLine, function, Numpad.txt, %linNum%
  31. ;MsgBox, %function%
  32. %function%()
  33. firstBtn := 0
  34. linnum := 0
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement