Jump to content

Systray Icon


 Share

Recommended Posts

Ok so im trying to figure out how to make it create a clickable systray icon instead of a key to make it show again, basicly so i dont forget i just hid the program not closed it.

Can any one help me make it so that i can have a systray icon?

hotkeyset ("{F9}", "hide") 
hotkeyset ("{F10}", "show") 


func hide() 
WinSetState ( "World of Warcraft", "", @SW_MINIMIZE ) 
WinSetState ( "World of Warcraft", "", @SW_HIDE ) 
endfunc 

func show() 
Winsetstate ( "World of Warcraft", "", @SW_SHOW ) 
WinSetState ( "World of Warcraft", "", @SW_MAXIMIZE ) 
endfunc 

while 1 
sleep(1000)
Link to comment
Share on other sites

you should allready have a tray icon however this will make it only appear when warcraft is hidden

hotkeyset ("{F9}", "hide")
hotkeyset ("{F10}", "show")
opt("TrayIconHide", 1)


While 1
    sleep(1000) 
WEnd

Func hide()
    WinSetState ( "World of Warcraft", "", @SW_MINIMIZE )
    WinSetState ( "World of Warcraft", "", @SW_HIDE )
    opt("TrayIconHide", 0)
    Return 0
EndFunc

Func show()
    Winsetstate ( "World of Warcraft", "", @SW_SHOW )
    WinSetState ( "World of Warcraft", "", @SW_MAXIMIZE )
    opt("TrayIconHide", 1)
    Return 0
EndFunc

EDIT: you can use Opt("TrayMenuMode", 1) and TrayGetMsg to setup a GUI like select loop for the tray icon. use TrayCreateMenu to make a menu and TrayCreateMenuItem for the items.

Edited by smstroble

MUHAHAHAHAHA

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