Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 03:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C# mouse movement

Discussion on C# mouse movement within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2015
Posts: 79
Received Thanks: 24
C# mouse movement

I have been working on a pixelbot and it is going pretty good.
The only problem I have is that I want it to pick the pixel what is the closest to the centrum of my screen. (My screen is 22 inch big)

At the moment it picks pixels which are far away from the centrum and it is not efficient, but I don't know how to write this kind of code. (It needs to pick pixels close to the centrum because at that way my bot will work much faster)

I hope somebody can help me, in the mean while I will try to find something on my own.
lovdo is offline  
Old 05/12/2015, 21:30   #2

 
snow's Avatar
 
elite*gold: 724
Join Date: Mar 2011
Posts: 10,479
Received Thanks: 3,318
Arrow C/C++ -> .NET Languages

#moved
snow is offline  
Old 05/12/2015, 21:54   #3
 
elite*gold: 0
Join Date: Aug 2011
Posts: 159
Received Thanks: 57
Is this what you are looking for?

Code:
Point center = new Point(My.Computer.Screen.WorkingArea.Width / 2, My.Computer.Screen.WorkingArea.Height / 2);
BeginnerDO is offline  
Thanks
1 User
Old 05/12/2015, 22:11   #4
 
Biesi's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 182
Received Thanks: 185
To get distances in two-dimensional space you can use the following formula

Biesi is offline  
Old 05/18/2015, 00:03   #5
 
Epanias's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 41
Received Thanks: 18
Quote:
Originally Posted by BeginnerDO View Post
Is this what you are looking for?

Code:
Point center = new Point(My.Computer.Screen.WorkingArea.Width / 2, My.Computer.Screen.WorkingArea.Height / 2);


Just in case you're not common to the vb usage in c# .
Epanias is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[FREE] Automatic mouse and keyboard movement software
01/04/2015 - Aion Hacks, Bots, Cheats & Exploits - 2 Replies
Hello ePVPers!! I have a software that save any keyboard or mouse movement and clicks, so you can grind on any MMORPG like Aion avoiding any kind of bans, totally legit!! If you are interested, I can send it by skype. Skype Account: carlesd33
slow mouse movement
12/31/2014 - Off Topic - 1 Replies
Anyone know a program that makes your mouse move slowly, like when you move it a little bit and you stop, it still keeps moving by it's own for a little while and it looks like it's in slow motion?
Massive fps drop due to mouse movement
08/29/2010 - Silkroad Online - 1 Replies
Hi, I'm going away for 5 days so as a last hope I decided to post this here. Recently I've been having fps drop on silkroad, and basically every game I run in D3D. I don't know much about computers nor do I know what D3D really is but, I tried to run counter strike in D3D (normally it's opengl and runs fine) and it gave me the same problem. Now if I just use the keyboard, the fps lock. Even if I turn the camera around and stuff. But if I move my mouse a bit, even when standing still, it goes...
[AutoIt] Bezier Mouse Movement
08/14/2009 - General Gaming Discussion - 0 Replies
It was originally written for GuildWars in mind, and their anti-macro detection. Dim $PtX Dim $PtY Dim $MaxPt = 3 Func Factorial($n) $value = 1 For $i = 2 To $n $value = $value * $i
Wallhack movement bugs out when moving with mouse?
09/23/2008 - Dekaron Private Server - 8 Replies
i made a wallhakc that workd, but when i try to move via the mouse, my char starts moving really fast across the map in different directions, anyone know what i did wrong?



All times are GMT +1. The time now is 03:16.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.