AutoHotkey Community

It is currently May 26th, 2012, 6:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: February 10th, 2009, 9:28 pm 
Offline

Joined: February 10th, 2009, 9:20 pm
Posts: 2
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2009, 4:25 pm 
Offline

Joined: July 21st, 2008, 4:16 pm
Posts: 726
Location: Calgary, AB, Canada
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2009, 10:04 pm 
Offline

Joined: February 10th, 2009, 9:20 pm
Posts: 2
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: figure this out yet?
PostPosted: September 30th, 2011, 12:20 am 
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.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, Google Feedfetcher and 62 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