Roman012 !BEWARE! Deletes post on answer Reputation: 0
Joined: 25 Dec 2022 Posts: 24
Posted: Tue Jan 03, 2023 8:19 am Post subject:
That's about how it works
is it possible in another way so as not to create a bunch of timers?
function UDF1_CETimer1Timer(sender)
if (isKeyPressed(VK_LBUTTON)) then
UDF1_CELabel1.Caption = math.floor(UDF1_CELabel1.Caption + 1)
end
end
function UDF1_CETimer2Timer(sender)
if (isKeyPressed(VK_LBUTTON)) then
UDF1_CELabel1.Caption = math.floor(UDF1_CELabel1.Caption - 1)
end
end
---XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX--
function UDF1_CEButton1MouseEnter(sender)
UDF1_CETimer1.Enabled = true
end
function UDF1_CEButton1MouseLeave(sender)
UDF1_CETimer1.Enabled = false
end
function UDF1_CEButton2MouseEnter(sender)
UDF1_CETimer2.Enabled = true
end
function UDF1_CEButton2MouseLeave(sender)
UDF1_CETimer2.Enabled = false
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum