❔ Timer with secound delay doesn't work

C# experts, yes I understand that shit-code but I want to make a fast timer that would not sit over the code (because already busy modding for doom). Why doesn't OutTimer start?
13 Replies
ero
ero2y ago
presumably the code that's meant to start the timer never gets run
𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥
Only the first (maintimer) timer starts, the additional(outtimer) timer does not start. If I set Time_Minutes to 1 minute and Time_OutMinutes to 2, it counts down cyclically only a minute (by TimeLabel text)
Ryada
Ryada2y ago
Just for my idea where and how do you have MainTimer and OutTimer defined?
𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥
Standart winforms generated file
Ryada
Ryada2y ago
That makes sense then
𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥
It is a Windows.forms timer
Ryada
Ryada2y ago
If you place a breakpoint on line 80 does that ever get hit?
𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥
I'll have to give it a try. I don't have access to a PC at the moment
Ryada
Ryada2y ago
Alright when you do have access to your pc try placing a breakpoint on line 80 to see if the program even reaches the logic to start the outtimer, as well as place a breakpoint inside of the outtimer_tick to see if that logic is being hit (saves restarting if the first is true) That being said I have some questions as to what you are trying to achieve specifically by using 2 timers instead of 1 But feel free to ping me when you have had time to check with breakpoints
𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥
I want to make a timer reminder to do the warm-up from the computer, but the warm-up is not done instantly. That's what the second timer is for.
Ryada
Ryada2y ago
The warm up from the computer?
𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥
It works. But what about the signal? The signal doesn't work. Sound inside the project resources
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server