Jump to content
Sign in to follow this  

ControlSend($title, $keys) --> messes up my game

Recommended Posts

I'm playing Pac-Man and suddenly I lose control and die. It's because of the autoit program running in the background. The window I was playing the game in is no longer selected, but the window ControlSend was sending to.

I'm not making any money for the projects I do, but I don't want people that use my programs to experience these things.

I guess this is more of a complaint. Maybe I need to figure out a way to get the control and window that's currently selected so I can quickly switch the focus back after ControlSend does it's thing.

It would be lovely if anyone who knows of an example of this could just point me to it :)

Meanwhile I'll look.

Thanks so much :whistle:

Share this post

Link to post
Share on other sites

Ok, I think I got it.

Instead of

Func pushbut ($e)
ControlSend ( $sdpwin, "", "TToolBar1", "!"&$e )
EndFuncoÝ÷ Øè¯y«­¢+ÙÕ¹ÁÕÍ¡ÕÐ ÀÌØí¤(ÀÌØíѥѱô]¥¹ÑQ¥Ñ± ÅÕ½ÐìÅÕ½Ðì¤(ÀÌØíÐô
½¹Ñɽ±Ñ½ÕÌ ÀÌØíѥѱ¤)
½¹Ñɽ±M¹ ÀÌØíÍÁÝ¥¸°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½ÐíQQ½½±    ÈÄÅÕ½Ðì°ÅÕ½ÐìÌÌìÅÕ½ÐìµÀìÀÌØí¤)]¥¹Ñ¥ÙÑ ÀÌØíѥѱ¤)
½¹Ñɽ±½ÕÌ ÀÌØíѥѱ°ÅÕ½ÐìÅÕ½Ðì°ÀÌØíФ)¹Õ¹
And it seems to bring me back to where I was before the ControlSend.

OK, thanks everyone :whistle:

Share this post

Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...