Jump to content
Sign in to follow this  
FinalVersion

Stop The Pausing On Tray Click

Recommended Posts

FinalVersion

How can I stop the script from pausing when I click on the tray icon, and remove the "script pause" trayitem, thanks.

Edit: Nvm solved myself with Opt("TrayAutoPause", 0)

Still need to remove the tray option tho :)

Edited by Godly

Share this post


Link to post
Share on other sites
unixu

How can I stop the script from pausing when I click on the tray icon, and remove the "script pause" trayitem, thanks.

Edit: Nvm solved myself with Opt("TrayAutoPause", 0)

Still need to remove the tray option tho :)

use the following ^^

Opt("TrayOnEventMode",1)
Opt("TrayMenuMode",1)
$exititem = TrayCreateItem("Exit")
TrayItemSetOnEvent(-1,"Exitt")
TraySetClick(16) // This will tell the trayicon to only react on rightklick with mouse
TraySetState()

Func Exitt()
     Exit
EndFunc

Share this post


Link to post
Share on other sites
FinalVersion

use the following ^^

Opt("TrayOnEventMode",1)
Opt("TrayMenuMode",1)
$exititem = TrayCreateItem("Exit")
TrayItemSetOnEvent(-1,"Exitt")
TraySetClick(16) // This will tell the trayicon to only react on rightklick with mouse
TraySetState()

Func Exitt()
     Exit
EndFunc
Thanks.

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  

×