cheeseslice Posted October 8, 2007 Share Posted October 8, 2007 afternoon, I was wondering if anyone could tell me how I can set the tray icon menu to only have the option to exit the script rather than to pause it. I have been messing about with it and can only seem to get it to have both pause and exit available. Thanks Link to comment Share on other sites More sharing options...
DW1 Posted October 8, 2007 Share Posted October 8, 2007 Opt( "TrayAutoPause", 0 ) Opt( "TrayMenuMode", 1 ) Opt( "TrayOnEventMode", 1 ) Opt( "GUIOnEventMode", 1 ) TrayCreateItem( "Exit" ) TrayItemSetOnEvent( -1, "_bye" ) while 1 Sleep(10) WEnd Func _bye() Exit EndFunc AutoIt3 Online Help Link to comment Share on other sites More sharing options...
cheeseslice Posted October 9, 2007 Author Share Posted October 9, 2007 Opt( "TrayAutoPause", 0 ) Opt( "TrayMenuMode", 1 ) Opt( "TrayOnEventMode", 1 ) Opt( "GUIOnEventMode", 1 ) TrayCreateItem( "Exit" ) TrayItemSetOnEvent( -1, "_bye" ) while 1 Sleep(10) WEnd Func _bye() Exit EndFunc many thanks for that 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