Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

3 Answers

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 1.0.48.05)

share|improve this answer
add comment

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
add comment

If you are using the latest autohotkey you can use:

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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