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
Server Development
Habbo Retros
Habbo Tutorials
Creating emulator commands with delays
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="Jerry" data-source="post: 397802" data-attributes="member: 35321"><p>That's because you don't know how to pause sleep a thread for a specific code properly.</p><p></p><p>I create a new thread to use <strong>Thread.Sleep</strong> to avoid sleeping the whole thread, for example:</p><p><img src="http://image.prntscr.com/image/7a4d42e13360430a928484d7d5abd354.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>By using this method, it does not suspends/block your whole thread or sleeps the whole environment when using this method.</p><p></p><p>If you don't use "new threads", the whole/main thread will most likely be blocked for a specific interval (in milliseconds):</p><p><img src="http://image.prntscr.com/image/2faa2a6c16b845ca8f306dd0563a8ad7.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Just <strong>clarifying</strong> because it looked like to me that you don't know how to use the threading properly, but now you do. (Tried to word it for y'all to understand). Using Task.Delay works too in this situation, but I create a new thread to sleep a thread so this method is irrelevant <strong>to me</strong>.</p><p></p><p>So ya, hope this helps.</p></blockquote><p></p>
[QUOTE="Jerry, post: 397802, member: 35321"] That's because you don't know how to pause sleep a thread for a specific code properly. I create a new thread to use [B]Thread.Sleep[/B] to avoid sleeping the whole thread, for example: [IMG]http://image.prntscr.com/image/7a4d42e13360430a928484d7d5abd354.png[/IMG] By using this method, it does not suspends/block your whole thread or sleeps the whole environment when using this method. If you don't use "new threads", the whole/main thread will most likely be blocked for a specific interval (in milliseconds): [IMG]http://image.prntscr.com/image/2faa2a6c16b845ca8f306dd0563a8ad7.png[/IMG] Just [B]clarifying[/B] because it looked like to me that you don't know how to use the threading properly, but now you do. (Tried to word it for y'all to understand). Using Task.Delay works too in this situation, but I create a new thread to sleep a thread so this method is irrelevant [B]to me[/B]. So ya, hope this helps. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
Creating emulator commands with delays
Top