Variable Timer?

Post Reply
Zunnoth
Posts: 3
Joined: Wed Oct 17, 2018 3:01 am

Variable Timer?

Post by Zunnoth » Wed Oct 17, 2018 3:31 am

Is there some way I can script a timer so that it goes off at a different time based on input? For example, capturing a number with perl and using that as the timer length.

Jor'Mox
Posts: 1093
Joined: Wed Apr 03, 2013 2:19 am

Re: Variable Timer?

Post by Jor'Mox » Wed Oct 17, 2018 11:06 am

Sure, you just need to convert the string captured into a number, and use a tempTimer.

Zunnoth
Posts: 3
Joined: Wed Oct 17, 2018 3:01 am

Re: Variable Timer?

Post by Zunnoth » Wed Oct 17, 2018 10:57 pm

Maybe I just did something wrong then, because that didn't work for me. I'll have to mess around some more. Just to be sure I understand, I should just be able to pass a Number containing variable as the time?

Jor'Mox
Posts: 1093
Joined: Wed Apr 03, 2013 2:19 am

Re: Variable Timer?

Post by Jor'Mox » Wed Oct 17, 2018 11:03 pm

Yes.

Zunnoth
Posts: 3
Joined: Wed Oct 17, 2018 3:01 am

Re: Variable Timer?

Post by Zunnoth » Wed Oct 17, 2018 11:06 pm

Thanks! I'll figure out what I did wrong.

Edit: For reference, it's that I didn't put brackets around the send command in the timer, making it spam

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests