AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DLLCall: Support for Human Interface devices
Goto page Previous  1, 2, 3, 4, 5, 6, 7
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Musictype



Joined: 21 Jul 2008
Posts: 1

PostPosted: Mon Jul 21, 2008 1:48 am    Post subject: Reply with quote

I've cobbled together my first script, to allow playback of BluRay from the Vista Media Center main menu, by using PowerDVD.

In the script, I want PowerDVD to close, when the BACK button on the MCE Remote is pressed.

The keyboard shortcut equivalent is BACKSPACE and I've put this in the script, but the remote sends something else.

I ran AutoHotkeyRemoteControlDLL and got this for the BACK button on the MCE Remote:

Device:4-Size:3 -> RawData: ->02<-->00<-->00<-
Device:4-Size:3 -> RawData: ->02<-->24<-->02<-

But I am not sure how to integrate this info into the script. Where should I place it?

Here is the script:

Code:
; Start sequence
IfWinNotExist, CyberLink PowerDVD
{
WinActivate, Windows Media Center

Run "C:\Program Files\CyberLink\PowerDVD8\PowerDVD8.exe" \FULSCREEN
WinActivate, CyberLink PowerDVD
WinMaximize

Sleep, 2500
WinMinimize, Windows Media Center
WinActivate, CyberLink PowerDVD
}
else
{
WinActivate, Windows Media Center

Sleep, 1000
WinMinimize, Windows Media Center
WinActivate, CyberLink PowerDVD
}
return




Backspace::
IfWinExist, CyberLink PowerDVD
{

IfWinNotExist, Windows Media Center
{
Run C:\Windows\ehome\ehshell.exe
}

Sleep, 1000
;WinRestore , Windows Media Center
Run C:\Windows\ehome\ehshell.exe
WinClose, CyberLink PowerDVD
ExitApp
}

IfWinExist, MediaPortal
{
Send, , Backspace, C:\Windows\ehome\ehshell.exe
}
return



Thanks!
Back to top
View user's profile Send private message
blackdaemon



Joined: 17 Jan 2007
Posts: 1

PostPosted: Mon Aug 04, 2008 10:09 am    Post subject: Griffin Powermate volume control Reply with quote

Thank you for such great addition, Micha!

I have been able to program Griffin Powermate volume control using your HID DLL in no time.
Finally, I could get the correct functionality from the device, which due to some problem in the original driver was not working for me.
Now that volume knob is not just decorating my desk, but actually doing something useful Laughing

I can post the code here, if anybody is having the same problem. This is specific only for
alternate Windows shells, where the Griffin's driver seems to have problem accessing the
sound mixer.

Greetings
Back to top
View user's profile Send private message
Xapti
Guest





PostPosted: Fri Aug 22, 2008 6:24 am    Post subject: Reply with quote

I am using this product:
http://www.sandiotech.com/sandio_product.php
(it is a mouse with 3 DIGITAL joysticks)

