bloowi11 Posted November 1, 2006 Posted November 1, 2006 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)
smstroble Posted November 2, 2006 Posted November 2, 2006 (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 November 2, 2006 by smstroble MUHAHAHAHAHA
bloowi11 Posted November 2, 2006 Author Posted November 2, 2006 Cool ty, also i was wondering is there a way i can replace the icon used for it?
smstroble Posted November 2, 2006 Posted November 2, 2006 (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. Edited November 2, 2006 by smstroble MUHAHAHAHAHA
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