AutoHotkey Community

It is currently May 27th, 2012, 12:21 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: November 27th, 2008, 12:57 am 
Alright guys.. Take it easy on the comments about Google Canada. :(

Quote:
What about if you've mapped Alt+M to do something already? Can you then map Alt+m+s to do something else, without having the Alt+M action fire as well?

Assuming your hotkey is bound by another script, the ~ switch for the hotkey label is what you need to add.

Code:
~!m::
Msgbox Hello world.
return


If you want Alt + M + S (I think I miss-understood you guys before)
you can use GetKeyState to check if both are pressed.

Code:
!m::
!s::
GetKeyState, Check1, m, P
GetKeyState, Check2, s, P
If ( Check1 = "D" and Check2 = "D")
{
  Msgbox Alt+M+S was pressed.
  ; asdfasdfasdf
  return
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 27th, 2008, 1:00 am 
Sorry forgot to add the ~ switches to the hotkeys above. However, if you add the ~ symbol before the hotkeys, when you press Alt + M + S any hotkeys you have assigned to Alt+M or Alt+S will still fire, unfortunately there isn't an easy workaround for this.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], jrav and 13 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