Forum > Packages and Libraries
MouseAndKeyInput press "@" arroba key
(1/1)
lainz:
Hi, is possible to press @ key with this component?
This is my component, based on BGRAControls one. Attached.
It currently supports numbers, characters from a-z, (lowercase, uppercase are not working), Dot and comma.
dsiders:
--- Quote from: lainz on December 16, 2022, 12:26:21 am ---Hi, is possible to press @ key with this component?
This is my component, based on BGRAControls one. Attached.
It currently supports numbers, characters from a-z, (lowercase, uppercase are not working), Dot and comma.
--- End quote ---
lcltype.pp has a comment that VK_AT is mapped to "another" key. Have you tried VK_LCL_AT or Shift + VK_2?
lainz:
--- Quote from: dsiders on December 16, 2022, 12:35:54 am ---
--- Quote from: lainz on December 16, 2022, 12:26:21 am ---Hi, is possible to press @ key with this component?
This is my component, based on BGRAControls one. Attached.
It currently supports numbers, characters from a-z, (lowercase, uppercase are not working), Dot and comma.
--- End quote ---
lcltype.pp has a comment that VK_AT is mapped to "another" key. Have you tried VK_LCL_AT or Shift + VK_2?
--- End quote ---
Thanks. I've added this line:
...
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Application.QueueAsyncCall(PressRAltVirtKey, Ord(UpperCase('q')[1]));; ...
Since on my keyboard the @ is in the Q key.
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TMyKeyboard.PressRAltVirtKey(p: longint);begin KeyInput.Down(VK_LCL_RALT); KeyInput.Down(p); KeyInput.Up(p); KeyInput.Up(VK_LCL_RALT);end;
The thing it will only work on my keyboard, and someone can have a keyboard like you that the @ is in the 2 key.
Also you say Shift + 2, and I have Right Alt + Q :S
Navigation
[0] Message Index