Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CurrentKey := 0
- ^j::
- WinGetClass, class, A
- MsgBox % class
- Return
- #IfWinActive ahk_class Notepad++
- +WheelUp::
- CurrentKey := CurrentKey + 1
- if CurrentKey > 10
- {
- CurrentKey := 1
- }
- SendValue(CurrentKey)
- return
- +WheelDown::
- CurrentKey := CurrentKey - 1
- if CurrentKey < 1
- {
- CurrentKey := 10
- }
- SendValue(CurrentKey)
- return
- 1::
- CurrentKey := 1
- SendValue(CurrentKey)
- return
- 2::
- CurrentKey := 2
- SendValue(CurrentKey)
- return
- 3::
- CurrentKey := 3
- SendValue(CurrentKey)
- return
- 4::
- CurrentKey := 4
- SendValue(CurrentKey)
- return
- 5::
- CurrentKey := 5
- SendValue(CurrentKey)
- return
- 6::
- CurrentKey := 6
- SendValue(CurrentKey)
- return
- 7::
- CurrentKey := 7
- SendValue(CurrentKey)
- return
- 8::
- CurrentKey := 8
- SendValue(CurrentKey)
- return
- 9::
- CurrentKey := 9
- SendValue(CurrentKey)
- return
- 0::
- CurrentKey := 10
- SendValue(CurrentKey)
- return
- #IfWinActive
- SendValue(value)
- {
- if value = 10
- {
- Send 0
- Send {enter}
- }
- else
- {
- send %value%
- Send {enter}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement