Ontosy Posted June 8, 2019 Share Posted June 8, 2019 Do it is possible to create and manage more tray buttons instead of only one? Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted June 8, 2019 Share Posted June 8, 2019 @Ontosy Sure. Take a look at Tray* functions in the Help file Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Ontosy Posted June 8, 2019 Author Share Posted June 8, 2019 in "Tray functions Reference" i see that can to create more menus and items for only one button associate to script but not more buttons in systray. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted June 8, 2019 Share Posted June 8, 2019 @Ontosy Each tray icon is associated to a single application, which could have more than a menu and submenus; but you can't have more than an icon in the System Tray which refer to the same application Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Ontosy Posted June 8, 2019 Author Share Posted June 8, 2019 But do it is not possible to get it programmatically? Link to comment Share on other sites More sharing options...
Exit Posted June 8, 2019 Share Posted June 8, 2019 Start the script twice App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Ontosy Posted June 8, 2019 Author Share Posted June 8, 2019 I would to use only a script. Link to comment Share on other sites More sharing options...
Exit Posted June 8, 2019 Share Posted June 8, 2019 can you explain why you need two icons? App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Ontosy Posted June 8, 2019 Author Share Posted June 8, 2019 I would to associate two action to click directly in more button in systray. Link to comment Share on other sites More sharing options...
Exit Posted June 8, 2019 Share Posted June 8, 2019 You have at least 4 different options with a tray icon: Left Click, Right Click, Left Double Click and Right Double Click. Further information in the help file under TraySetOnEvent () App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Ontosy Posted June 8, 2019 Author Share Posted June 8, 2019 I not will to use more left or right on only one button to do more action. should I take note that this is not possible? Link to comment Share on other sites More sharing options...
Exit Posted June 8, 2019 Share Posted June 8, 2019 yes App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
AoRaToS Posted June 8, 2019 Share Posted June 8, 2019 (edited) You can call a second script from the first one and have a second tray icon, then whatever action you take on that button you have to pass it along to the first script. A small example using this method: make one script with this: TraySetIcon("Shell32.dll", "16") $iPID = Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & @DesktopDir & '\runtest.au3"' & ' ' & '1' & ' ' & 'help', "", @SW_HIDE) while 1 sleep(100) wend make a second script with this: (save it on your desktop as runtest.au3) TraySetIcon("Shell32.dll", "17") while 1 sleep(100) wend then run the first example. The first script will call the second script, you can even FileInstall the second script into the first one for this and delete after you're done. It is possible but there is a bit more to it in terms of passing along to the first script what is done to the tray of the second one. Edited June 8, 2019 by AoRaToS s!mpL3 LAN Messenger Current version 2.9.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3 Link to comment Share on other sites More sharing options...
Ontosy Posted June 8, 2019 Author Share Posted June 8, 2019 I not would more script that one. Link to comment Share on other sites More sharing options...
AoRaToS Posted June 8, 2019 Share Posted June 8, 2019 1 minute ago, Ontosy said: I not would more script that one. Good luck with that! s!mpL3 LAN Messenger Current version 2.9.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now