Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Bredda » 07 May 2018, 15:02

Chapeau, FantasticGuru!
Thank you for sharing this solution. Is there currently a way to search the GUI for a certain keyword?

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Kellyzkorner_NJ » 06 Jan 2018, 22:27

Hello, Just a little followup, I am seeing that the list that generates has duplicates in it, which is okay, I just run a remove duplicates script on it and resave it, I just wanted you to know. Also after it's first run the great list of options at the top starting with stop script don't show, just the stop script does. Could be my machine, just throwing it out there. Again not a huge deal, they are still available if you mouse over them, they just aren't visually showing up but I can deal with it.

Kelly

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Kellyzkorner_NJ » 02 Jan 2018, 21:10

Worked perfectly, you are the BEST FanaticGuru!

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Kellyzkorner_NJ » 02 Jan 2018, 21:05

Thank you very much , I appreciate your working on this for me. I hope you have a very happy new year!

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by FanaticGuru » 28 Dec 2017, 21:34

Kellyzkorner_NJ wrote:As a followup, so far as the can't create control, I run the script, what I assume is happening is it is running and gathering from the scripts running and when it hits the upper level of whatever is stopping it, the size, it pops up with the error can't create control, right before the time when normally the GUI window would come up. I hope that makes it clearer. I don't know how to tell how big the help dialog would be. For myself, saving it as text could be done invisibly and just have a file created and self named. It doesn't need to be a button on GUI or hotkey, for my purposes anyway.

I posted an update on the first page that should give you what you need.

I added an option on the settings dialog that allows you to check a box to have a text file exported automatically when a new dialog is created. Also a button in the settings to force the export to a text file.

Also looked into the fail to create control. There is a 32k limit to text when a control is being created. So cannot create the control with large text amount in one command. It can be worked around by creating a control and then adding text to it in separate command. I believe I got that working but did not really have a readily available test for it.

FG

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Kellyzkorner_NJ » 28 Dec 2017, 14:07

As a followup, so far as the can't create control, I run the script, what I assume is happening is it is running and gathering from the scripts running and when it hits the upper level of whatever is stopping it, the size, it pops up with the error can't create control, right before the time when normally the GUI window would come up. I hope that makes it clearer. I don't know how to tell how big the help dialog would be. For myself, saving it as text could be done invisibly and just have a file created and self named. It doesn't need to be a button on GUI or hotkey, for my purposes anyway.

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Kellyzkorner_NJ » 27 Dec 2017, 21:32

Hello, I believe I'm using the 64. The control would be huge, I am trying to get a listing of what amounts to probably 15 scripts but the main one is at least 29000 lines long. It has a lot of keys in it. I think the problem is with the GUI needing to be bigger than it is "allowed" although I don't know the size exactly. That would be great regarding the text. I have gotten the script to work with closing some of the scripts so the Hotkey Help script itself isn't the problem. I'm sorry for the delay. What can I do to help you, try to create one that is large an dsend to you?

Thanks in advance, I appreciate your help.

Kelly

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by FanaticGuru » 22 Dec 2017, 01:47

Kellyzkorner_NJ wrote:Hi FanaticGuru, I have a question if you don't mind. I have used this script a lot and I love it. My problem is I am getting the can't create control situation happening. I have a feeling it's because of all the many hotkeys and scripts i have running that I want a combined list from (so I'd rather not close them and do it piecemeal. I am wondering if it's possible to have an option to simply save the result in a txt file as opposed to the msgbox that it usually displays in. I always just copy the whole thing and save to a file anyway. It quickly helps me determine if I have relative duplicates. Thanks in advance.

What error are you getting for "can't create control situation happening"?

Are you using AHK 32 bit or 64 bit?

How big would the help dialog be that is failing? Over 32k, several 100k, megs? If the Gui control is getting more info than it can hold there are ways to work around the limit. Basically you cannot let the control autosize and have to explicitly tell it how big to be which requires some calculating that the control does not currently do.

I could have a way to save the help dialog to a text file. Right before it creates the Gui all the information is stored in a variable called Display. It would be easy to save to a file. Mainly just the logistics of how to activate. Another hotkey combination is clumbersome. Maybe a button on the Settings dialog to export to a text file. Or even just a checkbox to always save a text file when the help dialog is updated. But for that option I would need to have the dialog display correctly even if large.

