| View previous topic :: View next topic |
| Author |
Message |
azure
Joined: 07 Jun 2007 Posts: 296
|
Posted: Mon Oct 22, 2007 4:25 am Post subject: window title sensitive hotkey |
|
|
hello
I have this script:
| Code: | #IfWinActive ahk_class OpWindow
$RButton::
MouseGetPos, , , , ctrl
SendInput {RButton}
If ctrl = OperaWindowClass1
{
SendInput {MButton}
}
Return
:?*:aa::ee
#IfWinActive |
how do I make the aa::ee hotstring to work only when the window has a specific title? (so I will make it work for specific websites, since url is displayed in widow title)
thanks |
|
| Back to top |
|
 |
Gast w/o Nick Guest
|
Posted: Mon Oct 22, 2007 11:12 am Post subject: |
|
|
I'd do something like this
| Code: | ::aa::
ifWinActive, --your window here--
{
SendInput, ee
return
}
SendInput, aa
return |
|
|
| Back to top |
|
 |
guest34935 Guest
|
Posted: Mon Oct 22, 2007 3:43 pm Post subject: |
|
|
wouldnt be easier to just:
| Code: | #IfWinActive wintitle ahk_class class
:?*:aa::ee
|
|
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 846 Location: London, UK
|
Posted: Mon Oct 22, 2007 3:52 pm Post subject: |
|
|
Is it just the one website, or multiple websites. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
|