Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 08:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



wait+click

Discussion on wait+click within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
mouradhndr's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 167
Received Thanks: 15
Arrow wait+click

Please I want a code in vb net when I click on the button go! then it makes a click on button 2 and wait 2 seconds then makes a click on button 3 and wait 2 seconds then makes a click on button 4 and wait 2 seconds then makes a click on button 5. thank brothers
mouradhndr is offline  
Old 07/27/2016, 04:24   #2
 
mouradhndr's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 167
Received Thanks: 15
here ie the interface of the program
Attached Images
File Type: png Captureclick.PNG (5.7 KB, 36 views)
mouradhndr is offline  
Old 07/27/2016, 05:17   #3
 
Mafia67's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 769
Received Thanks: 499
Code:
Button2.PerformClick()
Threading.Thread.Sleep(2000)

Button3.PerformClick()
Threading.Thread.Sleep(2000)
...
Mafia67 is offline  
Old 07/27/2016, 05:46   #4
 
mouradhndr's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 167
Received Thanks: 15
Quote:
Originally Posted by Mafia67 View Post
Code:
Button2.PerformClick()
Threading.Thread.Sleep(2000)

Button3.PerformClick()
Threading.Thread.Sleep(2000)
...
this code is working but the program waits 2 seconds and then clicks all buttons which is not that i want.I want a click and 2 seconds wait then comes the next click and 2 seconds wait and so untill the last button. Anyway thank you bro
mouradhndr is offline  
Old 07/27/2016, 16:23   #5
 
Mafia67's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 769
Received Thanks: 499
Try this one instead of Thread.Sleep()
Code:
Dim t = Threading.Tasks.Task.Run(Async Function()
                                Await Task.Delay(2000)
                                Button2.PerformClick()
                       End Function)
      t.Wait()
Source:
Mafia67 is offline  
Old 07/27/2016, 21:37   #6
 
mouradhndr's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 167
Received Thanks: 15
Quote:
Originally Posted by Mafia67 View Post
Try this one instead of Thread.Sleep()
Code:
Dim t = Threading.Tasks.Task.Run(Async Function()
                                Await Task.Delay(2000)
                                Return 42
                       End Function)
      t.Wait()
Source:
not working bro
mouradhndr is offline  
Old 07/28/2016, 20:51   #7
 
mouradhndr's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 167
Received Thanks: 15
Solved thaks for help brothers
I request closing
mouradhndr is offline  
Old 07/29/2016, 11:55   #8
 
elite*gold: 300
Join Date: Apr 2013
Posts: 3,234
Received Thanks: 1,205
You can also create a list/array of all buttons and go through it with for each and call the PerformClick method and wait for 2 seconds. In this case it will work theoretic with infinite amount of buttons
#Saiirex is offline  
Reply


Similar Threads Similar Threads
All Hack don't work. We must wait, Just wait
04/16/2011 - CrossFire Hacks, Bots, Cheats & Exploits - 3 Replies
All Hack don't work. We must wait, Just wait but its nothing xD Big FAKE !!!!!



All times are GMT +1. The time now is 08:10.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.