background preloader

AHKHID

Facebook Twitter

Jleb/AHKHID: An AHK implementation of the HID functions. AHKHID - An AHK implementation of the HID functions - Scripts and Functions - AutoHotkey Community. Tutorial Here is a real life example of how to use AHKHID.When I bought my HP Media Center a few years ago, I also received this nice remote with a receiver which connects through USB.

AHKHID - An AHK implementation of the HID functions - Scripts and Functions - AutoHotkey Community

The remote is meant to be used with the Media Center interface. AHKHID - An AHK implementation of the HID functions - Page 2 - Scripts and Functions - AutoHotkey Community. Hello ddh819, First of all, are you sure there's nothing new that also shows up in the Other section of Example 1?

AHKHID - An AHK implementation of the HID functions - Page 2 - Scripts and Functions - AutoHotkey Community

As I said, an HID device can have multiple TLCs (with even some of the keyboard and mouse type). If it doesn't appear in the Other tab, try this: 1. AHKHID - An AHK implementation of the HID functions - Page 3 - Scripts and Functions - AutoHotkey Community. I'm particularly confused by the NumGet function.

AHKHID - An AHK implementation of the HID functions - Page 3 - Scripts and Functions - AutoHotkey Community

Is there any place I can find the definition of this function? I'm not sure how to use it effectively. NumGet is a function that allows you to retrieve a binary number stored in a variable. If you look at the tutorial I presented (2nd post of this thread), and look at the values I found at step 3, you'll notice that the 6th byte of the raw data coming in is the only info I need to discriminate between the buttons.

AHKHID - An AHK implementation of the HID functions - Page 4 - Scripts and Functions - AutoHotkey Community. Hi everyone!

AHKHID - An AHK implementation of the HID functions - Page 4 - Scripts and Functions - AutoHotkey Community

That's a great script TheGood. I have some questions too... big story though I'm using exactly the same kind of hid device as you, the remote is different but operates equally to yours, has some other 3 buttons but I have registered it's hex and dec. My question is about having more than 1 of those programs running (like in your example MPC and Winamp), I made winamp to respond to global multimedia hotkeys, and even when MPC has the focus, winamp still responds to some of those keypresses... Let's say MPC, Winamp and VMC (ehshell.exe) are running, if I tell mpc to start playback from the remote, winamp and VMC will do the same if there's something for them to play, but when I tell mpc to stop, VMC will stop too, and winamp will not do till it gets the focus and press stop again.

AHKHID - An AHK implementation of the HID functions - Page 5 - Scripts and Functions - AutoHotkey Community. It's me again.

AHKHID - An AHK implementation of the HID functions - Page 5 - Scripts and Functions - AutoHotkey Community

Hope is not offtopic, but I think is not. There's a way to custimize the keys in the remote, included some info about the way it's been sent to windows (as windows is catching them as keyboard), by doing this, you'll be able to release the buttons you want (to avoid double keys), so they'll be available to use them with the remote script. AHKHID - An AHK implementation of the HID functions - Page 6 - Scripts and Functions - AutoHotkey Community.

AHKHID - An AHK implementation of the HID functions - Page 7 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 8 - Scripts and Functions - AutoHotkey Community. I was able to piece together the following commands by using the information found on m -->.

AHKHID - An AHK implementation of the HID functions - Page 8 - Scripts and Functions - AutoHotkey Community

The following information allows commands to be sent directly to MCE without activating it. I would like to be able to get all the other keys working like this, but so far have not been able to. AHKHID - An AHK implementation of the HID functions - Page 9 - Scripts and Functions - AutoHotkey Community. Hey guys!

AHKHID - An AHK implementation of the HID functions - Page 9 - Scripts and Functions - AutoHotkey Community

Sorry for the late replies. I haven't had much time recently for AHK I got this to work with a nintendo Wiimote. Problem is the Roll Pitch, acceration and IR sensors dont work. AHKHID - An AHK implementation of the HID functions - Page 10 - Scripts and Functions - AutoHotkey Community. Remote script will not work for me, Windows 7 Professional x64.

AHKHID - An AHK implementation of the HID functions - Page 10 - Scripts and Functions - AutoHotkey Community

