Author |
Topic |
|
plunt
Italy
88 Posts |
Posted - 12/22/2012 : 12:30:55
|
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
2615 Posts |
Posted - 12/23/2012 : 00:37:32
|
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. |
|
|
plunt
Italy
88 Posts |
Posted - 12/23/2012 : 08:56:41
|
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? |
|
|
Rob
USA
2615 Posts |
Posted - 12/23/2012 : 08:58:49
|
Hmm, it works fine for me. What is your system config (Windows version, anything out of the ordinary running)? |
|
|
plunt
Italy
88 Posts |
Posted - 12/23/2012 : 09:30:40
|
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. |
|
|
Rob
USA
2615 Posts |
Posted - 12/23/2012 : 10:49:44
|
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. |
|
|
plunt
Italy
88 Posts |
Posted - 12/23/2012 : 11:53:24
|
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. |
|
|
Rob
USA
2615 Posts |
Posted - 12/23/2012 : 12:12:38
|
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? |
|
|
Rob
USA
2615 Posts |
Posted - 12/23/2012 : 12:17:19
|
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. |
|
|
Rob
USA
2615 Posts |
Posted - 12/23/2012 : 12:17:57
|
So basically, if you exit S+ with the tray icon hidden, that is what's remembered. |
|
|
plunt
Italy
88 Posts |
Posted - 12/23/2012 : 13:14:51
|
okay, okay, even so, it works now. ty |
|
|
|
Topic |
|