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 

Upgraded to Win 7, hotkey not working

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



Joined: 28 Sep 2007
Posts: 37

PostPosted: Wed Nov 18, 2009 12:44 pm    Post subject: Upgraded to Win 7, hotkey not working Reply with quote

I'm having difficulty with a script i've been using for a while, but I just recently upgraded to windows 7 and am having issues with it. For the most part it works, but the 'Hotkey, Enter, Done, On' doesn't actually call the 'Done' function.

Code:
+^PrintScreen::
{
   SetTimer, WatchCursor, 100
   Hotkey, Enter, Done, On
   Hotkey, ESC, Quit, On
   return
   
   Done:
   ClipBoard      := Color
   ;CurrentColor  := Color
   ;SelectedColor := ColorPicker(CurrentColor)
   
   Quit:
   SetTimer, WatchCursor, Off
   Hotkey, ESC, Off
   Hotkey, Enter, Off
   ToolTip
   return
   
   WatchCursor:
   MouseGetPos X, Y
   PixelGetColor Color, %X%, %Y%, RGB
   StringReplace,Color,Color,0x,,1
   ToolTip, %Color%
   return
}


When I hit enter, the clipboard doesn't have the color and the tooltip doesn't go away as it should. Escape works fine though. Any ideas?
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