Take out the wscript and it will work
I took my first stab at making a DigitalMod. I created a new script project with some buttons. In the associated OnMouseClick event for the "stop" button I added the following VB code to connect to a running iTunes process and stop the current song from playing. The script works perfectly when run from the Windows command line, but StreetDeck doesn't seem to know about wscript. Any ideas?
'************************************************* ******************************
'Stop_OnMouseClick
'DESC: event OnMouseClick - Called when the left mouse button is pressed and released within the panel
'************************************************* ******************************
Function Stop_OnMouseClick(x, y)
Dim iTunes, CurState
Set iTunes = WScript.CreateObject("iTunes.Application")
iTunes.Stop
Set iTunes = nothing
End Function
Take out the wscript and it will work
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.
Bingo! It does indeed. Thanks.Originally Posted by god_of_cpu
Bookmarks