| Main > Software Forum |
| Johnny 5 beta 2.0 released! |
| << < (9/10) > >> |
| papaschtroumpf:
I've though about asking on the AHK support list, but I'm not sure how to characterize the problem to ask the question properly. What do we believe the problem is exactly? My own experimentation a week or two ago seemed to show that MAME was not getting the unpause key, or possibly was getting two of them in very fat succession (on the pacman startup screen I would see the test pattern change one step). I added a 3s delay between the time we tell johnny to exit and MAME to unpause, so I thought the problem couldn't be with johnny, but if you say it works when calling irfanview or cpviewer in the scrips, then maybe I need to rethink my original conclusion. I'll try and play with it more this weekend. |
| Tiger-Heli:
--- Quote from: papaschtroumpf on October 19, 2005, 11:02:36 am ---I've though about asking on the AHK support list, but I'm not sure how to characterize the problem to ask the question properly. What do we believe the problem is exactly? --- End quote --- As I see it, we have 3 problems: 1) Script does not pause with MAME in Win98. (Possibly keyhook problem, but odd because script does work correctly in Win98 if you simply load it and try to launch Johnny from an application other than MAME. 2) Unmodified script (Method 4) gets confused when pausing and unpausing MAME. 3) Modified script (Method 5) is always active and should be only active with MAME paused, you posted earlier about this. We need a way for the script to monitor whether MAME is running or paused . . . --- Quote ---My own experimentation a week or two ago seemed to show that MAME was not getting the unpause key, or possibly was getting two of them in very fat succession (on the pacman startup screen I would see the test pattern change one step). --- End quote --- My tests seemed to reflect that also . . . --- Quote ---but if you say it works when calling rfanview or cpviewer in the scrips, then maybe I need to rethink my original conclusion. --- End quote --- That was NOT what I said. What I said was Method 5 (launch from a separate Hotkey after MAME is paused) worked when calling IrfanView and was faster than calling Johnny5. Therefore, possibly it would be less problematic to call Irfanview than Johnny5 when MAME was paused (Method 4), but I did NOT test this out. --- Quote ---I'll try and play with it more this weekend. --- End quote --- Thanks |
| AllisterFiend:
--- Quote from: Tiger-Heli on October 19, 2005, 11:21:39 am --- --- Quote from: papaschtroumpf on October 19, 2005, 11:02:36 am ---I've though about asking on the AHK support list, but I'm not sure how to characterize the problem to ask the question properly. What do we believe the problem is exactly? --- End quote --- As I see it, we have 3 problems: 1) Script does not pause with MAME in Win98. (Possibly keyhook problem, but odd because script does work correctly in Win98 if you simply load it and try to launch Johnny from an application other than MAME. 2) Unmodified script (Method 4) gets confused when pausing and unpausing MAME. 3) Modified script (Method 5) is always active and should be only active with MAME paused, you posted earlier about this. We need a way for the script to monitor whether MAME is running or paused . . . --- Quote ---My own experimentation a week or two ago seemed to show that MAME was not getting the unpause key, or possibly was getting two of them in very fat succession (on the pacman startup screen I would see the test pattern change one step). --- End quote --- My tests seemed to reflect that also . . . --- Quote ---but if you say it works when calling rfanview or cpviewer in the scrips, then maybe I need to rethink my original conclusion. --- End quote --- That was NOT what I said. What I said was Method 5 (launch from a separate Hotkey after MAME is paused) worked when calling IrfanView and was faster than calling Johnny5. Therefore, possibly it would be less problematic to call Irfanview than Johnny5 when MAME was paused (Method 4), but I did NOT test this out. --- Quote ---I'll try and play with it more this weekend. --- End quote --- Thanks --- End quote --- I posted a message on AHK forum last night. (papaschtroumpf, I just saw your post on their forum also), but mine was concerning problem #3. Thalon from the AHK forum posted a solution to problem #3 and so far it has been working for me, I'll list it here so someone else can test it out also. I had to remove a line and add an } in his solution to get it to work. (I do not think it needed that line, oh well, it started to work when it was removed ;D) Okay, lets see if I can get this to list okay... This is what Thalon posted. --- Code: ---~p:: IfWinActive, ahk_class {M.A.M.E.class} { if p_pressed = 1 p_pressed = 0 else p_pressed = 1 } return ~7:: { if p_pressed = 1 { If ScreenState =1 { send, {Escape down} send, {Escape up} ...... } } return --- End code --- And this is how It looks in the script that I am using. --- Code: ---#SingleInstance force #Persistent ; The asterisk prefix makes the remapping more complete on XP/2k/NT. For 9x systems you can remove it. DetectHiddenWindows, On ScreenState=0 ~p:: { if p_pressed = 1 p_pressed = 0 else p_pressed = 1 } return ~7:: { if p_pressed = 1 { If ScreenState = 1 { send, {Escape down} send, {Escape up} WinActivate,%Title% WinRestore,%Title% WinActivate,%Title% WinWaitActive,%Title% ScreenState=0 } else { WinGetActiveTitle, Title J5=i_view32.exe %1%.png /fs Run,%J5%, L:\arcademachine\mame\arcadecabinetcontrols, max ScreenState=1 } } } return ~Escape:: { If ScreenState = 1 { WinActivate,%Title% WinRestore,%Title% WinActivate,%Title% WinWaitActive,%Title% ScreenState=0 } } return ~=:: if ScreenState=1 { send, {Escape down} send, {Escape up} WinActivate,%Title% WinRestore,%Title% WinActivate,%Title% WinWaitActive,%Title% ScreenState=0 } else { ExitApp ; Assign a hotkey to terminate this script. } return --- End code --- Let me know how this works for you. Here are the links to the two messages on the AHK forums... http://www.autohotkey.com/forum/viewtopic.php?p=35492#35492 http://www.autohotkey.com/forum/viewtopic.php?t=5915 Thanks, Allister Fiend |
| bigfuz:
Tiger-Heli, whats the reason behind the "Win98SE does not work (and likely will not ever)" for AHK? |
| Howard_Casto:
It's a limitation of windows 98. 98 doesn't allow high-level hooking of the keyboard. While it possibly could be done at a very low level, it'd screw up the inputs in mame and virtually everything else. Long story short, it *may* be possible, but not with ahk or any of the wrappers I make and not easily. |
| Navigation |
| Message Index |
| Next page |
| Previous page |