Jump to content

Tray related


Second
 Share

Recommended Posts

i want to create a tray menu where i will store some information

hotkeyset("!{F6}", "_hide")

global $showHidden=0,$e[200], $x=1 , $pan[200]


$hiddenWindows = TrayCreatemenu("Hidden windows")
TrayCreateItem("")
$exit  = TrayCreateItem("Exit")

while 1
$traymsg=TrayGetMsg()

if $traymsg=$pan[*]

wend

func _hide()
$e[$x]=WinGetTitle ( "[ACTIVE]" ,"" )   
WinSetState ($e[$x], "", @SW_HIDE )
$pan[$x]=TrayCreateItem($e[$x],$hiddenwindows)
    $x=$x+1 
    endfunc

Now what i want to do is to recognize each created Tray menu item so when pressed, that window hides again.

I don't want to write manually every time

case $pan[1]

case $pan[2]

and ect.

I don't need a full fixed script, just a solution how can i make it work.

Thanks

Edited by second
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...