Main > Software Forum

AHK (exit) for SUperModel 3

<< < (2/5) > >>

Moksi:
mmm uh ok thxfor helping out first

I want to press the two flipper buttons (key 3 & 4) to quit Supermodel instead of the Esc key
if thats possible ,or one side flipper button like key 4 to quit it

how do i give that command in the supermodel ahk

i tried to play around with this ; This section closes Supermodel when pressing Escape
 
; This section closes Supermodel when pressing Escape
 $Esc::
 {
     Process, Close, {{{StartupEXE}}}
 }
Send, {ALTDOWN}{NDOWN}{ALTUP}
Process, Close, supermodel.exe
ExitAPP
return

i tried this $Esc::4   

the keymapper ahk test sees when i press Esc as a 4  but in hyperspin it does not close supermodel

Moksi:
anybody that managed to change the exit button for supermodel in hyperspin.

It only seems to close for me with Esc which is not on the X-Arcade

With Demul the ahk works easily , only Supermodel is feisty :banghead:

DrakeTungsten:
My AHK is rusty, bit unless a guru chimes in, I can help a bit...

I don't follow all of your code. I'm not sure why any of the braces are there. None of them seem necessary.  But if all the lines of code are being processed, then I guess it's OK, so don't remove them on my say-so. The one thing I know for sure you're doing wrong is your mapping of "$Esc::4". This means to send the character "4" to the program which has input focus. This is not what you asked to do. Based on what you asked for, "$Esc" should not show up anywhere in the code. You want to map the key "4" to the code which exits the emulator, so what you should have done is replace "$Esc" with "4". So again, assuming the rest of the code is fine, substitute the line "$Esc::" with the line "4::"

Moksi:
 i tried that but it doesnt respond , but only Esc works

i tried a bunch of things like    4::send !{F4} 

Supermodel has that Esc button Locked down  :badmood:   

DrakeTungsten:
argonlefou's method works for me.

Hyperspin doesn't appear to be the problem of Alt-F4 not being recognized. That appears to be an issue with Supermodel (it is not unheard-of for some programs to not work with AHK input shenanigans) I tried supermodel, and couldn't get it to close either by sending alt-F4 when "4" is pressed. Using argonlefouou's method, however, did close Supermodel. I didn't use Hyperspin, I just ran supermodel from the command line after loading an AHK script that simply consisted of


--- Code: ---4::
Process, close, Supermodel.exe
ExitApp

--- End code ---

I see you already have a "process, close, supermodel.exe" line, but are you sure it's getting there? It's outside a block you defined with some braces. I don't know if that's valid AHK or whether it's some kind of HS extension.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version