Jump to content

tray with more buttons


Recommended Posts

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 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...