| View previous topic :: View next topic |
| Author |
Message |
Udub
Joined: 10 Feb 2009 Posts: 2
|
Posted: Tue Feb 10, 2009 8:28 pm Post subject: Press and Release Script with Logitech G13/15 - how to hook? |
|
|
Hi,
I stumbled upon this script for a better press and release functionality of keys:
| Code: | {
$1::
Loop
{
if not GetKeyState("1", "P")
break
Send 1
sleep 1
}
return
} |
And I have my G13 key bound to 1. The functionality is there for a normal 1 key on the keyboard press, but not for the G13.
Does anyone have a clue how to get the press and release functionality of the script with the Logitech G13?
Thanks,
Udub |
|
| Back to top |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 726 Location: Calgary, AB, Canada
|
Posted: Wed Feb 11, 2009 3:25 pm Post subject: |
|
|
Use a Hook to get the VK... The HelpFile can show you how to do both.
When using the keyboard, it probably converts the G keys using software, but the key itself still sends it's Vitrual Key, rather than what your expecting... That's what AHK is picking up. |
|
| Back to top |
|
 |
Udub
Joined: 10 Feb 2009 Posts: 2
|
Posted: Wed Feb 11, 2009 9:04 pm Post subject: |
|
|
Thanks for the reply.
I inserted
#InstallKeybdHook
before the { with which the script starts,
fired the script,
pressed 1,2,3 and 4 on the G13 and then on my normal KB
then did a view -> key history and script info
1,2,3 and 4 always had the same vk and sc value appropriately on the G and the KB, only the G input was labeled as artificial.
Now I am stuck on how to handle these artificial keys in my script.
Any help appreciated,
udub |
|
| Back to top |
|
 |
wolverine.ks Guest
|
Posted: Thu Sep 29, 2011 11:20 pm Post subject: figure this out yet? |
|
|
did you ever figure out how to handle this?
im in the same boat, ive got ahk working with Adobe Premiere Pro just fine with my regular keyboard and mouse, but the same codes on the G13 (artificial) dont work the same. |
|
| Back to top |
|
 |
|