AutoHotkey Community

It is currently May 27th, 2012, 6:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: April 6th, 2011, 4:01 pm 
Offline

Joined: April 8th, 2009, 6:56 pm
Posts: 58
Location: Technology Guru/Tinker'er
I'd speculate I'm not using the right search terms, but I'm not able to find an example in the forum on how to launch a hotstring based on a CTRL right-click of the mouse…

And I also need to ensure it only works in a window with a specific title…

Can someone point me to an example in the forum on how to do this?
Or provide one?

Thanks for your time...

_________________
Later,
LEHenryJr.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 6th, 2011, 4:15 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
You need a hotkey, not a hotstring.
http://www.autohotkey.com/docs/Hotkeys.htm

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 6th, 2011, 4:41 pm 
Offline
User avatar

Joined: May 18th, 2010, 3:10 pm
Posts: 1179
Location: Sweden
Code:
#ifwinactive, ahk_class [Class of the window]
; Or #ifwinactive, [title of window]
^Rbutton::
Send [what you want to send]
return


Check

http://www.autohotkey.com/docs/Hotkeys.htm http://www.autohotkey.com/docs/commands ... Active.htm
http://www.autohotkey.com/docs/commands/Send.htm

And of course replace the stuff I put in [] with appropiate code or it won't work.

_________________
~sumon Appifyer AHK Nova halted Recommended: AHK_L (Why?)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 6th, 2011, 5:05 pm 
Offline

Joined: April 8th, 2009, 6:56 pm
Posts: 58
Location: Technology Guru/Tinker'er
Awesome! found it thanks…

I hope you have a nice day!

_________________
Later,
LEHenryJr.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, Exabot [Bot], JSLover and 61 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group