09-27-2019, 03:58 AM
I have created a Toolbar. I don’t want to pin it to a specific window or app. I created it on the areas of desktop, can I have it close (timeout) after a number of seconds?
Unpinned Toolbar Timeout?
|
09-27-2019, 03:58 AM
I have created a Toolbar. I don’t want to pin it to a specific window or app. I created it on the areas of desktop, can I have it close (timeout) after a number of seconds?
09-27-2019, 03:00 PM
simplest way is to create a hook function for the toolbar
Function ToolbarSelfClose ;/ then add the function to the toolbar properties
09-27-2019, 03:13 PM
Thanks for the reply and help. This is super
09-27-2019, 04:30 PM
Hi, this function worked only once. I can see it counting when I use the message part, but it will not close. Thanks
for some reason, not sure why the counter variable is not being reset when the toolbar closes
use this code instead Function ToolbarSelfClose function# hWnd message wParam lParam
09-27-2019, 08:05 PM
Super as well, that one does the trick. I am really happy to see an example that helps understand how timers in QM work. This also helps a bunch with my Toolbar! Thanks so much
I redid the toolbar hookfunction after thinking about it and checking qm help.
This is the proper way to do it. Should not use thread variables in qm toolbar hook functions Code corrected in post above
10-01-2019, 08:57 PM
I think you are saying that the first version uses thread variables and that the second version is a better way not using thread variables. OK, help me to understand which is a thread variable in the first one. This super cool I am on my way to being like you someday . Chris
10-02-2019, 02:20 AM
a thread variable is the first two examples is int-- t or int- t
read http://www.quickmacros.com/help/Language...ABLES.html for more info also read http://www.quickmacros.com/help/QM_Help/...OLBAR.html for more info regarding toolbar hook functions i adapted the example there for the function above Gintaras has put a lot of time and effort into creating and making the QM help. It's an invaluable resource. QM help is available online or directly in qm |
« Next Oldest | Next Newest »
|