AutoHotkey Community

It is currently May 22nd, 2012, 2:31 pm

All times are UTC [ DST ]


Search found 9 matches
Search these results:

Author Message

 Forum: Scripts   Topic: AHKHID - An AHK implementation of the HID functions

Posted: April 4th, 2010, 1:04 pm 

Replies: 397
Views: 90259


msafi wrote:
Any more ideas? :(

Run AHKHID's example1.ahk, select "other", scroll to right, take note of Usage Page + Usage numbers. Run example2.ahk, input Usage Page and usage, press add and call, then press the mystery button. If you see nothing, repeat with next Usage Page and Usage.

 Forum: Scripts   Topic: AHKHID - An AHK implementation of the HID functions

Posted: March 28th, 2010, 5:05 pm 

Replies: 397
Views: 90259


All were run exactly as posted. I just double-checked that one and it's still acting the same. There is no SendEvent or SendInput in that script. In addition to the tablet PC's buttons, my AHKHID-based script also handles the pen button (though I disabled it until the end), and of course the pen dev...

 Forum: Scripts   Topic: AHKHID - An AHK implementation of the HID functions

Posted: March 28th, 2010, 9:10 am 

Replies: 397
Views: 90259


I'm trying to see if my Databank function is the culprit here. If it takes too long to process, you might miss some messages. As a test, I changed your script a bit so that it doesn't use Databank but instead forwards the interesting data (data1 and data2) to TreatData. Test it out and let me know ...

 Forum: Scripts   Topic: AHKHID - An AHK implementation of the HID functions

Posted: March 27th, 2010, 8:00 pm 

Replies: 397
Views: 90259


; ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: A.N.Other <myemail@nowhere.com> ; ; Script Function: ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder) ; #NoEnv ; Recommended for performance ...

 Forum: Scripts   Topic: AHKHID - An AHK implementation of the HID functions

Posted: March 27th, 2010, 12:20 pm 

Replies: 397
Views: 90259


Thanks for the valiant effort, but no dice. Same behavior. Debug output shows several down/up pairs, and then a down without an up. If I comment out the call to my processing function, it does not have this problem. If I add in a time-consuming loop instead of my processing function, it loses about ...

 Forum: Scripts   Topic: AHKHID - An AHK implementation of the HID functions

Posted: March 27th, 2010, 1:09 am 

Replies: 397
Views: 90259


Well, of course the Sleep is causing the problem. It's there to show the problem. Think of it as substitute for my processing function, which I assume is taking something like 4+-3 ms, so it sometimes loses input. Now I'm trying to use PostMessage (with a high message tag) to call my processing func...

 Forum: Scripts   Topic: AHKHID - An AHK implementation of the HID functions

Posted: March 26th, 2010, 8:21 pm 

Replies: 397
Views: 90259


Maiklas3000, can you post your script? In the end, it comes down to your InputMsg() function. The following is code that tries to reproduce the problem (by introducing a sleep, even though it's outside the critical region): F7::Tooltip,%ButtonQueue% InputMsg(wParam, lParam) { Local r, ...

 Forum: Scripts   Topic: AHKHID - An AHK implementation of the HID functions

Posted: March 26th, 2010, 12:59 pm 

Replies: 397
Views: 90259


When I use the Tablet PC Settings to assign a key press to a button, it has no problems with repeating. So I guess I should use that or a registry edit. For example, I could map a button to ctrl-alt-5, and then use AHK to map that to an action. But this brings up the possibility of conflicts with ex...

 Forum: Scripts   Topic: AHKHID - An AHK implementation of the HID functions

 Post subject: button release problems
Posted: March 25th, 2010, 9:13 am 

Replies: 397
Views: 90259


I'm trying to handle my tablet pc's buttons and to implement an autorepeat using a timer. It works, except that sometimes a "button off" event never appears, so my autorepeat keeps repeating after the button is released. Here is some data from the device: 0120000000 0100000000 <-- off 0104...
Sort by:  
Page 1 of 1 [ Search found 9 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group