Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

[RESOLVED] Launching and quitting programs before and after VPX within PBX...


Recommended Posts

Posted

One of two issues. I will address the other in my other forum post. 

I have a makeshift cab. Two monitors and an X-Arcade Tankstick. There are two side buttons on each side of the Tankstick. The issue is that the extraneous two buttons are mouse buttons...so...you have to use a Hotkey script (a couple of them on my system) to switch the mouse buttons with the "nudge" keys on the keyboard. ("Z" and "/") and, that way, you can use your Tankstick upper side buttons to "nudge" tables within VPX. 

The issue is that the scripts nullify keys, which means you cannot jump from a VPX game to, say, MAME on the fly and start playing six-button arcade games because random keys don't respond anymore when the HK scripts are active.

Is there a way I can launch both scripts beforehand for VPX, keep them running while VPX is running, then have them both quit upon exit so I can go into other emulators and play other games that aren't virtual pinball games?

I'm a little over halfway there with my Before programming but I haven't tested it. So far, I have this.

image.png.820f0e72fb09e9c907e5115e30091a83.png

Posted
16 hours ago, Mike_da_Spike said:

If you need 2 files to run, add them to a batch file (.bat or .cmd) and add that batchfile to your launch before scripts

Maybe this will help https://www.tutorialspoint.com/batch_script/index.htm

Hey Spike...

My BAT file works for launching my nudge files but I can't seem to make a BAT file to make them quit. I thought I had the right syntax but maybe I'm missing something. Here's what I have in the "kill" BAT:

@echo off
taskkill /F /IM X-Hotkeys.exe
taskkill /F /IM AutoHotKey 64-bit.exe
exit

The applications don't quit and will ignore the BAT file.

Nevermind! Got it working! Did this for the kill BAT:

@echo off
TSKILL X-Hotkeys
TSKILL Nudge
exit

Works like a charm! Thanks!

  • Like 1
  • Draco1962 changed the title to [RESOLVED] Launching and quitting programs before and after VPX within PBX...
Guest
This topic is now closed to further replies.
×
×
  • Create New...