the script below is meant to use ins to launch
and key in an alphabet, save and after that the alphabet keyed , i'd be able to hold it down and repeat the alphabet
problem is when i launch the program again without reloading script to change hotkey, the previous hotkey would then be unusable
if possible, can i have the previous key be usable without reloading the script?
Code: Select all
ins::
Gui, Destroy
Gui, Add, Text, x17 y8 w120 h20, Turbo Key:
Gui, Add, Edit, xp yp+30 wp hp vTurbokey, %Turbokey%
Gui, Add, Button, x27 y258 w70 hp gOK, SAVE
Gui, Add, Button, xp+150 yp wp hp gReset, Reset
Gui, Show, x279 y227 h298 w477
Return
Reset:
Gui, Submit
suspend, off
reload
return
GuiClose:
Gui, hide
suspend, off
return
OK:
Gui, Submit, hide
suspend, off
SplashTextOn ,100 ,30 , SAVED, %Turbokey%
sleep 1000
SplashTextOff
Hotkey, %Turbokey%, RemapTurbo
return
RemapTurbo:
While GetKeyState(Turbokey,"P")
{
SetKeyDelay, 0, 50
send %Turbokey%
}
return
$a::a
$b::b
$c::c
$d::d
$e::e
$f::f
$g::g
$h::h
$i::i
$j::j
$k::k
$l::l
$m::m
$n::n
$o::o
$p::p
$q::q
$r::r
$s::s
$t::t
$u::u
$v::v
$w::w
$x::x
$y::y
$z::z
$1::1
$2::2
$3::3
$4::4
$5::5
$6::6
$7::7
$8::8
$9::9
$0::0