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 get position from ....

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Sat Aug 18, 2007 2:23 pm    Post subject: help get position from .... Reply with quote

hi i got a fast problem =/
when i use this code it is meant to check if panel1.color exist in webbrowser1 well it check if it exist but how to i make it save the position of the color then?
Quote:

var
Wleft,WTop,WRight,WBottom:integer;
col:integer;
begin
Wleft:=(WebBrowser1.Left);
WTop:=(WebBrowser1.Top);
WRight:=(WebBrowser1.Left + WebBrowser1.width);
WBottom:=(WebBrowser1.Top + WebBrowser1.height);
col:=(panel1.color);

if Wleft > col then
if WRight < col then
if WTop > col then
if WBottom < col then
getCursorPos(,); //<<<<<< how to i write down the position
end;
[/quote]
_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Sat Aug 18, 2007 2:43 pm    Post subject: Reply with quote

You can't compare a color to a location. You should search MSDN for GetCursorPos, and then you'll need GetPixel or something like that.
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Sat Aug 18, 2007 2:46 pm    Post subject: Reply with quote

assaf84 wrote:
You can't compare a color to a location. You should search MSDN for GetCursorPos, and then you'll need GetPixel or something like that.



okaj dam then i have to do on the boring way lol .... set out like 500 panels with 1 in width and 1 in height oO

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sat Aug 18, 2007 4:28 pm    Post subject: Reply with quote

what are u trying to do? maybe u can make it another way....
try making the panel position at screen left/top+xy
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