Author Topic: Visual Pinball Clean Escape (AutoIt)  (Read 12672 times)

bionictoothpick

  • Sr. Member
  • ****
  • Posts: 325
  • He who laughs lasts.
    • View Profile
Visual Pinball Clean Escape (AutoIt)
« on: February 25, 2016, 02:48:05 AM »
Here is how to exit Visual Pinball with just the escape key (since by default it brings up the Visual Pinball menu, rather than a direct exit):
____________________________
HotKeySet("{ESC}", "KillDaWabbit")
HotKeySet("{PAUSE}", "Terminate")

While 1
    Sleep(100)
WEnd

Func KillDaWabbit()
   ProcessClose("vpinball8.exe")
EndFunc

Func Terminate()
   Exit
EndFunc
______________
I found the solution here: https://www.autoitscript.com/forum/topic/6089-trying-to-exit-visual-pinball/

Just rename vpinball8.exe to the version you want to close.
« Last Edit: February 25, 2016, 10:45:01 AM by bionictoothpick »