FG

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Kellyzkorner_NJ » 21 Dec 2017, 23:23

Nicrox do you mean this? I changed the hotkey but the result is the same that I think you are referring to.

Code: [Select all] [Expand]GeSHi © Codebox Plus

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Kellyzkorner_NJ » 21 Dec 2017, 23:20

Hi FanaticGuru, I have a question if you don't mind. I have used this script a lot and I love it. My problem is I am getting the can't create control situation happening. I have a feeling it's because of all the many hotkeys and scripts i have running that I want a combined list from (so I'd rather not close them and do it piecemeal. I am wondering if it's possible to have an option to simply save the result in a txt file as opposed to the msgbox that it usually displays in. I always just copy the whole thing and save to a file anyway. It quickly helps me determine if I have relative duplicates. Thanks in advance.

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by nicrox » 24 Aug 2017, 20:05

Thanks for this script, motivated me a lot to expand my HS list.
I can see on the Sample Dialog a reference to "create hotstring" by pressing Win+h on a selected text. It doesn't seem to do anything on mine, any other script I need to download to active that. It would be really helpful if such a function is available

Edit: for those interested, i found the solution: https://autohotkey.com/docs/Hotstrings.htm#Helper

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Guest » 26 Oct 2016, 04:19

Sorry for the double post. Did not see your reply. Also can't register due to registration confirmation mail not getting sent.

Anyways, thanks for the explanation. Your work-arround sounds feasible. Can you point me to the functions that I would need to change accordingly?

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Guest » 26 Oct 2016, 04:10

This a great utility. I only wonder, how to reduce the displayed shortcuts to the relevant context. E.g. if I got "Chrome" active, only display the hotkeys relevant to "Chrome" and globally.

[ Moved from Scripts and Functions: TLM ]

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by FanaticGuru » 24 Oct 2016, 12:49

Guest wrote:How can I make the display context senitive? I would like to display only the macros relevant to the currently active window.

There is no easy way to do this because there is no easy way to determine what macros are relevant to what windows. Even with the #if command being used AutoHotkey does not evaluate the #if command until the hotkey is pressed. The #if can also be dynamic like #if (Toggle = true). So doing it by analyzing the code is impractical to impossible.

You could add a remark to the end of every hotkey line in your scripts with the WinTitle that you wanted the hotkey to only be displayed if active and then parse that information out and use it to control the display of information in the Help dialog.
Something like ^f12:: ; <--- Generic Description ~ahk_class Notepad~.

It would be cumbersome and quite a bit of work to implement properly.

FG

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Guest » 24 Oct 2016, 10:00

How can I make the display context senitive? I would like to display only the macros relevant to the currently active window.

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by Guest » 22 Mar 2016, 19:05

derz00 wrote:That's a great script FG! Good work! Is there someone who has come up with a script that has what's on the top of the hotkey list? Like the list of all running scripts and do different things with them.


https://autohotkey.com/board/topic/38653-see-running-autohotkey-scripts-and-end-them/

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by derz00 » 22 Mar 2016, 16:16

That's a great script FG! Good work! Is there someone who has come up with a script that has what's on the top of the hotkey list? Like the list of all running scripts and do different things with them.

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by jdefgts » 22 Mar 2016, 07:17

Thanks! That works perfectly. I really appreciate the rapid response.

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by FanaticGuru » 22 Mar 2016, 00:36

Updated in First Post

Change Log: Version 2.92 (2016-03-22)
Better handling of a hotstring defined to perform a custom action that has a comment after the hotstring trigger.

Example:

Code: [Select all]GeSHi © Codebox Plus

::btw:: ; <-- Message "btw"
MsgBox You typed "btw".
return

FG

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Post by jdefgts » 21 Mar 2016, 20:16

This is a really terrific and very useful program. I do have one problem with it that I can't seem to get around. Any insight that anyone has will be greatly appreciated. I am running Hotkey Help v. 2.90 as downloaded. In all of my scripts if I am using a hotstring to trigger an action, the help file always displays the ";" as part of the HS description so that this code:

Code: [Select all]GeSHi © Codebox Plus

::btw:: ; <-- Message "btw"
MsgBox You typed "btw".
return

produces the following listing in the help file:
<HS> btw = ; <-- Message "btw"

Is there something I can do to prevent the ";" from being displayed?

I really appreciate this board and the help I receive from it. Thanks!

Top