AdmiralAlkex Posted February 20, 2012 Share Posted February 20, 2012 (edited) @Blue_DracheHe wants to read input from the controller, not keyboard!@AbacusrexSee the Gear next to the search? Use it to make an advanced search for joystick or gamepad in the Examples Forum and you'll find a bunch of UDFs to get input.Or maybe not. The Xbox 360 controller is made to be used primarely with XInput so try the first (most/all others are based on DirectInput afaik (which should still work btw)).Edit: Or Edited February 20, 2012 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 21, 2012 Share Posted February 21, 2012 @Blue_DracheHe wants to read input from the controller, not keyboard!It's easy to adapt a scancode sniffer for Xbox controllers to a keyboard. Input from a user device is input, no matter the source, especially if it's scancode based like joysticks. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Abacusrex Posted February 21, 2012 Author Share Posted February 21, 2012 I'm sorry, but how would I go about implementing the...UDF? I'm not sure. I attempted it with the _Ispressed360.au3 file before, but ultimately came to a stand still. I need a little more guidance. Thanks a lot for the support, I really appreciate it! Link to comment Share on other sites More sharing options...
Abacusrex Posted February 23, 2012 Author Share Posted February 23, 2012 Help. Link to comment Share on other sites More sharing options...
Abacusrex Posted February 28, 2012 Author Share Posted February 28, 2012 I got the _Ispressed360 UDF working, but now I'm faced with another problem. When I try to get Autoit to run Xpadder.exe or XBMC.exe it can't do it. I tried Run("XBMC.exe") and ShellExecute("XBMC.exe") and some others. It won't launch it. It's almost as if windows doesn't recognize it. When I used ShellExecute it said "Windows cannot find 'XBMC.exe'..." Any ideas? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 28, 2012 Share Posted February 28, 2012 Did you put the full path to the exe? If you don't Windows tries the working dir and PATH, but it's better to just specify. Like when you are using the Run dialog. You can find macros to common directorys in helpfile under "Macro Reference > Directory Macros". If you can't get it to work post where you have those exes and we can give you samples that should work. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Abacusrex Posted February 28, 2012 Author Share Posted February 28, 2012 Thanks. I could have sworn I put in the full path, but maybe I didn't; however, it worked. I thank you. Now that's out of the way how can I implement these two pieces of code? I added the support for the Xbox 360 Controller that ends at DLLCLose($dll). My earlier script picks up there, but requires a 'While 1' to function and so does the Xbox 360 Controller script. How can I get both the Xbox 360 controller script and my earlier script to run together? My idea was to have the script check if the controller's "A" button [if _IsPressed360(4096, $dll)] was pressed and if not continue with the script, which would be my earlier script. It would than continue that checking process until the "A" button was pressed. When it is pressed it executes the Xbox 360 Controller scripts and than continues its checking process. That's my idea. I have no knowledge of how to implement that nor whether it would work. I wait for your knowledgeable response. THANK YOU SO MUCH! Code is below. While 1 If _IsPressed360(4096, $dll) Then Run("C:\Users\R. Iosephus Parcus\Documents\Stability Tools & Utilities\Stability & Utility Programs\Xpadder.v2012.01.19.Multilingual.Retail-WaLMaRT\Setup\Xpadder.exe") Run("C:\Users\R. Iosephus Parcus\Documents\Video Games\XBMC\XBMC.exe") If ProcessWaitClose("XBMC.exe") Then ProcessClose("Xpadder.exe") EndIf EndIf Wend DllClose($dll) ;Closes Steam.exe on exit of game. If ProcessExists("GameOverlayUI.exe") Then If ProcessWaitClose("GameOverlayUI.exe") Then ProcessClose("Steam.exe") EndIf EndIf ;kills process: "ESN Sonar". (DICE's useless VOIP process) If ProcessExists("SonarHost.exe") Then ProcessClose("SonarHost.exe") EndIf ;Closes Origin.exe on exit of Battlefield 3 "Main Menu" (Google Chrome). If ProcessExists("chrome.exe") Then If ProcessWaitClose("chrome.exe") Then ProcessClose("Origin.exe") EndIf EndIf Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now