Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use the following line in an autohotkey script:

#IfWinActive, Opera

But it doesn't work with the newest version of Opera. I don't think that it has a window name. So how can I get it to work with Opera?

share|improve this question
up vote 2 down vote accepted

Using Window Spy I get these results: (right click the AHK icon in the tray, then click on the Opera window)

>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Getting autohotkey to work with Opera - Super User - Opera
ahk_class OpWindow

So use this in your AHK script:

#IfWinActive ahk_class OpWindow

(I am using Opera 10.51 build 3315; AHK

share|improve this answer

Use the AU3_Spy.exe program that came with AutoHotkey to find out the class name of the Opera window. Then you can use #IfWinActive ahk_class classname

share|improve this answer

If you are using the latest autohotkey you can use:

#IfWinActive,Ahk_exe Opera.exe
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .