` & number for Win+number, but single "`" still sends "`".

Post your working scripts, libraries and tools for AHK v1.1 and older
amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

` & number for Win+number, but single "`" still sends "`".

Post by amateur+ » 17 Jan 2022, 19:50

A small script allows you to use ` button as LWin button for sending Win+1, Win+2 etc (` is much closer to number-keys than LWin thus more comfortable to use), but it still sends `-character if it was released before pressing other keys.
Btw, Shift+` still sends ~.
Originally I've posted it here in the "Ask For Help" section.

Code: Select all

$vkC0::
SetKeyDelay -1   
Send {LWin Down} 
return

#vkC0::return

#vkC0 up::
vkC0 up::
SetKeyDelay -1 
if (A_PriorKey = "``")
	Send {vkFF}{LWin up}{vkC0}
else Send {LWin up}
return
Last edited by amateur+ on 21 Jan 2022, 23:16, edited 1 time in total.
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.


amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: ` & number for Win+number, but single "`" still sends "`".

Post by amateur+ » 18 Jan 2022, 18:28

Thanks, I have installed it. I'll try to study it.
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: ` & number for Win+number, but single "`" still sends "`".

Post by amateur+ » 21 Jan 2022, 23:18

Bug fix: chahged mask key from {Esc} to {vkFF}.
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

Post Reply

Return to “Scripts and Functions (v1)”