Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
c# Timer record watcher execute action
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Skythrust" data-source="post: 468131" data-attributes="member: 87030"><p>Hi there,</p><p></p><p>For a project I am creating a watcher which checks if a value is 0 or 1 every 5 seconds.</p><p>If the value changes from 0 to 1 it needs to execute an action, but when it has changed to 1</p><p>the action needs to be execute one time, if the value changes back to 0 and back to 1 another time.</p><p></p><p>Options;</p><ul> <li data-xf-list-type="ul">I can stop the the timer</li> <li data-xf-list-type="ul">I can set the timer in sleep for x minutes</li> </ul><p></p><p>But there should be another way to do this, it is important that it will work every time. </p><p>So when the value changes every time from 0 to 1 it needs to activate an action one time.</p><p></p><p>Any advise how I can make this?</p></blockquote><p></p>
[QUOTE="Skythrust, post: 468131, member: 87030"] Hi there, For a project I am creating a watcher which checks if a value is 0 or 1 every 5 seconds. If the value changes from 0 to 1 it needs to execute an action, but when it has changed to 1 the action needs to be execute one time, if the value changes back to 0 and back to 1 another time. Options; [LIST] [*]I can stop the the timer [*]I can set the timer in sleep for x minutes [/LIST] But there should be another way to do this, it is important that it will work every time. So when the value changes every time from 0 to 1 it needs to activate an action one time. Any advise how I can make this? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
c# Timer record watcher execute action
Top