Is it possible to customize a remap?
Is it possible to customize a remap?
In a remap you can simply do something like a::b, however is it possible to do something that would give the user to select a?
Re: Is it possible to customize a remap?
Example for making a dynamic remapping,remapping keys wrote: When a script is launched, each remapping is translated into a pair of hotkeys. For example, a script containing a::b actually contains the following two hotkeys instead:Code: Select all
*a:: SetKeyDelay -1 ; If the destination key is a mouse button, SetMouseDelay is used instead. Send {Blind}{b DownR} ; DownR is like Down except that other Send commands in the script won't assume "b" should stay down during their Send. return *a up:: SetKeyDelay -1 ; See note below for why press-duration is not specified with either of these SetKeyDelays. Send {Blind}{b up} return
Code: Select all
remap(a,b){
local
fn_dn := func("remap_send").bind("{" . b . " DownR}")
fn_up := func("remap_send").bind("{" . b . " up}")
hotkey % "*" a, % fn_dn
hotkey % "*" a " up", % fn_up
}
remap_send(key){
setkeydelay -1
setmousedelay -1
send % "{blind}" . key
}
; Example
remap("c", "d")
Cheers.
Who is online
Users browsing this forum: Xtra and 136 guests