Gadget Question

Is there a way to start up gadgets in the systray? I love the minimize to systray feature included, but I don't really need to see my e-mail checker everytime I startup. Heck, it can't even check my mail until my wireless card connects! I tried adding -startup the the shortcut, that didn't work (hey it fixed my rightclick problem ) If anyone knows a way to do this, maybe I just missed something when I created the gadget, please post. If there isn't, please think about this function for future updates.
2,858 views 8 replies
Reply #1 Top
Sub Object_OnInitialize()
Widget.Minimize
End Sub

I think that should work
Reply #2 Top
I set a timer for my object that calls widget.minimize so that a user would see it like a splash scre, know that it was there, then minimize.

I plan on adding a(n) "on mouse action" "kill timer" in case the user wants to interact right away.


Posted via WinCustomize Browser/Stardock Central
Reply #3 Top
Thank you, thank you, thank you! You guys are awesome. I never thought there might be scripts for this. Thanks a million!
Reply #4 Top
Ok, well I really don't know very much about scripting at all. I tried adding this to the script and had no results. Should I have something in the parenthesis. Or do I need to put it after a certain point.(i've tried it at the end, after the constants, and a few other places,)
Reply #5 Top
I used the below on the background object of my widget.
It won't work until you export as a widget.

'Called when the script is executed
Sub Object_OnScriptEnter
Object.SetTimer 12345, 30000
End Sub

Sub Object_OnTimer12345
widget.Minimize
Object.KillTimer 12345
End Sub

'Called when the script is terminated
Sub Object_OnScriptExit

End Sub
Reply #6 Top
Awesome, Awesome, Awesome. So is there anyway I can set the timer for a much shorter duration, like, um, 1 millionth of a second (hehehe), or like a second or something? Sorry, I never got any farther in programming than a quarter of c++ in high school.
Reply #7 Top
It's the second argument of the SetTimer function.
Object.SetTimer 12345, 30000

This in milliseconds, meaning 30 seconds. Try something like 5 seconds (5000)