When running this script, I get a mouse and HID which seem to be registered to it. (well two mice, two keyboards, and HID, but doesn't seem to matter which keyboard or mouse i have registered)

For mouse, it registers standard 5 buttons (3rd is scrollwheel), HID is mentioned at the bottom of post.

The mouse lets me bind directions to keys, so that part isn't really an issue (except it spams them at a rate of one press every 10ms direction is held down! - I would like a fix for this [debouncer, sorta])

What I want to use, is the pressing in of the joysticks (like the pressing in of the scrollwheel) to be mapped to something, which the software/driver does not allow. The only one that does anything (which is uncustomizable, just like button 4 and 5, lol - thankfully I have autohotkeys) is pushing in the middle stick, which simulates pressing mouse4 and mouse5 at the same time.

I would like to figure out how to use pushing in of the other two sticks, but this is not being detected in Michas script.
On HID, michas script doesn't register any actions, except if i move the middle joystick. No matter the direction pressed, every - let's say 10ms - it returns a seemingly random byte every time, the last one always being 00 though.

Device:0-Size:8 -> RawData: ->00<-->ac<-->01<-->00<-->00<-->00<-->00<-->00<-
Device:0-Size:8 -> RawData: ->00<-->ac<-->01<-->77<-->00<-->00<-->00<-->00<-
Device:0-Size:8 -> RawData: ->00<-->ac<-->01<-->62<-->00<-->00<-->00<-->00<-
Device:0-Size:8 -> RawData: ->00<-->ac<-->01<-->c7<-->00<-->00<

but as I've said, I'm only looking to map pressing of the 2 joysticks.
I'm thinking it's possible that they aren't even used, like the switches attached to the other 2 joystick pressings aren't wired to anything, or at least don't return any signal... Sad
Back to top
Xapti
Guest





PostPosted: Fri Aug 22, 2008 6:39 am    Post subject: Reply with quote

I think my problem can just be ignored, I think there isn't any way of using the other two sticks (or really the middle stick either, without conflicting with button 4 and 5) for this reason

-nothing show up on a test program that comes with the mouse, that shows the binary code for button presses (not the joystick movements though, those were separate), like micha's except in binary instead of decimal.

-micha's doesn't detect it either (this is on the mouse registered), it was just less obvious to me, because it was in decimal, which doesn't really make sense, but whatever.
Back to top
n-l-i-d
Guest





PostPosted: Sat Aug 23, 2008 1:17 pm    Post subject: Reply with quote

To be able to know which HID device you are seeing with the AutoHotkeyRemoteControlDLL.ahk script ...

Micha on autohotkey.net wrote:
If you don't know, which device is your remote control, try to register all entries one by one and press a key on your remote control to see, if it is recognized.


... I found these:

Online database DriverAgent, which gives me in the case of the example screenshot on/from Micha's autohotkey.net page: vendor = Topseed, product = unknown
Single file on linux-usb.org, which gives me the same info



HTH
________________________________________________________
New here? Please, before you post...
1. Read the tutorial and try the examples. -> 2. Take a look at the command list to get an idea of what you could do. -> 3. Create your script. Consult the documentation and the FAQ if you get stuck. -> 4. Search the forum if you need help or examples, method 1 (forum), method 2 (site), method 3 (Google). -> 5. Post your code on the forum in the "Ask for Help" section if you still run into problems (but read this first). -> 6. There is more AHK on autohotkey.net and the Wiki and there is an AHK IRC chat.
Back to top
Thunderess



Joined: 23 Aug 2008
Posts: 4

PostPosted: Sun Aug 24, 2008 10:16 am    Post subject: Reply with quote

The autohotkeyremotecontrol program doesn't recognize my Fn key under any of the entries.

I have a Dell XPS M1730. I have to press 'Fn + PauseBreak' to get Company of Heroes game to pause. The PauseBreak key is on my F12 key, so that is why I have to hit the Fn key with it. So, been trying to make pausing the game to the space bar and it just isn't working.

Is there anything else I could do to get this to work?
Back to top
View user's profile Send private message
bcolin



Joined: 27 Aug 2008
Posts: 3

PostPosted: Thu Aug 28, 2008 2:04 pm    Post subject: Reply with quote

Hey i have aspire 8920 (acer) and i cant find my 'Fn' key and also not these touch keys Crying or Very sad Crying or Very sad




how i can find the touch keys / Fn key ?

thx !
Back to top
View user's profile Send private message
TheLeO



Joined: 11 Jun 2005
Posts: 168
Location: England ish

PostPosted: Sat Sep 06, 2008 8:26 pm    Post subject: Reply with quote

I'm trying to use this with my xbox 360 wired usb joypad(made my madcatz). In order to pick up the "X" button.

but the messege only changes when i rotate the left thumbpad, and it does not change by pressing buttons, or pulling the triggers.

does any one know about this?
_________________
And i say: where there is a problem , there is a solution.(well some where that is.)
::
I Have Spoken
::
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Brad
Guest





PostPosted: Tue Sep 23, 2008 11:17 pm    Post subject: Reply with quote

OK, I'm totally lost...

Using Vista Home Premium and a Harmony 550 remote, transmitting into a Microsoft MCE Remote Receiver, hooked up via USB.

I want to map the Harmony's equivalents to the Microsoft MCE Remotes "My PIctures" and "My VIdeos" to AHK scripts.

If I try to run AutoHotkeyRemoteControlDLL.ahk , I get an error reading "GetDeviceCount fehlgeschlagen. ErrorCode -3."

I have the mfc80 DLLs, the AutoHotkeyRemoteControlDLL.ahk file, and AutoHotkeyRemoteControl.dll all in the same folder.

Any clues for an obvious newbie?
Back to top
Brad
Guest





PostPosted: Wed Sep 24, 2008 12:13 am    Post subject: Reply with quote

Nevermind... Installed the C+ Redist & rebooted. All's well...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Page 7 of 7

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group