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 

Press and Release Script with Logitech G13/15 - how to hook?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Udub



Joined: 10 Feb 2009
Posts: 2

PostPosted: Tue Feb 10, 2009 8:28 pm    Post subject: Press and Release Script with Logitech G13/15 - how to hook? Reply with quote

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
View user's profile Send private message
Sivvy



Joined: 21 Jul 2008
Posts: 726
Location: Calgary, AB, Canada

PostPosted: Wed Feb 11, 2009 3:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Udub



Joined: 10 Feb 2009
Posts: 2

PostPosted: Wed Feb 11, 2009 9:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
wolverine.ks
Guest





PostPosted: Thu Sep 29, 2011 11:20 pm    Post subject: figure this out yet? Reply with quote

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
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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