This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Feature Updates
 Completed Requests
 [COMPLETE] Hidden tray icon
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Hax

128 Posts

Posted - 02/07/2012 :  10:11:54  Show Profile
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  Show Profile  Visit Rob's Homepage
Added in 1.4.7.

Hotkey CTRL+SHIFT+WIN+S or acToggleTrayIcon()
Go to Top of Page

Hax

128 Posts

Posted - 02/07/2012 :  12:24:22  Show Profile
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.
Go to Top of Page

Rob

USA
2615 Posts

Posted - 02/07/2012 :  12:27:06  Show Profile  Visit Rob's Homepage
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.
Go to Top of Page

Hax

128 Posts

Posted - 02/07/2012 :  12:36:21  Show Profile
But it doesn't remember that. S+ always starts with visible tray icon.
Go to Top of Page

Rob

USA
2615 Posts

Posted - 02/07/2012 :  12:37:23  Show Profile  Visit Rob's Homepage
Ah, then that would be a bug... I even tested it more than once.
Go to Top of Page

Rob

USA
2615 Posts

Posted - 02/07/2012 :  12:38:35  Show Profile  Visit Rob's Homepage
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.
Go to Top of Page

Hax

128 Posts

Posted - 02/07/2012 :  13:09:45  Show Profile
Oh, now I know that I can kill the process/logout only after the state is saved in the config file. Thanks.
Go to Top of Page

Rob

USA
2615 Posts

Posted - 02/07/2012 :  13:13:07  Show Profile  Visit Rob's Homepage
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 =)
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000