belpe Posted September 5, 2006 Share Posted September 5, 2006 Hello, is there any way to run vbs script or external exe on DVBViewer startup? Quote Link to comment
Tjod Posted September 5, 2006 Share Posted September 5, 2006 Normal startup? Start a VBS script which run the DVBViewer. Or through DVB Task Scheduler edit the Scheduler.ini change LaunchedFile=DVBViewer.exe. Quote Link to comment
belpe Posted September 6, 2006 Author Share Posted September 6, 2006 Normal startup? I mean startup of DVBViewer, whether it is launched manualy or from scheduler. To explain: I need to import xmltv epg once a day. I know I can script this with autoit, but having DVBViewer run it on its startup would help to keep it simple. Without this, runing myxmltv independent of DV, I have to check if DV is running and start it if not. My idea: DV starts (manual, or auto) -> it launches my vbs script -> script checks if there is new xmltv file -> imports if yes, does not import if not. And I'd also appreciate if there is command-line switch for myxmltv, to avoid using AuotIt scripting. Quote Link to comment
Guest Lars_MQ Posted September 6, 2006 Share Posted September 6, 2006 I know sounds archaic, but ever thought of a batchfile for it? make a DVBViewer.bat and first start the DVBViewer in it and then do you thing. and instead of starting DVBViewer.exe you just start DVBViewer.bat... Quote Link to comment
belpe Posted September 6, 2006 Author Share Posted September 6, 2006 In batchfile I can't run second program while first is still running. It just waits until DV finishes. As I said - it is possible to run it as I want with AutoIt, but it is ugly solution. My question was if it is possible to execute any action on DV startup. (found no mention in manual & this forum) So the obvious answer is NO, ... I can live without it. If only authors could update myxmltv with command-line options... Quote Link to comment
Guest Lars_MQ Posted September 6, 2006 Share Posted September 6, 2006 Oh? That's really new. Then I'm lucky the "call" and "start" command in a batchfile work on my system to spin off a program... My question was if it is possible to execute any action on DV startup. The answer is no not direkt and yes you can indirect. No I didn't put a script on startup into it. But you can define a usercommand > 0x5000hex and write in the command.vbs a catch for your usercommand, where you can do everything you need. Then start the DVBViewer with the commandline DVBViewer.exe -x[your-commandNr]. This should work without problems. For the definitions of the commands.vbs have a look into the com-Doku I think I wrote every needed there. If only authors could update myxmltv with command-line options... If the author finds the time, I will have a look at it Quote Link to comment
Tjod Posted September 6, 2006 Share Posted September 6, 2006 A batchfile shout work start "" C:\Programme\DVBViewer\DVBViewer.exe start "" notepad.exe Quote Link to comment
Guest Lars_MQ Posted September 6, 2006 Share Posted September 6, 2006 One thing I forgot: The advantage of my aproach is, you can put the usercommand also onto a key on the keyboard or remote to trigger it manually (if needed). Quote Link to comment
belpe Posted September 6, 2006 Author Share Posted September 6, 2006 oh, sorry. I forgot about "start" in batchfiles - I didn't use it for years... shame, shame. Thanks for all replies. Quote Link to comment
goelectric Posted January 16, 2007 Share Posted January 16, 2007 oh, sorry. I forgot about "start" in batchfiles - I didn't use it for years... shame, shame. Thanks for all replies. Hi, Did you get this working? Could you post your solution so we can copy your example please? ATB Steve. Quote Link to comment
trougloubidchou Posted May 16, 2008 Share Posted May 16, 2008 Hello, I used myxmltv and it did not start DVBViewer when i imported. Is it still needed to open DVBViewer to import a xmltv file ? I created a batch file that download a xmltv file and then lauch myxmltv but it don't work because i have to click the import button. Is it possible to use commande line with myxmltv to specify to use only the import function ? Regards. Jérôme 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.