Quisiera que con una combinacion de teclas del tipo:
Code: Select all
:*?:ii::
{
.......
}
En otras palabras el "ii" inicial seria como un "on" y "ii" final seria un "off".
Agradeceria enormente si es que me pudieran ayudar. Que tengan buen dia.
Moderator: Flipeador
Code: Select all
:*?:ii::
{
.......
}
Code: Select all
variable := true
return
::ii::
variable := not variable ; da alternativamente false, true, false, true etc.
return
#If (variable) ; hotstring contextual - es activado solo a condición de que la variable esté "true"
::jj::
MsgBox, test
return
#If
Code: Select all
::ii:: ; "If simple"
xxxx := (! xxxx)
{
If ( xxxx )
{
variable := 1
}
Else
{
variable := 0
}
}
return
#If (variable==1)
{
::jj::
MsgBox, test
return
}
Code: Select all
::ii::
MsgBox, test
return
::jj::
Suspend ; si la primera linea de la subrutina es "Suspend" el hotkey/hotstring es eximido de suspencion
return
Code: Select all
~f:: ;"MODO NORMAL"
KeyWait, f, T0.3
if (ErrorLevel){
SendInput {left}{del}
variable := 1
sleep 1000
Return
}
return ;"--------------Activate------------"
#If (variable == 1)
k::
SendInput {down}
return
i::
SendInput {up}
return
j::
SendInput {left}
return
l::
SendInput {right}
return
~h::
{
SendInput {BS}
variable := 0
SoundBeep, 500
}
return
#If
Users browsing this forum: No registered users and 17 guests