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

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

 All Forums
 Feature Updates
 Closed or Deferred Requests
 [CLOSED] hide icon in systray
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

plunt

Italy
88 Posts

Posted - 12/22/2012 :  12:30:55  Show Profile  Reply with Quote
Like StrokeIt, option to hide icon in systray and start configure panel on StrokesPlus.exe restart.
Do StrokesPlus.exe have command line option other that launch the configuration file?

Rob

USA
2606 Posts

Posted - 12/23/2012 :  00:37:32  Show Profile  Visit Rob's Homepage  Reply with Quote
I'm not fully understanding this request. Do you mean hide the tray icon (which is CTRL+SHIFT+WIN+S), and if hidden and trying to run S+ again the settings window appears? I'm not really getting the reasoning behind this. You could make a hot key to call acShowSettings().

The config file location is the only command line parameter as anything else could be added to the config itself, if needed.
Go to Top of Page

plunt

Italy
88 Posts

Posted - 12/23/2012 :  08:56:41  Show Profile  Reply with Quote
I tryed to insert
acToggleTrayIcon()
in the
Global Lua
to hide the tray icon on the start, but it not work.
Do it have a solution?
Go to Top of Page

Rob

USA
2606 Posts

Posted - 12/23/2012 :  08:58:49  Show Profile  Visit Rob's Homepage  Reply with Quote
Hmm, it works fine for me. What is your system config (Windows version, anything out of the ordinary running)?
Go to Top of Page

plunt

Italy
88 Posts

Posted - 12/23/2012 :  09:30:40  Show Profile  Reply with Quote
XP sp3, nothing out of the ordinary running.
I tryed:
acMessageBox("2", "2", nil)
acToggleTrayIcon()
The icon in tray appears only after the messagebox and the toggle, not before.
Go to Top of Page

Rob

USA
2606 Posts

Posted - 12/23/2012 :  10:49:44  Show Profile  Visit Rob's Homepage  Reply with Quote
I just tested on Windows XP SP3 and I'm not able to reproduce :-/

I used the CTRL+SHIFT+WIN+S hot key and made an action that calls acToggleTrayIcon(); no matter which order I use the hot key or gesture (when the tray icon is shown or hidden), it always toggles the icon properly. Not sure why you're experiencing this issue.
Go to Top of Page

plunt

Italy
88 Posts

Posted - 12/23/2012 :  11:53:24  Show Profile  Reply with Quote
CTRL+SHIFT+WIN+S and acToggleTrayIcon() work also for me.
I would at S+ start toggle the tray icon.
Then i write acToggleTrayIcon() in the "Global Lua" tab, but the icon show in the systray.
Go to Top of Page

Rob

USA
2606 Posts

Posted - 12/23/2012 :  12:12:38  Show Profile  Visit Rob's Homepage  Reply with Quote
Ah, that's due to the way S+ initializes everything (Lua is initialized before the tray icon is displayed). So you want to have S+ start and not show in the tray initially?
Go to Top of Page

Rob

USA
2606 Posts

Posted - 12/23/2012 :  12:17:19  Show Profile  Visit Rob's Homepage  Reply with Quote
I forgot that this is supported in the code, but it requires a little editing of the config or a special sequence.

Open S+, use the hotkey to hide the tray icon, then acExit() or CTRL+SHIFT+ALT+WIN+End to exit S+, that will remember that the icon was hidden.

The setting in StrokesPlus.xml is TrayIconVisible, 0 = hidden. Clearly, this would be better as an option in the Preferences window..I'll add that sometime soon.

Actually, with the addition of sp_init() in Global Lua and the changes to acToggleTrayIcon, I don't see a need to add this as a preference.
Go to Top of Page

Rob

USA
2606 Posts

Posted - 12/23/2012 :  12:17:57  Show Profile  Visit Rob's Homepage  Reply with Quote
So basically, if you exit S+ with the tray icon hidden, that is what's remembered.
Go to Top of Page

plunt

Italy
88 Posts

Posted - 12/23/2012 :  13:14:51  Show Profile  Reply with Quote
okay, okay, even so, it works now. ty
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000