AutoHotkey Community

It is currently May 27th, 2012, 1:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 398 posts ]  Go to page Previous  1 ... 23, 24, 25, 26, 27  Next
Author Message
 Post subject:
PostPosted: December 12th, 2011, 9:37 pm 
Offline

Joined: December 6th, 2011, 7:40 pm
Posts: 11
Hi specter333,


Thanks for the advice on the GoSub. I thought it looked wrong but wasn't sure what should go there. It's working fine now. I should probably change Default_ to MP_ and add an entry for MP to the prefixes section, to avoid having the remote's shortcut keys open Browser windows if MP doesn't have focus.

I haven't had a go at differentiating between the two 36 keys, but I've noticed another issue I'd like to sort out first.

I've got the following two entries in my script:

Default_233:
SendInput = ;volume + (key + also assigned in keymap.xml)
Return

Default_234:
SendInput - ;volume -
Return

where 233 is volume+ and 234 is volume- on the remote, but whilst volume- produces a - in notepad, volume+ doesn't produce anything. I've tried changing it to:

Default_233:
SendInput + ;volume +
Return

in case there was an issue with = (or my comment) but that doesn't work either. I've checked again with Other HID Info and it's definitely sending 2 233 (whilst volume- sends 2 234) so I'm a bit stumped.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 13th, 2011, 12:07 am 
Offline

Joined: December 6th, 2011, 7:40 pm
Posts: 11
There's something a bit wierd about the remote's Back button (the one that sends 2 36 2) as even if my script has nothing mapped to 36 it's picked up in MediaPortal as HID: Command: 1 - BrowserBackward.

If I have:

Default_36:
SendInput {ESC} ;back/exit
Return

in my script, this button sends BrowserBackward and ESC, whilst the DVDMenu button (which sends 3 36 0) just sends ESC.

I'll have a look at your script and see if I can seperate the keys anyway.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 13th, 2011, 1:16 am 
Offline

Joined: December 6th, 2011, 7:40 pm
Posts: 11
OK, using your ShuttlePro script I can see that Back is sending 2_2 and DVDMenu is sending 1_36.

I'm not really clear on exactly what I need to put in my script though, or if I need to have your ShuttlePro script running as well for it to work, so I'd appreciate your advice.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 13th, 2011, 9:44 pm 
Offline

Joined: December 6th, 2011, 7:40 pm
Posts: 11
Well I checked what the remote's sending, using ShowKey, and the Back button does send KeyID 166 (0xA6) VK_Browser_Back.

I'm a bit confused as key 36 (hex 24) isn't listed in my RC6 registry codes (see below), but I'll try zeroing them all out and see if that stops it. I note there's a few extra keys to those shown in TheGoods post on the first page (29, 2a, 3b, 6e) but I don't suppose that really matters.

EDIT: Well zeroing them out didn't work (I did reboot). ShowKey still shows VK_Browser_Back when I press the remote Back button and many of the other keys (Vol+/- Mute, the transport keys) also register, although not all of them as VK_ commands e.g. Skip Back registers as VK_MEDIA_PREV_TRACK, but Rewind only shows as WM_APPCOMMAND_50.

Code:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HidIr\Remotes\745a17a0-74d3-11d0-b6fe-00a0c90f57da]
"ReportMappingTable"=hex:\
   00,00,00,00,04,00,27,\
   01,00,00,00,04,00,1e,\
   02,00,00,00,04,00,1f,\
   03,00,00,00,04,00,20,\
   04,00,00,00,04,00,21,\
   05,00,00,00,04,00,22,\
   06,00,00,00,04,00,23,\
   07,00,00,00,04,00,24,\
   08,00,00,00,04,00,25,\
   09,00,00,00,04,00,26,\
   0a,00,00,00,04,00,29,\
   0b,00,00,00,04,00,28,\
   0c,00,00,00,03,82,00,\
   0e,00,00,00,01,e2,00,\
   0f,00,00,00,01,09,02,\
   10,00,00,00,01,e9,00,\
   11,00,00,00,01,ea,00,\
   12,00,00,00,01,9c,00,\
   13,00,00,00,01,9d,00,\
   14,00,00,00,01,b3,00,\
   15,00,00,00,01,b4,00,\
   16,00,00,00,01,b0,00,\
   17,00,00,00,01,b2,00,\
   18,00,00,00,01,b1,00,\
   19,00,00,00,01,b7,00,\
   1a,00,00,00,01,b5,00,\
   1b,00,00,00,01,b6,00,\
   1c,00,00,00,04,02,20,\
   1d,00,00,00,04,02,25,\
   1e,00,00,00,04,00,52,\
   1f,00,00,00,04,00,51,\
   20,00,00,00,04,00,50,\
   21,00,00,00,04,00,4f,\
   22,00,00,00,04,00,28,\
   23,00,00,00,01,24,02,\
   26,00,00,00,01,8d,00,\
   29,00,00,00,03,83,00,\
   2a,00,00,00,03,82,00,\
   3b,00,00,00,01,04,02,\
   4e,00,00,00,01,08,02,\
   6e,00,00,00,01,cd,00


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 16th, 2011, 2:04 am 
Offline

Joined: December 6th, 2011, 7:40 pm
Posts: 11
As zeroing out the RC6 entry didn't work, I also tried zeroing out the following two additional entries:

Samsung MCE Remote: Remotes\745a17a0-74d3-11d0-b6fe-00a0c90f57db

QuatroPulse MCE Remote: Remotes\b1c84016-5174-4894-8e49-b3e8dbe06bbb

but that hasn't helped either. If there's no better solution, is there any way to use AHK to trap the VK_Browser_Back command the button's sending (i.e. stop it being received by anything other than AHK) and map it to ESC?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 16th, 2011, 6:57 am 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
Sorry, been out for a while and haven't had internet access.

Since shuttle pro is just another version of Other HID Devices, you should be able to use it instead. If it captures the problem keys successfully it should be fine.

Your VK keys can be used just like any hotkey to block the input from the os and use it in AHK.

Sounds like you may be getting close. Hope this helps.

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2011, 6:41 pm 
Offline

Joined: December 6th, 2011, 7:40 pm
Posts: 11
No worries, it's not a great time of year for me to be asking for help :)

I've moved to EventGhost in conjunction with the Mediaportal MessagePlugin now, which is a lot simpler. It didn't help that the key mapping in Mediaportal is a bit of a nightmare, as I've documented here, so it's a lot easier being able to just use the MessagePlugin to assign keys to actions.

The only issue I had was that the Power button was still putting the PC to sleep. I tried various things to stop this, such as disabling the HID service, installing Intelliremote (which supposedly traps this key), and adding

"CodeSetNum0"=dword:00000000 ;
"CodeSetNum1"=dword:00000000 ;These four values put the standard global windows keys out of function. These are
"CodeSetNum2"=dword:00000000 ;volume +, -, mute and .... windows sleep mode. I so hated that button
"CodeSetNum3"=dword:00000000 ;

to the RC6 registry key as suggested here, but in the end I just had to change Windows Power Options to set the Power/Sleep buttons to "Do Nothing" and now I can use that key with EventGhost.

Thanks for trying to help me with AHK anyway.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: No input for
PostPosted: January 22nd, 2012, 11:00 am 
Hello! I use Apple Wireless Keyborad (1st gen. M9270, not aluminium) on Windows XP and I try expand functionality with AutoHotkey. Additional key F13-F16 scaned&works fine, but VolumeDown/Up/Mute/Eject keys not scans by AHKHID Example 2.ahk script.
Have any solution for this? Thanks!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2012, 5:40 pm 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
Does Example2 also work in Windows XP?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: No input for
PostPosted: February 4th, 2012, 2:26 am 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
m9270 wrote:
Hello! I use Apple Wireless Keyborad (1st gen. M9270, not aluminium) on Windows XP and I try expand functionality with AutoHotkey. Additional key F13-F16 scaned&works fine, but VolumeDown/Up/Mute/Eject keys not scans by AHKHID Example 2.ahk script.
Have any solution for this? Thanks!


I'm not an expert but most of those keys (VolumeDown/Up/Mute) should show up as part of the keyboard. The Eject key may show up as an "Other" device. If they are not seen as a keyboard or other device then this tool probably won't help but I may be able to point you to some that might.

m9270 wrote:
Does Example2 also work in Windows XP?


Yes it does. I use XP with AHK. It should also work with AHK_L under XP.

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2012, 10:36 am 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
Here it does not work.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2012, 11:47 am 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
automaticman wrote:
Here it does not work.


Try this compilation of the original examples. Other HID Info.

Or try using EventGhost.

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 16th, 2012, 10:53 am 
Hello,

would this also be possible the other way around? So that I can use a keyboard button to send the command that my mouse sends on say button 5?

I have a Sharkoon Fireglider that sends its additional commands on another usage page than the standard mouse functions in the other tab of your example 1.
I get the mouse down an up data.

can I now emulate this key with a keyboard key, so that it looks like it is coming from the mouse?

thank you!


Report this post
Top
  
Reply with quote  
PostPosted: April 10th, 2012, 7:56 am 
I don't know what I'm doing wrong but, when I run Example1 the window comes up but none of the tabs are populated.
I was looking at the device manager and found:
under usb controllers:
eHome Infrared Receiver (USBCIR)
Under Keyboards:
Microsoft eHome MCIR Keyboard
Microsoft eHome MCIR 109 Keyboard
Microsoft eHome Remote Control Keyboard Keys

In the Properties of the three keyboards under Details>Hardware Ids it has
HID_DEVICE_UP:001_U:0006
so I tried putting those values in Example2 and click add and it goes to the TLC Array, but the if I hit Call or refresh list nothing happens except that it disappears from the TLC Array.

I tried moving on to the last step, and this is what I came up with:

Code:
"ReportMappingTable"=hex:\
01,00,00,00,04,00,1e,\   =Escape
02,00,00,00,04,00,1f,\   =1
03,00,00,00,04,00,20,\   =2
04,00,00,00,04,00,21,\   =3
05,00,00,00,04,00,22,\   =4
06,00,00,00,04,00,23,\   =5
07,00,00,00,04,00,24,\   =6
08,00,00,00,04,00,25,\   =7
09,00,00,00,04,00,26,\   =8
00,00,00,00,04,00,27,\   =
0b,00,00,00,04,00,28,\   =9
0a,00,00,00,04,00,29,\   =0
1d,00,00,00,04,02,25,\   =RCtrl
1c,00,00,00,04,02,20,\   =Enter
1f,00,00,00,04,00,51,\   =S
1e,00,00,00,04,00,52,\   =A
21,00,00,00,04,00,4f,\   =F
20,00,00,00,04,00,50,\   =D
22,00,00,00,04,00,28,\   =G
4e,00,00,00,01,08,02,\   =Num+
0f,00,00,00,01,09,02,\   =Tab
23,00,00,00,01,24,02,\   =H
3b,00,00,00,01,04,02,\   =F1
16,00,00,00,01,b0,00,\   =U
18,00,00,00,01,b1,00,\   =O
17,00,00,00,01,b2,00,\   =I
14,00,00,00,01,b3,00,\   =T
15,00,00,00,01,b4,00,\   =Y
1a,00,00,00,01,b5,00,\   ={[
1b,00,00,00,01,b6,00,\   =}]
19,00,00,00,01,b7,00,\   =P
6e,00,00,00,01,cd,00,\   =
10,00,00,00,01,e9,00,\   =Q
11,00,00,00,01,ea,00,\   =W
0e,00,00,00,01,e2,00,\   =Backspace
26,00,00,00,01,8d,00,\   =L
12,00,00,00,01,9c,00,\   =E
13,00,00,00,01,9d,00,\   =R
0c,00,00,00,03,82,00,\   =_-
29,00,00,00,03,83,00,\   =
2a,00,00,00,03,82,00   =LShift


Only about a third of the keys listed seem to correspond to anything on the remote, which is a SIIG Vista MCE Remote.
I am trying to write a script to launch XBMC and do a couple other things, but I would like to disable/re-purpose the big green button so it doesn't launch WMC.


Report this post
Top
  
Reply with quote  
PostPosted: April 11th, 2012, 6:57 am 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
Try using this script, Other HID Info. It's an easier to use combinations of thegood's three example scripts but meant for only remotes and such.
Image

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 398 posts ]  Go to page Previous  1 ... 23, 24, 25, 26, 27  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Bon, Yahoo [Bot] and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group