View Single Post
Old 21 September 2016, 12:46   #1
znicoboc
Registered User

 
Join Date: Sep 2016
Location: ronchin / france
Posts: 2
winuae and autohotkey

hi, i write a programm with autohotkey to similate a keyboard with a joystick (i use winuae on my arcade cab)
the programm works fine with Notepad but when i want to use it with winuae (fullscreen or windowed) the autohotkey programm does'nt respond
i think it's a problem of priority, but i can't solve it, can you help me?
what is not working is the fact that i want enable or disable the virtual keyboard, if he's enable before the launch of the game, he stay enable and if he is disable, guess what... he stay disable
no way to change the status of autohotkey during the game

the autohotkey program :

Quote:
alphabet=abcdefghijklmnopqrstuvwxyz
lettre := 1

;up -> ctrl gauche , down -> F8 , left -> F9 , right -> inser , coin -> _

_::suspend
lctrl::Numpad0
F8::Numpad8
F9::Numpad2
ins::Numpad3
numpad0::
numpad8::
numpad2::
numpad3::
numpad4::


GetKeyState, state, Numpad8
if state = D
{
send {BS}
send % SubStr(alphabet, lettre, 1)
lettre := lettre+1
}

if lettre=27
lettre:=1

GetKeyState, state, Numpad3
if state = D
{ send {a}
lettre:=2
}

GetKeyState, state, Numpad0
if state = D
{
lettre := lettre-1
send {BS}
send % SubStr(alphabet, lettre, 1)

}


if lettre=0
lettre:=26

GetKeyState, state, Numpad2
if state = D
send {BS}

excuse me for my poor English and all the mistakes...

Last edited by znicoboc; 21 September 2016 at 13:25.
znicoboc is offline  
AdSense AdSense  
 
Page generated in 0.06142 seconds with 9 queries