Opening file with nncron has different behaviour than native

nnCron and nnCron LITE discussion

Opening file with nncron has different behaviour than native

Postby kellyc » Tue, 04 Jul 2006, 07:22

When nncron opens a file for me the behavior of the file is different than when it is opened manually. It is a streaming audio radio station program using iTunes. When opened manually the default audio device is used for playback. When opened using nncron, playback is on a different audio device. It uses the USB headset as the audio instead of the sound card which is set as the default audio device. The USB headset happens to be at the top of the list for available audie devices.

Any ideas how to force it to use the default device?
kellyc
 
Posts: 2
Joined: Sun, 07 May 2006, 17:52
Location: Portland Oregon USA

Postby LuckMan212 » Tue, 04 Jul 2006, 07:40

I have seen this kind of behavior also,
you may try several things:

try to add "AsLoggedUser" directive to beginning of task, like this:
Code: Select all
#( my_task
AsLoggedUser
Action:
<VBScript>
   set Shell = WScript.CreateObject("Shell.Application")
   Shell.Open "C:\folder\my_stream.asx"
</SCRIPT>
)#


also you can try alternate ways of opening files, using VBScript or JScript:
Code: Select all
<VBScript>
   set Shell = WScript.CreateObject("Shell.Application")
   Shell.Open "C:\windows\notepad.exe"
</SCRIPT>

<JScript>
   var WshShell = new ActiveXObject("WScript.Shell");
   WshShell.Run("%windir%\system32\calc.exe");
</SCRIPT>


I hope this may help you :D
LuckMan212
 
Posts: 133
Joined: Mon, 04 Jul 2005, 11:19

Adding "AsLoggedUser" solved the problem.

Postby kellyc » Tue, 04 Jul 2006, 20:09

Thank you. Adding "AsLoggedUser" solved the problem. This makes sense if it causes my profile to be used when the application loads.

Cheers and thanks again.
kellyc
 
Posts: 2
Joined: Sun, 07 May 2006, 17:52
Location: Portland Oregon USA


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 2 guests

cron