Sign in to follow this  
Followers 0
bloowi11

Systray Icon

4 posts in this topic

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)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Cool ty, also i was wondering is there a way i can replace the icon used for it?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Yes, instead of just straight compiling it from Scite, dig trough you start menu and find Compile Script to .exe or look in your auto it folders for Aut2Exe.exe and run it.

Posted Image

Edited by smstroble

MUHAHAHAHAHA

Share this post


Link to post
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
Sign in to follow this  
Followers 0