Sign in to follow this  
Followers 0
anystupidassname

the error in my ways

3 posts in this topic

Can somebody please tell me why trayicon behaviour is acting so howkey for me?

Symptoms:

-Icon shows when I don't want it to or doesn't show when I do.

-right clicking it while inetget is active doesn't respond until it is done.

-traytips are acting funky too, some show some don't with no apparent rhyme or reason...(i'll post a second question for this)

#NoTrayIcon
AutoItSetOption("RunErrorsFatal", 0)
;AutoItSetOption("TrayIconHide", 0)
If $CmdLine[0] = 2 Then
    $ir = $CmdLine[1] & $CmdLine[2]
ElseIf $CmdLine[0] = 1 Then
    $ir = $CmdLine[1]
EndIf
;classify switchs
$silent = StringInStr("s",$ir)
If $silent = 0 Then
   Opt("TrayIconHide", 0)
EndIf
$rr = StringInStr("r",$ir)

The idea here (or what I'd like) is that when the script is run without params, it will start with no systray icon, it'll find out no "s" switch was specified and unhide itself for the rest of the script. If /s is specified it will stay hidden. But for my last couple tries the icon has shown up. Thanks for any help!


This signature is computer generated, nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#.......

Share this post


Link to post
Share on other sites



You might have better success with TraySetState(@SW_SHOW).

Share this post


Link to post
Share on other sites

You might have better success with TraySetState(@SW_SHOW).

<{POST_SNAPBACK}>

People kept referring to the beta but I didn't know where it was. CreateObj and TraySetState and other things are only valid in the beta. I've now found it and I'll experiment with TraySetState, thanks.

This signature is computer generated, nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#.......

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  
Followers 0