Skip to content

Conversation

@gustav87
Copy link
Contributor

No description provided.

@AucT
Copy link
Owner

AucT commented Nov 21, 2023

For ` key, virtual keycode is 0xc0 or VKC0

I've added necessary changes, so it will use virtual key.

Let me know, maybe vkdf is better or I missed something

@gustav87
Copy link
Contributor Author

gustav87 commented Nov 21, 2023

Hi! Your change doesn't work. You put the virtual keycode for ', not `. VKDF is the virtual key for backtick.

@gustav87
Copy link
Contributor Author

image

@AucT
Copy link
Owner

AucT commented Nov 21, 2023

send me content of test.ahk

@gustav87
Copy link
Contributor Author

Hi, the contents of test.ahk is irrelevant. I'm only using the Key history of a script to record the keys.

Here's the content anyway.
image

@gustav87
Copy link
Contributor Author

image

@AucT
Copy link
Owner

AucT commented Nov 21, 2023

XjL5xDBoQ1
I'm talking about this hotkey:
Dvorak_keyboard_layout

@AucT
Copy link
Owner

AucT commented Nov 21, 2023

@AucT
Copy link
Owner

AucT commented Nov 21, 2023

check if scancode is working for you
WIH w3c.zip

  if InStr(Param,"``")
  return % RegExReplace(Param, "\``$", "SC029")

@gustav87
Copy link
Contributor Author

Yes, SC029 works fine!

@gustav87
Copy link
Contributor Author

gustav87 commented Nov 21, 2023

Is it possible to translate all keys into Scan Codes when saving them? I sent you a message on Discord, showing an additional problem with special characters, such as § causing the app to crash when it tries to read the .ini file.

EDIT: I don't know if saving Scan Codes ia good idea, it was just a suggestion. The problem is § causes an app crash, and perhaps other special characters.

@AucT
Copy link
Owner

AucT commented Nov 21, 2023

Find image of keyboard and circle what the key is §

@gustav87
Copy link
Contributor Author

gustav87 commented Nov 21, 2023

oooooooh..... Scan Code is mapping to the physical key on the keyboard.... That's not gonna work then, of course. We need to use virtual key.
image

@gustav87
Copy link
Contributor Author

Did my last comment make sense? :)

@AucT
Copy link
Owner

AucT commented Nov 22, 2023

I don't get what key you want to bind, most keyboards ` or ~ key is 0xC0 aka VKC0.

if your key ` and § is same real key, you can't bind it using virtual or scan key. You need to bind it as it is. So you can change language and it will perfrom other actions

@AucT
Copy link
Owner

AucT commented Nov 22, 2023

make some circle on keyboard image what key you are talking about

@gustav87
Copy link
Contributor Author

gustav87 commented Nov 22, 2023

Using scancode simply won't work. Because in your GUI, you have the ` key. You can't use Scancode for that, because you're rebinding the physical key. Which means that it will rebind anything that's on that key, independent of your language.

I don't know why your AHK reports ` as being VKC0. Perhaps your AHK is outdated? It looks like you're running an old version.

EDIT: To be clear. Using SC029 will work for MY language, because ` is on that physical key, but what if you're using a language where ` is on another key? That won't work :)

@AucT
Copy link
Owner

AucT commented Aug 24, 2024

In the readme there's link to what ahk version I use. Yes, that's old v1 ahk.

Used it 12 years ago and on windows it works fine. Also compiled version is smaller than new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants