Main > Software Forum
MAMEWAH and Future Pinball
<< < (4/5) > >>
buks:
Just wanted to second what Space Fractal said - FP looks excellent even in 640x480. I use it at that res as 800x600 overscans on my SCART/VGA screen. I wasn't even aware that you COULD read the instructions cards !

Another note - I found that setting the display to "Scrolling 2" is best (personal preference I suppose) as you get a closer view of the table and the scroll speed is perfect (presumably if you have a half decent hardware spec).

I never really got into Visual Pinball as (unless I'm wrong) it displayed the table on a static screen which looks terrible at lower res.

Buks
buks:
Totally forgot to mention :

I have the focus issue from mamewah running FP version 1.5.20060416. When I tried Space Fractals wrapper it appears to load the table then just sits there. This happens from mamewah as well as from the command line (I ALWAYS try the command line to rule out any other issues).

Any ideas ? I noticed Space Fractal mentioned that the focus issue was fixed in 1.5.2 but its not (on my machine anyway).

the way I get round not having focus is to press the left mouse button on my CP so its not a major issue but it would be nice to have it fixed !!!

Cheers for reading.

Buks
Howard_Casto:
simulating the pressing alt+tab isn't the best way to set focus.  The best way is to use api calls. 

The problem with the alt+tab wrapper is that it assumes that:

1. The keypresses will be pressed after the table is done loading.

2. It assumes that fp only requires one tab over to set focus. 


I'll see what I can do when I get time.  Too many projects atm. 
Space Fractal:
Future Pinball have 2 windows. One for the editor, wich the table was loading, and a another windows with the game window.

It need to wait for the game window to appear, before sendning a alt-tab stroke. It not the best, but it seen it works fine.

Here is the autohotkey script I used for the wrapper (if you can improve that):


--- Code: ---#NoTrayIcon
#SingleInstance force
SetTitleMatchMode, 2
SetTitleMatchMode, Slow
Run, "Future Pinball.exe" /open "Tables\%1%.fpt" /play /exit
WinWait, (c)
WinWait, BSP
WinWait, Software
Sleep 250
Send !{ALT}
WinWaitClose, BSP

--- End code ---

Future Pinball is only need that tab to got focus. I guess it the Send !{ALT} line, that need change to use the api (how to do that?).
Howard_Casto:
Yeah like I said, you can't use alt-tab or any simulated keystrokes.  The keystrokes are only recieved if fp is past a certain point of it's initalization and direct input isn't blocking them.  The problem is different systems (and even different tables) take a differrent amount of time to boot, so short of setting the delay really long, there is no way of sending keystrokes with guaranteed success.  And no, just because a window is made visible doesn't mean that it is done setting up... that is the issue you are running into. 


Try winactivate or controlfocus (leaving the control parameter blank will set focus to the window itself). 

Info on how to do that specifically is in your autohotkey help file.
Navigation
Message Index
Next page
Previous page

Go to full version