Tried the original script, and the modified, nothing, MPC will not attend to my calls, well, it responds and not...AHkHID indeed works, but not the remote application script, example 2 responds to the remote buttons, and shows exactly the same info as in XP or vista, the remote script will do something if a label does not exist (not declared in script but asked for), it will pop up an error message, but not execute anything if label is found. Not even running a program. Do you have the same version of AHK on XP and Win7? AHKHID - An AHK implementation of the HID functions - Page 11 - Scripts and Functions - AutoHotkey Community. It works!

AHKHID - An AHK implementation of the HID functions - Page 11 - Scripts and Functions - AutoHotkey Community

Nothing lost. PostMessage uses a queue, right? So Databank is redundant and unnecessary, right? Nothing more needs to be done? AHKHID - An AHK implementation of the HID functions - Page 12 - Scripts and Functions - AutoHotkey Community. A while ago a was saying there could be a problem with the way AHK handles Windows 7, something about AHKHID not working or something alike...

AHKHID - An AHK implementation of the HID functions - Page 12 - Scripts and Functions - AutoHotkey Community

Well, found out something: 01 01 00 00 00 32 84 0F 80 20 00 00 00 Visualization for XP IR code Goes from 00 to 12 byte length (13 bytes)01 01 00 00 00 00 00 00 00 32 84 0F 80 00 00 00 00 20 00 00 00 80 FA FF FF Visualization for Windows 7 IR code Goes from 00 to 24 byte length (25 bytes) Already tried switching 6th byte for 9th for the remote code, and 7th byte for the 10th byte to check the verifier byte (if is HP Remote), wont work... What could still be wrong??? AHKHID - An AHK implementation of the HID functions - Page 13 - Scripts and Functions - AutoHotkey Community.

To answer your questions: In example 1 it shows up as a mouse *only* under the mouse tab. In example 3 the 4th and 5th buttons do show up as Xbutton1 and Xbutton2. The 4 data bytes I mentioned are simply the input buffer bytes that carry mouse data from the mouse to the host in a USB input transaction. The first byte is the button data byte, the second byte is for the x coordinate, the third for y coord and the fourth is wheel movement data.

AHKHID - An AHK implementation of the HID functions - Page 14 - Scripts and Functions - AutoHotkey Community. I haven't even gotten a chance to fondle what looks to be an amazing script you wrote yet, but if I may make a suggestion? I've been developing an autoplaying/checking/healing script for myself that plays those clickety-clickety online games for me while I sleep/eat/poop/live/etc. (heh...). AHKHID - An AHK implementation of the HID functions - Page 15 - Scripts and Functions - AutoHotkey Community. It took me a while to figure out how to get this working but I figured out an easy way to find your Gosub Labels or simply the data the script is getting from your remote. On page 1 of this topic, 2nd post Tutorial, #4 Creating A Script " TheGood" Shows us the script he uses to control media players.

Toward the bottom find the IsLabel and Gosub commands, comment them out and add this message box command under them. AHKHID - An AHK implementation of the HID functions - Page 16 - Scripts and Functions - AutoHotkey Community. Please see the new version in a post below. I hope I'm not intruding on TheGood's post but I thought this would be a good project for me to learn more about programming in AHK.

I've developed a tool to easily get the glabel codes you need from your remotes using a GUI. It's an edited version of the "Creating a script" example, from page one of this topic, and needs input from "Example 1". Don't forget you will also need the AHKHID library for this So far this is only for "Other" devices as per the tab in the script "Example 1" but as time permits I intend to add mice and keyboards too. AHKHID - An AHK implementation of the HID functions - Page 17 - Scripts and Functions - AutoHotkey Community.

Sorry for my inactivity. Busy times...I haven't read all the new posts, but to address a few of the issues discussed. One question I have now, can the AHKHID.ahk be referenced as a library instead of using #include? AHKHID - An AHK implementation of the HID functions - Page 18 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 19 - Scripts and Functions - AutoHotkey Community.

AHKHID - An AHK implementation of the HID functions - Page 20 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 21 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 22 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 23 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 24 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 25 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 26 - Scripts and Functions - AutoHotkey Community.

AHKHID - An AHK implementation of the HID functions - Page 27 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 28 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 29 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 30 - Scripts and Functions - AutoHotkey Community. AHKHID - An AHK implementation of the HID functions - Page 31 - Scripts and Functions - AutoHotkey Community.