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 


[C#].NET - TransparencyKey and MouseMove

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Deine Mutter
Expert Cheater
Reputation: 1

Joined: 05 Apr 2006
Posts: 181

PostPosted: Thu Sep 30, 2010 12:29 pm    Post subject: [C#].NET - TransparencyKey and MouseMove Reply with quote

Hello,
I am trying to set up a form with an transparent client area. For this purpose I use the TransparenyKey attribute. But when the client area is transparent, the MouseMove event does not work anymore. So is there a way make the form transparent without losing MouseMove? I could use a global mouse hook which computes the screen coordinates into client coordinates, but i think there must be an easier way.

_________________
Back to top
View user's profile Send private message
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Thu Sep 30, 2010 1:45 pm    Post subject: Reply with quote

Someone with a similar problem has posted and gotten a few solutions.

http://bytes.com/topic/c-sharp/answers/578178-transparent-form-intercepts-mouse-events

_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Thu Sep 30, 2010 4:38 pm    Post subject: Reply with quote

If you are looking to do some type of glassy effect or still have full proper control of the client area, you might want to take a look into DWM. Keep in mind it would require your application to be ran on Vista/Win7 then.

Some good reads for this subject:
http://www.danielmoth.com/Blog/Vista-Glass-In-C.aspx
http://bartdesmet.net/blogs/bart/archive/2006/10/05/4495.aspx
http://msdn.microsoft.com/en-us/magazine/cc163435.aspx

If you are looking to just adjust the transparency overall, then you might want to look into:
SetWindowLayerAttributes
UpdateLayeredWindow

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Deine Mutter
Expert Cheater
Reputation: 1

Joined: 05 Apr 2006
Posts: 181

PostPosted: Mon Oct 11, 2010 7:09 am    Post subject: Reply with quote

Thank you for your answers. I decided to use a timer which translates the coordinates to client coordinates. I know, that is not a nice solution, but it works perfectly for my purpose.
Project is finished: http://www.youtube.com/watch?v=4xlDMsVHRIw Mr. Green

_________________
Back to top
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Mon Oct 11, 2010 8:22 pm    Post subject: Reply with quote

Cool bot, is it open source?
_________________
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