Gadget Question

Thursday, March 24, 2005 by Deathkitty | Discussion: DesktopX

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.
thomassen
Reply #1 Friday, March 25, 2005 7:53 AM
Sub Object_OnInitialize()
Widget.Minimize
End Sub

I think that should work
ZubaZ
Reply #2 Friday, March 25, 2005 11:48 AM
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
Deathkitty
Reply #3 Friday, March 25, 2005 4:01 PM
Thank you, thank you, thank you! You guys are awesome. I never thought there might be scripts for this. Thanks a million!
Deathkitty
Reply #4 Friday, March 25, 2005 5:30 PM
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,)
ZubaZ
Reply #5 Friday, March 25, 2005 5:45 PM
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
Deathkitty
Reply #6 Saturday, March 26, 2005 3:54 AM
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.
thomassen
Reply #7 Saturday, March 26, 2005 7:28 AM
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)
Deathkitty
Reply #8 Saturday, March 26, 2005 4:58 PM
Ok, that makes sense. Thank you thomassen, and you too zubar.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01