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 

GUI for defined Hotkeys
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Julia76
Guest





PostPosted: Sun Jan 30, 2005 6:38 pm    Post subject: GUI for defined Hotkeys Reply with quote

This may be a beginner question but I've tried out this fabulous tool for just an hour:

I've defined several Hotkeys, all beginning with 'Win-..' (Win-S, Win-X, Win-A etc.) - while the autohotkey script is active, it would be a great feature if a small background picture (or something similar leaving the active window _active_) containing information about all defined Hotkeys (what they do + shortcut code) would fade in when the 'Win'-button gets pressed

this would deliver an excellent reminder on what additional key actually is to press in order to trigger the desired action..

I find it difficult to remember which action is connected to which key when dealing with dozens of Hotkeys... (was it Win-Q or WIN-W triggering www.google.com for instance...)

any help/hint is appreciated, thanks a lot
Julia76
Back to top
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Sun Jan 30, 2005 7:12 pm    Post subject: Reply with quote

here's a very simple implementation... doesn't require you to hold down both simultaneously... just hold down Left Win key, see list, and type next key.

Code:

CoordMode, ToolTip, Screen

LWin::
   ToolTip, Win+N = Notepad`nWin+G = Google, 1, 1
   Input, Key, L1
   
   IfEqual, Key, N, run, Notepad
   IfEqual, Key, G, run, www.google.com

   ToolTip
Return

_________________
Back to top
View user's profile Send private message
Julia76
Guest





PostPosted: Sun Jan 30, 2005 7:43 pm    Post subject: Reply with quote

wow, I'm impressed!

but: this feature disables the native 'Win'-Key Smile
Back to top
Julia76
Guest





PostPosted: Sun Jan 30, 2005 8:07 pm    Post subject: Reply with quote

ok, I replaced LWin with APPSKEY (a key I usally dont use) - works great Smile

two more questions:

what do I have to add to the code so that the tooltip disappears when pressing the APPSKEY again?

what do I have to add to the code in order to get the Hotkey Captions ('Google', 'Notepad') in an alphabetical order?

this would help me a lot, thanks
Julia
Back to top
Guest






PostPosted: Sun Jan 30, 2005 8:33 pm    Post subject: Reply with quote

actually, the tooltip should disappear by pressing _any_ key or mouse button, not only APPSKEY
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Jan 30, 2005 10:29 pm    Post subject: Reply with quote

Here is another topic related to this one. It has a script to display and sort all your hotkeys: http://www.autohotkey.com/forum/viewtopic.php?t=215
Back to top
View user's profile Send private message Send e-mail
Julia76
Guest





PostPosted: Sun Jan 30, 2005 10:44 pm    Post subject: Reply with quote

sorry but that looks way too complex, I would be quite happy with the two extras I've referred to

thanks anyway!
Back to top
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Mon Jan 31, 2005 12:31 am    Post subject: Reply with quote

this allows normal win key functions and the tooltip disappears if u've not pressed a key recognized by script in 2 secs (modify if desired). RTFM.

Code:

CoordMode, ToolTip, Screen

~LWin::
   ToolTip, Win+N = Notepad`nWin+G = Google, 1, 1
   Input, Key, L1 T2
   
   IfEqual, Key, N, run, Notepad
   IfEqual, Key, G, run, www.google.com

   ToolTip
Return

_________________
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Mon Jan 31, 2005 12:38 am    Post subject: Reply with quote

for sorting, as the text shown in tooltip is specifically defined, u can either sort it (in any editor) and use as desired, or use the 'Sort' cmd from ahk.
_________________
Back to top
View user's profile Send private message
Julia76
Guest





PostPosted: Tue Feb 01, 2005 2:29 am    Post subject: Reply with quote

ok, I sorted my key in an external editor

the timeout-function is unfortunatley not very usable

isn't it possible to include a certain key in the tooltip syntax, which
lets the tooltip disappear again?
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Feb 02, 2005 2:34 am    Post subject: Reply with quote

Some clarification might be needed.
Back to top
View user's profile Send private message Send e-mail
Julia76
Guest





PostPosted: Wed Feb 02, 2005 5:38 am    Post subject: Reply with quote

very simple: tooltip should disappear by pressing LWin again
Back to top
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Wed Feb 02, 2005 6:36 am    Post subject: Reply with quote

for a change, y don't u try to figure some things on your own? ...we can help where u get stuck.

Code:

CoordMode, ToolTip, Screen

~LWin::
   ToolTip, Win+N = Notepad`nWin+G = Google, 1, 1
   Input, Key, L1 T2, {LWin}
   IfEqual, Errorlevel, Endkey:LWin, ToolTip
   
   IfEqual, Key, N, run, Notepad
   IfEqual, Key, G, run, www.google.com

   ToolTip
Return

_________________
Back to top
View user's profile Send private message
Julia76
Guest





PostPosted: Wed Feb 02, 2005 10:13 pm    Post subject: Reply with quote

well, if I could I would - I have no clue about whatsoever programming, sorry

plus: I appreciate your help but your script isnt working properly as a press of the LWin-Key launches the tooltip AND the start menu
Back to top
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Wed Feb 02, 2005 11:18 pm    Post subject: Reply with quote

Remove the tilde (~) from the hotkey. That symbol passes the key that activated the hotkey through.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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