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 


{Help} Timer Interval (Delphi)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
iRiot
Master Cheater
Reputation: 0

Joined: 03 Jul 2007
Posts: 395
Location: Aka RIOT

PostPosted: Wed Oct 10, 2007 7:00 pm    Post subject: {Help} Timer Interval (Delphi) Reply with quote

Well iam trying to figure out how to change a timers interval by Edit1.Text

Well these are some codes i figured out but none help me change the timer's interval

Well this code changes the timer Interval to 10000

Code:

var
  Interv: integer;
begin
  Interv := 10000;
  Timer1.Interval := Interv;
end;



Well this 1 finds out the interval for the timer and displays it in the edit1.text

Code:
begin
  Edit1.Text:= IntToStr(Test.Interval);
end;




What i want to do is change the interval value by a Edit1 to w/e is typed in Edit1.Text well if any1 could come up with a code that can change the interval will get a rep... thanks..

For example (Doesn't work "error")

var
Interv: integer;
begin
Interv := Edit1.text;
Timer1.Interval := Interv;
end;

_________________
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Wed Oct 10, 2007 7:05 pm    Post subject: Reply with quote

what error specifically?

edit: not that I didn't see that it was a type problem (most errors are) but posters should post the exact message that the compiler spits out so they know how to fix errors themselves...


Last edited by appalsap on Wed Oct 10, 2007 9:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
XTrinityX
Expert Cheater
Reputation: 0

Joined: 18 May 2006
Posts: 123
Location: Connecticut

PostPosted: Wed Oct 10, 2007 7:28 pm    Post subject: Reply with quote

Timer1.Interval := StrToInt(Edit1.text);
Back to top
View user's profile Send private message AIM Address
iRiot
Master Cheater
Reputation: 0

Joined: 03 Jul 2007
Posts: 395
Location: Aka RIOT

PostPosted: Fri Oct 12, 2007 6:49 pm    Post subject: Reply with quote

XTrinityX wrote:
Timer1.Interval := StrToInt(Edit1.text);


Lol i was close kk thanks +rep

_________________
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