Author |
Topic |
|
Hax
128 Posts |
Posted - 02/07/2012 : 10:11:54
|
I'd like to be able to hide the tray icon and assign some shortcut/gesture for hiding/unhiding it. |
|
Rob
USA
2615 Posts |
Posted - 02/07/2012 : 10:58:33
|
Added in 1.4.7.
Hotkey CTRL+SHIFT+WIN+S or acToggleTrayIcon() |
|
|
Hax
128 Posts |
Posted - 02/07/2012 : 12:24:22
|
Thanks!
How can I hide this icon on startup? acToggleTrayIcon() in the StrokesPlus.lua doesn't work for me. However, it works after clicking Reload Config. |
|
|
Rob
USA
2615 Posts |
Posted - 02/07/2012 : 12:27:06
|
StrokesPlus.lua is intended for global Lua stuff. The S+ bound actions haven't been exposed to the Lua engine until the app is fully loaded (which is why it works the second time).
However, the tray icon's visibility is saved in the config, so when you start S+, it will remember that you had it hidden; no need to have a script of any type. |
|
|
Hax
128 Posts |
Posted - 02/07/2012 : 12:36:21
|
But it doesn't remember that. S+ always starts with visible tray icon. |
|
|
Rob
USA
2615 Posts |
Posted - 02/07/2012 : 12:37:23
|
Ah, then that would be a bug... I even tested it more than once. |
|
|
Rob
USA
2615 Posts |
Posted - 02/07/2012 : 12:38:35
|
Wait, are you exiting while the tray icon is hidden? Which would only be via calling acExit() or CTRL+ALT+SHIFT+WIN+End?
If the icon is shown when you close S+, that's the state it remembers. |
|
|
Hax
128 Posts |
Posted - 02/07/2012 : 13:09:45
|
Oh, now I know that I can kill the process/logout only after the state is saved in the config file. Thanks. |
|
|
Rob
USA
2615 Posts |
Posted - 02/07/2012 : 13:13:07
|
Bah, I found an issue which explains one part of why the acToggleTrayIcon() wasn't working in StrokesPlus.lua. I made a bunch of code changes and the way it is now is better, but acToggleTrayIcon() still won't work in StrokesPlus.lua because the message loop hasn't begun when the DLL is hooked, so acToggleTrayIcon() posts the message to the EXE, telling it to toggle the icon, but since this occurs just before the message loop is initiated, the message is discarded.
So basically, you're going to have to deal with the way it is =) |
|
|
|
Topic |
|