Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Requires AutoHotkey v2.0
- global _chatFlag := 0 ; chat must be close when we start script
- If WinActive("ahk_class Transformice")
- {
- SC012:: ; hook E button
- {
- global
- If (_chatFlag) ; chat is open then send E key
- {
- Send "{vk45sc012}"
- }
- Else ; chat is not open send Shift+E key
- {
- Send "{Shift down}{vk45sc012}{Shift up}" ; hurray
- }
- }
- ~Enter:: ; hook enter for chat flag
- {
- global
- _chatFlag:=!_chatFlag
- }
- }
- *f2::Reload ; just reload script
- *esc::ExitApp ; just close script
Advertisement
Add Comment
Please, Sign In to add comment