daffy Posted January 29, 2006 Share Posted January 29, 2006 Hi, is it possible to execute a script via an input action? The plan would be to * create VBS script * create input action then * trigger input action * have script executed I am not really interested in Plugin menu or OSD integration. Quote Link to comment
admi-ral Posted January 29, 2006 Share Posted January 29, 2006 is it possible to execute a script via an input action? yes it is! Create a Folder called "Scripts" in your DVBViewer-Folder an create a "Command.vbs" in this folder the command.vbs may contain following commands sub main(command) osd.showinfointvpic "Action Nr: " & cstr(command),3000 if command = 21000 then osd.execnewprocess "c:\windows\system32\wscript.exe", "c:\programme\dvbviewer3\scripts\vbs\EPGUpdate.vbs",false,false if command = 21001 then osd.execnewprocess "c:\windows\system32\wscript.exe", "c:\programme\dvbviewer3\scripts\vbs\DBRefresh.vbs",false,false if command = 21002 then osd.execnewprocess "c:\windows\system32\wscript.exe", "c:\programme\dvbviewer3\scripts\vbs\freespace.vbs",false,false if command = 21003 then osd.execnewprocess "c:\windows\system32\wscript.exe", "c:\programme\dvbviewer3\scripts\vbs\ProjectX.vbs",false,false if command = 21004 then osd.execnewprocess "c:\windows\system32\wscript.exe", "c:\programme\dvbviewer3\scripts\vbs\TimerManager.vbs",false,false end sub as you can see, there are new commands from 21000 to 21004. You can create as many as you want but remember that there are already the "intern-commands". Open the Action-Editor (Option/Input/Add...) afterwards and create a new action with the embedded command. You could insert your scripts in the command.vbs directly, too - my version above is just one way to solve this prob Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.