Jump to content

Execute script via input action?


daffy

Recommended Posts

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.

Link to comment
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 :(

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...