Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VB.net help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
InternetIsSeriousBusiness
Grandmaster Cheater Supreme
Reputation: 8

Joined: 12 Jul 2010
Posts: 1269

PostPosted: Sun Sep 05, 2010 8:01 pm    Post subject: VB.net help Reply with quote

Question 1. How can i set the number a timer can tick?

Question 2. How do i set something at random??

Question 3. How do i enable a button from a timer??

I will plus rep for the person to tell me the right codes.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Sep 05, 2010 9:53 pm    Post subject: Reply with quote

1. set the Interval property: http://msdn.microsoft.com/en-us/library/system.timers.timer_properties.aspx

2. use the Random class: http://msdn.microsoft.com/en-us/library/system.random.aspx

3. the Enabled property: http://msdn.microsoft.com/en-us/library/system.windows.forms.button_properties.aspx
Back to top
View user's profile Send private message
InternetIsSeriousBusiness
Grandmaster Cheater Supreme
Reputation: 8

Joined: 12 Jul 2010
Posts: 1269

PostPosted: Sun Sep 05, 2010 10:25 pm    Post subject: Reply with quote

slovach wrote:
1. set the Interval property: http://msdn.microsoft.com/en-us/library/system.timers.timer_properties.aspx

2. use the Random class: http://msdn.microsoft.com/en-us/library/system.random.aspx

3. the Enabled property: http://msdn.microsoft.com/en-us/library/system.windows.forms.button_properties.aspx


1. I meant how MANY times it ticks not how fast.

2. thx

3.I meant the oppisite. Enable a button from a timer.

if you canget 1 and 3 You will get rep

_________________
FLAME FLAME FLAME!!!@@@
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Sep 05, 2010 11:27 pm    Post subject: This post has 2 review(s) Reply with quote

1. Just keep a variable to keep track of the tick event. Every time the event fires off, just increment it. You can also just do some math to keep track of it... it works off milliseconds so you can assume that 1000 / interval = the time each tick takes.

3. Like i said, just set the buttons property from the timer.
Back to top
View user's profile Send private message
TROLOLOLOLOLOLOLOLOLOLOLO
Expert Cheater
Reputation: -1

Joined: 27 Dec 2009
Posts: 100

PostPosted: Mon Sep 06, 2010 12:23 am    Post subject: This post has 1 review(s) Reply with quote

1) Something like this inside your timer's tick event.

Code:
private int i = 0;
++i;


Make sure to put the 1st part up top inside your class.

3)
Code:
Button1.Enabled = true;
||
Code:
Button1.Enabled = false;
Back to top
View user's profile Send private message
InternetIsSeriousBusiness
Grandmaster Cheater Supreme
Reputation: 8

Joined: 12 Jul 2010
Posts: 1269

PostPosted: Mon Sep 06, 2010 8:24 pm    Post subject: Reply with quote

Slovach gets rep for giving the most info. Ill rep whan I can
_________________
FLAME FLAME FLAME!!!@@@
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites