AutoHotkey Community

It is currently May 27th, 2012, 10:06 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Power Off key
PostPosted: September 10th, 2009, 9:20 am 
Offline

Joined: January 22nd, 2009, 9:57 am
Posts: 116
KBD filter driver (above mentioned kind) can not control Power-Off/Sleep/Wake keys.
Try it with Control Panel, You could make those keys as normal ones. But only just 95%.

Good Luck.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2010, 12:34 am 
hey guys,

if anyone is still looking to do this, they may want to check out HID macros. After extensive googling, this is what i came to and its pretty sweet.

http://hidmacros.medek.info/whatisit.php


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2010, 6:35 am 
Offline

Joined: December 1st, 2010, 6:24 am
Posts: 1
i've tried the hidmacros, unfortunately when we use the same hotkey for hidmacros and ahk, the ahk hotkey is being prioritized -- which is not good because only hidmacros can detect from which device the keys were coming from.


this script would detect keys that come from the second keyboard by reading an earlier F24 key that sent whenever a key in the second keyboard pressed.

Code:
F24::
   secondhid := 1
   return
*$q::
*$w::
*$e::
*$r::
*$t::
*$y::
*$u::
*$i::
*$o::
*$p::
*$a::
*$s::
*$d::
*$f::
*$g::
*$h::
*$j::
*$k::
*$l::
*$z::
*$x::
*$c::
*$v::
*$b::
*$n::
*$m::
   if (secondhid)
   {
      ; MsgBox kb2
      secondhid := 0
      hotkey := SubStr(A_ThisHotkey,3)
      
      ; pass the keys from kb2 or use call custom function here
      send {blind}%hotkey%
   } else
   {
      hotkey := SubStr(A_ThisHotkey,3)
      send {blind}%hotkey%
   }
   return


the only thing it needs is the kbfiltr that would send F24 before every key sent from the second keyboard (which, unfortunately, i have failed to create). hopefully this script will be useful, shall anyone be able to provide the kbfiltr :)

(maybe would needs some fixes here and there, haven't tested it yet & i'm new in ahk)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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