mikeyww wrote: ↑25 Jun 2022, 11:07
Code: Select all
r::SetTimer, r Up, % (on := !on) ? 1000 : "Off"
r Up::Send % on ? "x" : ""
It almost works fine but I'm struggling a little bit to understand how this code is working can U explain please?
now R heals at right timing and works as intended and X keeps cicling ATK1, ATK2 and ATK3 just like I needed
but they interfere with each others state now, how can i define them as separate?? and also I get an error at the line I marked with ' $ ' that says -
Code: Select all
Warning: This variable has not been assigned a value
Specifically: on a (global variable)
--> $: SetTimer, r Up,(on := !on) ? 1080: "off"
The error doesn't seems to interfere with the functionality of the script it's only an aesthetical problem(?) The bigger problem now is how can I keep R and X separated so they don't get affected by each other (when it was healing (R) and i pressed ATK (X) it stops them both but if i pressed X again then both starts working and etc.) Hope I explained it all, sorry if I miss spell something (I speak PT-BR) thank you!
Code: Select all
1::1
2::2
3::3
4::4
5::5
6::6
7::7
8::8
9::9
0::0
q::q
w::w
e::e
$ r::SetTimer, r Up, % (on := !on) ? 1080 : "Off"
r Up::Send % on ? "1" : ""
t::t
y::y
u::u
i::i
o::o
p::p
a::a
s::s
d::d
f::Send, 567
g::g
h::h
j::j
k::k
l::l
ç::ç
z::z
x::SetTimer, x Up, % (on := !on) ? 1080 : "Off"
x Up::Send % on ? "890" : ""
c::c
v::v
b::b
n::n
m::m
f1::f1
f2::f2
f3::f3
f4::f4
f5::f5
f6::f6
f7::f7
f8::f8
f9::Suspend,Toggle
f10::f10
f11::f11
f12::f12
Numpad1::Numpad1
Numpad2::Numpad2
Numpad3::Numpad3
Numpad4::Numpad4
Numpad5::Numpad5
Numpad6::Numpad6
Numpad7::Numpad7
Numpad8::Numpad8
Numpad9::Numpad9
[Mod edit: [code][/code] tags added.]