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 


Delphi Ideas
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jul 14, 2007 7:22 pm    Post subject: Reply with quote

Well, for a webbrowser, sure it would work...

But where the practice in that? The control does all the work for you.
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Sat Jul 14, 2007 7:32 pm    Post subject: Reply with quote

Sure, dragging in a timer that constantly uses CPU power to call on windows APIs is more practicing than to use an event driven system which is much easier and more efficient.

That's like saying you would rather climb up an 80 story building to get to a crucial meeting rather than taking the elevator.

_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jul 14, 2007 7:51 pm    Post subject: Reply with quote

The cpu power a timer uses is beyond minuscule, I'm saying you can only use that method in such cases as a "web browser". What are you going to do when you require action without having your program in focus?
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Jul 14, 2007 8:42 pm    Post subject: Reply with quote

slovach wrote:
The cpu power a timer uses is beyond minuscule, I'm saying you can only use that method in such cases as a "web browser". What are you going to do when you require action without having your program in focus?


It would be rare that an web browser would need to do such a thing, but in the case you need it too you would use the other method. Always use the most efficient method possible, memory is not unlimited. Alot of people seem to think there is this black limitless void where you can store all of your data, there isn't.
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Sat Jul 14, 2007 9:22 pm    Post subject: Reply with quote

slovach wrote:
What are you going to do when you require action without having your program in focus?


http://msdn2.microsoft.com/en-us/library/ms646309.aspx

slovach wrote:
The cpu power a timer uses is beyond minuscule, I'm saying you can only use that method in such cases as a "web browser".

Intel would be really happy if all of the programmers thought like you, for people will need the latest multi-core processors to just be able to run a webbrowser that will be refreshing on every hit of the return button.

_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jul 14, 2007 9:52 pm    Post subject: Reply with quote

Ah I didn't even know such an API existed, definitely good to know, I'm all for learning new things.

But aren't you over-reacting a bit about the whole timer shit? Smile
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Sun Jul 15, 2007 2:56 pm    Post subject: Reply with quote

Nope, not overreacting. What that code does is abuse multi-threading. Just imagine if all programs are coded in such a way, instead of waiting for a message, the program would check at certain intervals if something has happened. This would not only decrease performance, but also decrease the responsiveness of programs.

Another analogy:

Doing what that code does is like waiting for a mail to arrive by running down the stairs to check every 1 minute rather than waiting for the door bell.

_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sun Jul 15, 2007 3:01 pm    Post subject: Reply with quote

BRONiUS wrote:
Hello World v2.


Wtf is Hello World V2 ?

What else can be approved in Hello World ?

Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.

Or, make a game like Need For Speed Carbon,make a program like Google Earth...
Back to top
View user's profile Send private message
Xanatos
I post too much
Warning
Reputation: 18

Joined: 06 May 2007
Posts: 2559
Location: US

PostPosted: Sun Jul 15, 2007 3:26 pm    Post subject: Reply with quote

BRONiUS wrote:
Hello World v2.


A definate must.

_________________
Back to top
View user's profile Send private message
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Sun Jul 15, 2007 3:55 pm    Post subject: Reply with quote

DeltaFlyer wrote:
That wastes CPU power.

Just add something like this to the event handler that does the handling for key down:

Code:

if Key = Chr(13) then
 {do whatever}

Or
Code:

if Key = #13 then
 {do whatever}
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sun Jul 15, 2007 4:28 pm    Post subject: Reply with quote

Kaspersky wrote:
BRONiUS wrote:
Hello World v2.


Wtf is Hello World V2 ?

What else can be approved in Hello World ?

Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.

Or, make a game like Need For Speed Carbon,make a program like Google Earth...


My question to you is: Have you done any of the stuff you listed there?
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sun Jul 15, 2007 4:46 pm    Post subject: Reply with quote

Flyte wrote:
Kaspersky wrote:
BRONiUS wrote:
Hello World v2.


Wtf is Hello World V2 ?

What else can be approved in Hello World ?

Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.

Or, make a game like Need For Speed Carbon,make a program like Google Earth...


My question to you is: Have you done any of the stuff you listed there?


No.
Back to top
View user's profile Send private message
gamesguru
Grandmaster Cheater
Reputation: 0

Joined: 22 Mar 2006
Posts: 926
Location: detroit

PostPosted: Sun Jul 15, 2007 7:55 pm    Post subject: Reply with quote

Kaspersky wrote:
BRONiUS wrote:
Hello World v2.


Wtf is Hello World V2 ?

What else can be approved in Hello World ?

Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.

Or, make a game like Need For Speed Carbon,make a program like Google Earth...
yet again, kaspersky displaying his grammar skills...
_________________
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Jul 16, 2007 1:45 am    Post subject: Reply with quote

gamesguru wrote:
Kaspersky wrote:
BRONiUS wrote:
Hello World v2.


Wtf is Hello World V2 ?

What else can be approved in Hello World ?

Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.

Or, make a game like Need For Speed Carbon,make a program like Google Earth...
yet again, kaspersky displaying his grammar skills...


Dude getfo'ta here....dont mind anyone grammar on the net ok ? especially here...

who gives a shit about peoples grammar ?
Back to top
View user's profile Send private message
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Mon Jul 16, 2007 5:50 am    Post subject: Reply with quote

Kaspersky wrote:
gamesguru wrote:
Kaspersky wrote:
BRONiUS wrote:
Hello World v2.


Wtf is Hello World V2 ?

What else can be approved in Hello World ?

Try Making a 3D Game with Grapgic Accelerator or Make a DirectX Window Similiar to DXwnd.

Or, make a game like Need For Speed Carbon,make a program like Google Earth...
yet again, kaspersky displaying his grammar skills...


Dude getfo'ta here....dont mind anyone grammar on the net ok ? especially here...

who gives a shit about peoples grammar ?

good grammar is good for the community Rolling Eyes
same as healthy candy = doesnt exist Razz
get what i mean?

_________________
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
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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