AutoHotkey Community

It is currently May 26th, 2012, 11:28 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: November 18th, 2009, 1:44 pm 
Offline

Joined: September 28th, 2007, 7:23 pm
Posts: 37
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?


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cerberus, Google [Bot], Leef_me, Maestr0, Pulover, rbrtryn, XstatyK, Yahoo [Bot] and 69 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