What is wrong with this script?

Here is the code and waht i try to accomplish

IfWinActive, MyLfeOrganized
Send ^!{Right}

Where ^! is shift and alt key at the same time.


You can create a context-sensitive hotkey to accomplish this.

#IfWinActive, MyLfeOrganized
    Send, ^!{Right}

This hotkey will only work if the #IfWinActive condition is met. Otherwise it will leave your TAB key alone.

  • the document I have opened is named ppp.ml so the window name is ppp.ml - MyLifeOrganized the script only works with #IfWinActive, ppp.ml why is that? – user1603548 Oct 18 '14 at 9:56
  • 1
    @user1603548 That's due to how AHK matches titles. The default is to look for titles that start with the WinTitle. You can change this by using SetTitleMatchMode, 2. You can read more here. – Sidola Oct 18 '14 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.