rylorg Posted November 8, 2011 Posted November 8, 2011 I have a nes pad hooked up to an arduino sending button presses over serial via usb and can read them just fine with autoit and the commg udf. The problem is I cant figure out is how to hold down multiple keys easily, like how can i hold down the left key (the arduino sends "L") until the stop signal is sent ("3" for instance) while doing the same for down and the b button(both use the same method). I'm sure its something I'm going to kick myself for not seeing, thanks for any insight.
spudw2k Posted November 9, 2011 Posted November 9, 2011 (edited) Perhaps you could use a binary encoding method to transmit the states of the buttons and use bit logic instead? i.e. 0 = nothing pressed 1 = A 2 = B 4 = Select 8 = Start 16 = Up 32 = Right 64 = Down 128 = Left Edited November 9, 2011 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
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