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 


When mouse over do ?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Sep 19, 2007 10:02 am    Post subject: When mouse over do ? Reply with quote

I want to do so my application fades when im not having the mouse over it.

Then i want it to become normal when the mouse is over it.

Possible? I tried searching google, but i really didn't get any results i could use..

Language is Delphi.
Back to top
View user's profile Send private message MSN Messenger
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Sep 19, 2007 10:09 am    Post subject: Reply with quote

You can make a thread, use GetCursorPos in it and check if it's on your form.
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Sep 19, 2007 10:12 am    Post subject: Reply with quote

explain a little more please...
Back to top
View user's profile Send private message MSN Messenger
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Sep 19, 2007 10:21 am    Post subject: Reply with quote

Use GetCursorPos API to get the mouse position on the screen. Then, find your form's position on the screen, and check if the mouse is on it.
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Sep 19, 2007 10:23 am    Post subject: Reply with quote

Sorry, i havent been into delphi for quite some time...

Could you explain how i can do this ? probably with some example code, but not needed ...

i will +rep you if you can help me throught this Wink
Back to top
View user's profile Send private message MSN Messenger
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Wed Sep 19, 2007 10:54 am    Post subject: Reply with quote

well i dont get the question but anyway ....

Quote:

var
P1:bool;
m1:tpoint;


make a label and on "mouse move" add this
Quote:

if(P1) then
begin
getcursorpos(m1);
label4.caption:=format('(%d,%d)',[m1.x,m1.y]);
end;

Mouse Down (the same label)
Quote:

P1:=true;

Mouse up (the same label)
Quote:

P1:=false;

then to use the funcition

add to exampel a button or something
Quote:

setcursorpos(m1.x,m1.y);

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Wed Sep 19, 2007 11:36 am    Post subject: Reply with quote

put AlphaBlend true and use OnMouseLeave and OnMouseEnter events with this codes:
for OnMouseLeave:
Code:

  repeat
  form1.AlphaBlendValue:=form1.AlphaBlendValue-1;
  until form1.AlphaBlendValue =130;

and for OnMouseEnter:
Code:

  repeat
  form1.AlphaBlendValue:=form1.AlphaBlendValue+1;
  until form1.AlphaBlendValue =255;
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Sep 19, 2007 12:07 pm    Post subject: Reply with quote

Nothing called OnMouseEnter or OnMouseLeave??
Back to top
View user's profile Send private message MSN Messenger
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Wed Sep 19, 2007 12:23 pm    Post subject: Reply with quote

check form actions...
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Sep 19, 2007 12:30 pm    Post subject: Reply with quote

??

You mean form Events?
Back to top
View user's profile Send private message MSN Messenger
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Wed Sep 19, 2007 12:31 pm    Post subject: Reply with quote

yep
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Sep 19, 2007 12:32 pm    Post subject: Reply with quote

Nope ... nothing called that. Im using Delphi Enterprise 7
Back to top
View user's profile Send private message MSN Messenger
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Wed Sep 19, 2007 1:31 pm    Post subject: Reply with quote

well i dont get the things ...

fades ? what does it mean ?



when the mouse leav the form then change color or something ?

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Sep 19, 2007 1:45 pm    Post subject: Reply with quote

Fade ...

Uhm you know when something is becoming slightly more and more visible ?
Back to top
View user's profile Send private message MSN Messenger
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Wed Sep 19, 2007 2:29 pm    Post subject: Reply with quote

Call TrackMouseEvent
Ask for TME_LEAVE in the struct.
Handle the WM_MOUSELEAVE message.

_________________

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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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