I have a somewhat complicated program I would like to execute. I'll write the algorithm (is algorithm the right word?) down and you can tell me if Autoit will actually be able to achieve what I desire. If it does, I would really appreciate any help so I could get the program up and running as soon as possible.
Alright, to start off I'll explain what the program will be used for. I have an entertainment room (Panasonic GT30 65" plasma, blu-ray, surround-system, etc...) and recently I got my computer a new graphics card and have been playing video games using that, instead of my Xbox 360. I routed a cable from my PC to my entertainment room and was able to get my games working with my entertainment system. The problem is bringing a keyboard and mouse into the entertainment room is clunky and bothersome. My computer is in a separate room. What I would like to do is use my Xbox 360 controller. I bought an Xbox 360 PC receiver and it works great. I can now use one of my wireless Xbox 360 controller with my computer in the entertainment room.
I downloaded a program called Xpadder which allows me to emulate a keyboard/mouse on the Xbox 360 controller. I also downloaded a program called XBMC (Xbox Media Center) which makes for easy navigation with the Xbox 360 controller due to it's Xbox 360 dashboard type design. I use Xpadder to control the Xbox 360 controller from within XBMC.
Here's where it gets tricky. There are some games (Just Cause 2...) that I prefer to use a controller with. The problem is if I launched Just Cause 2 with Xpadder running in the background Just Cause 2's internal Xbox 360 configuration gets totally messed up and the game becomes unplayable.
My algorithm or what I want to accomplish with this program:
- Windows starts and proceeds to the desktop. Autoit is part of the start up programs.
- Autoit has the program ready but doesn't execute it yet.
- By presssing A on the Xbox 360 controller executes the Autoit program which in turn launches Xpadder and then XBMC. (I use the X360's A button to start so as not to accidentally hit one of the analog sticks and have the program execute).
- Having control of XBMC I would like to play a game now. I launch Just Cause 2. I would like Autoit to close/minimize XBMC and close Xpadder. That will allow me to play Just Cause 2 without have Xpadder interfere.
- On exiting of the game Autoit should re-launch Xpadder and re-open/maximize XBMC.
- If I want to use the computer in my room with a mouse/keyboard by pressing the Right Mouse Button will close/minimize XBMC and either close Xpadder or minimize it--that depends on which would require more code.
I believe that's it. I'll add on to it if I remember more. Let me know what you all think.