AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

window title sensitive hotkey

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
azure



Joined: 07 Jun 2007
Posts: 296

PostPosted: Mon Oct 22, 2007 4:25 am    Post subject: window title sensitive hotkey Reply with quote

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
View user's profile Send private message
Gast w/o Nick
Guest





PostPosted: Mon Oct 22, 2007 11:12 am    Post subject: Reply with quote

I'd do something like this
Code:
::aa::
ifWinActive, --your window here--
{
  SendInput, ee
  return
}
SendInput, aa
return
Back to top
guest34935
Guest





PostPosted: Mon Oct 22, 2007 3:43 pm    Post subject: Reply with quote

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

PostPosted: Mon Oct 22, 2007 3:52 pm    Post subject: Reply with quote

Is it just the one website, or multiple websites.
_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group