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 

hotkeys and options

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Kookster
Guest





PostPosted: Thu Feb 18, 2010 11:24 am    Post subject: hotkeys and options Reply with quote

I have run into a wall. I know it is possible but I dont know how to and yes I have really tried getting it by myself so now I come to you all as my last resort.


Ok so what I am trying to do is have it so when I press the appskey it will go to the aero peak feature in windows 7 and hold. The I want it so when it is just sitting in the aero peak that if I hit any key other than the appskey button that it will "send {D}{Lwin up}" terminating the peak and making it so you are now on your desktop. but if i hit the appskey button instead of something else I want it to "send {Lwin up}" making it go back to the way it was.

Code:
Appskey::
Send {Lwin down}
Send {Space}
keywait, Appskey, d
keywait, Appskey
Send {Lwin up}
return


If you can help I would greatly appreciate it Ive been at this for near 7 hours now, driving me nuts.
Back to top
randallf



Joined: 06 Jul 2009
Posts: 678

PostPosted: Sat Feb 20, 2010 3:41 am    Post subject: Reply with quote

IfWinActive
GetKeyState

http://www.autohotkey.com/docs/commands.htm
Back to top
View user's profile Send private message
Display posts from previous:   
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