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?

link|improve this question

65% accept rate
feedback

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

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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