Keyboard detection - twice Raw output problem

Get help with using AutoHotkey and its commands and hotkeys
MIRKOSOFT
Posts: 236
Joined: 23 Sep 2014, 14:29

Keyboard detection - twice Raw output problem

05 Aug 2018, 08:38

Hi!

I'm using part of script for keyboard betection between keyboard and numeric pad.
Here's code:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



When is keyboard detected I'm using this code:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



At this part NumLock remapped to Japanese NoConvert sends raw output twice:
KeyPad:

Code: [Select all] [Download] GeSHi © Codebox Plus

	Else if vk =235	; Keypad NumLock sc045 (remapped to NoConvert vkEBsc07B)
{
Send, {Raw}e
return
}

Keyboard:

Code: [Select all] [Download] GeSHi © Codebox Plus

	Else if vk =235	;  Keyboard NumLock sc045 (remapped to NoConvert vkEBsc07B)
{
Send, {Raw}¢
return
}


How to fix it to have output e instead ee and ¢ instead ¢¢ ?

These keys are no handled in whole script, only in code above.

Thank you for each help, reply or comment.
Miro
burque505
Posts: 546
Joined: 22 Jan 2017, 19:37

Re: Keyboard detection - twice Raw output problem

13 Aug 2018, 17:38

Hi, I'm shooting in the dark here - Since it's limited to those sections, have you tried something like

Code: [Select all] [Download] GeSHi © Codebox Plus

	Else if vk =235	;  Keyboard NumLock sc045 (remapped to NoConvert vkEBsc07B)
{
Send, {Blind}{Raw}¢
return
}

or any of the other 'Send' modes ({Text}, etc.) for this limited section of code?
Sorry if this isn't helpful, I have no way to test this on my system.
Regards,
burque505
MIRKOSOFT
Posts: 236
Joined: 23 Sep 2014, 14:29

Re: Keyboard detection - twice Raw output problem

14 Aug 2018, 22:22

So, I tested blind mode, but behavior is not changed - always two character output.
Miro
MIRKOSOFT
Posts: 236
Joined: 23 Sep 2014, 14:29

Re: Keyboard detection - twice Raw output problem

15 Aug 2018, 08:35

Thank you, I'll explorer both in your signature.

Thank you very much - looks perfect and very helpful to present and future.

Miro

Return to “Ask For Help”

Who is online

Users browsing this forum: anobayan, Coder, Google [Bot], newbieforever, shgilad81 and 91 guests