function CETrainer_CETimer3Timer(sender)
if isKeyPressed(VK_ADD) then
if CETrainer.CETrackBar1.Position < 7 then
CETrainer.CETrackBar1.Position = CETrainer.CETrackBar1.Position + 1
end
end
if isKeyPressed(VK_SUBTRACT) then
if CETrainer.CETrackBar1.Position > 1 then
CETrainer.CETrackBar1.Position = CETrainer.CETrackBar1.Position - 1
end
end
end
Instead of the hard-coded values 1 and 7, I'd look at the Min and Max properties. Then the hotkeys will work even if you change the trackbar's min or max. _________________
I don't know where I'm going, but I'll figure it out when I get there.
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