Jump to content

Recommended Posts

Posted

not yet good for 2 screen setup, i don't know if chepas is looking at it now

 

Haha you're joking right? :D

 

I spent a good 15-20 minutes adding it into the game earlier. I don't think you downloaded the edited post that I told you about with ^^^^^^.

 

You probably will have to make sure AHK is not doing any window management on pygame. I could not tell you if it works with PinballX but it basically removes the need for AHK to move the window to the front.

 

I have tested this and it's positioning more than once, so I'm putting it down to user error.

  • Content Provider
Posted

ah you mean you edited the post with a second py file? sorry i didn't understand that way, let me check

  • Content Provider
Posted

ah, just launched evil dead in pinballx and i have the same issue there in fact, can you do the same trick for evildead?

Posted

Because you've probably removed the window management in AHK?

 

I have something to deal with any proc window & with pinballX, but I will need to find it.

  • Content Provider
Posted

thank you, just tried that

 

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
WinWait, Microsoft Visual C++ Runtime Library ahk_class #32770 
WinClose, Microsoft Visual C++ Runtime Library ahk_class #32770
;Brings display to front
WinWaitActive, ahk_class SDL_app
WinSet, AlwaysOnTop, On, ahk_class SDL_app
WinSet, Top,, ahk_class SDL_app
WinActivate, Visual Pinball
ExitApp
 
but it didn't &ork in one of the t&o shots
  • Content Provider
Posted

thanks, i will try.

i am tempted to replace the send enter by winclose, winclose works even when the window is not on top, any reason why you choose that way? just asking

Posted

Didn't know it was possible to close and load that way.

 

It's never failed sending keys. It will be a better way but the difference is really non existent in speed surely if it works anyway.

 

I don't need you coming back and saying it was faster by 0.1337.6969 :) Going to be minimal differences.

 

The only other thing you may not get is the big "CHUNG" sound , which would be nice without.

  • Content Provider
Posted

well, that's what i had in my ahk, no need to put the window on top and send a key, just winclose, it is 100% reliable and for evil dead you sometimes even don't see vp loading, i will try both

  • Content Provider
Posted

and i don't care about speed :) just don't want to press enter if windows is accidentally not on top, it b2s that makes it random

  • 2 weeks later...
Posted

Awesome job guys. I got Skeleton, JD, CCC and ED to work w/ PinballX. Piece of cake.

 

 

Ok ok just kidding. I'll better change my clothes they are all bloody from the goat I had to sacrifice.

 

One thing, on CCC after adding Horsey's game.py code I got a "local variable referenced before assignment" error message when running "python game.py".

I resolved this by declaring "game" as global.

def main():
    try:
        global game
        game = CCGame()
        game.run_loop()
    finally:
        del game

if __name__ == '__main__': main()

I just removed that line again so I can post the full error message here but the error stays gone :/

 

Whatever. Posting it anyway, perhaps somebody else gets the same problem while installing CCC.

 

 

Has somebody made a wheel logo for it yet? If not I'll put something together.

 

@Stefan Can you send me your modified dB2S?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...