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 


Set mouse position in a form! [vb.net]

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

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Tue Dec 30, 2008 7:41 pm    Post subject: Set mouse position in a form! [vb.net] Reply with quote

How do you set the mouse position in a form!

I use Cursor.Position but it sets like an API.

_________________
CEF will always stay alive.
Back to top
View user's profile Send private message
BanMe
Master Cheater
Reputation: 0

Joined: 29 Nov 2005
Posts: 375
Location: Farmington NH, USA

PostPosted: Tue Dec 30, 2008 8:44 pm    Post subject: Reply with quote

.. if i could comprehend the totality of what your asking i would have a more precise answer..

but Cursor.Position uses SetCursorPosition()...

also if you want to find something that part of window form try this psuedo code

FindWindow(
FindWindow//Get The Parent Window
NameOfChild)
GetWindowRect
using the RECT of the window u can set bound for the mouse Smile all pretty simple stuff..
Back to top
View user's profile Send private message MSN Messenger
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Tue Dec 30, 2008 9:13 pm    Post subject: Reply with quote

If I got what you mean:
Code:
int x = 100; // X-Value on the Window
int y = 100; // Y-Value on the Window
RECT somerect;
HWND yourwnd = FindWindow(NULL, NULL);   // Insert your shietz
GetWindowRect(yourwnd, &somerect);
SetCursorPos(somerect.left+x, somerect.top+y);
Back to top
View user's profile Send private message
BanMe
Master Cheater
Reputation: 0

Joined: 29 Nov 2005
Posts: 375
Location: Farmington NH, USA

PostPosted: Tue Dec 30, 2008 9:43 pm    Post subject: Reply with quote

of course you did Smile hope this help Jorg Hi Wink

regards BanMe
Back to top
View user's profile Send private message MSN Messenger
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Wed Dec 31, 2008 8:45 am    Post subject: Reply with quote

Wait can you set the mouse position for a control?
_________________
CEF will always stay alive.
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Wed Dec 31, 2008 9:06 am    Post subject: Reply with quote

same as main form window
your controls considers windows too so . . . .
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