Jump to content

Stop The Pausing On Tray Click


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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