Jump to content
Sign in to follow this  
memerim

Autoit + remapped keys

Recommended Posts

😢I've used a app name SharpKeys to remap some keys, but using autoit controlsend or send, its send the original key and not the remapped one.

Quote

SharpKeys is a Registry hack that is used to make certain keys on a keyboard act like other keys. For example, if you accidentally hit Caps Lock often, you could use this utility to map Caps Lock to a Shift key or even turn it off completely. This official release includes support for up to 104 mappings, an extensive list of available keys, and a β€œType Key” option to help when managing mappings. As it relies on internal support within Windows NT, Windows 2000, Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows 8, or Windows 10 you must be running one of these OS’s for this Registry hack to work.

image.png.9fc1c2877ec4048aab8f9ddfe0dc31c4.png

I remaped F11 to work as LCtrl, if i manualy hit F11 it sends LCtrl, but when i use:

ControlSend("Window","","","{f11}")

It sends F11 and not LCtrl, could be possible controlsend recognize the remapped key?

Share this post


Link to post
Share on other sites

I suspect the behavior is the SharpKeys app specifically remaps keyboard key inputs only an not the raw keycodes.Β Β 

You might be stuck with usingΒ {LCTRL} instead, unless there is a way to simulate the keyboard key press...which I am not aware how to do.

I'm curious, if you use OSK (on-screen keyboard) to enter F11, does it send the expected LCtrl?


Spoiler

Things I've Made: AOT Tool β—ŠΒ AU History β—ŠΒ Deck of Cards β—Š HideIt β—Š ICU β—Š Icon Freezer β—Š Ipod Ejector β—Š Link Downloader β—Š MD5 Folder Enumerator β—Š PassGen β—ŠΒ Ping Tool β—Š Quick NIC β—Š Read OCR β—Š RemoteIT β—Š SchTasksGui β—Š SpyCam β—Š System UpTime β—Š Transparency MachineΒ β—Š VMWare ESX Builder
Misc Code Snippets: ADODB Example β—Š CheckHoverΒ β—ŠΒ Detect SafeMode β—Š DynEnumArray β—Š GetNetStatDataΒ β—Š HashArray β—Š IsBetweenDates β—Š Local Admins β—Š Make Choice β—Š Recursive File List β—Š Remove Sizebox Style β—Š Retrieve PNPDeviceID β—Š Retreive SysListView32 Contents β—Š Set IE Homepage β—Š Tickle Expired Password β—Š Transpose Array
Projects: Drive Space Usage GUI β—ŠΒ LEDkIT β—Š Plasma_kIt β—ŠΒ Scan Engine Builder β—Š SpeeDBurner β—Š SubnetCalc
Cool Stuff: AutoItObject UDF β—Š Extract Icon From Proc β—Š GuiCtrlFontRotate β—Š Hex Edit Funcs β—Š Run binary β—Š Service_UDF

Β 

Share this post


Link to post
Share on other sites

I will test with OSK and edit my comment.

Β 

-edit-

image.png.b85452f182c6e096d39c92263420998e.png

When i hit F11 on my keyboard, OSK detect as CTRL.

But when i press F11 on OSK, it also send F11 and not LCTRL.

Edited by memerim

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...