julianperrott / WowClassicGrindBot

WOW Classic Grind Bot, World of Warcraft Grind Bot - No DLL injection or memory watching, just screen capture and mouse and keyboard clicking.
120 stars 211 forks source link

resolution throws off the blackbar over character name #22

Closed teehehe closed 4 years ago

teehehe commented 4 years ago

not a big deal but in the web interface depending on your resolution the bar can be off

this was 800x600

nametag

julianperrott commented 4 years ago

800x600 !

Edit the code in DoScreenshot in WowScreen.cs to change the rectangle location and size:

using (var blackPen = new SolidBrush(Color.Black)) { gr.FillRectangle(blackPen, new Rectangle(new Point(bitmap.Width / 15, bitmap.Height / 40), new Size(bitmap.Width / 15, bitmap.Height / 40))); }

https://docs.microsoft.com/en-us/dotnet/api/system.drawing.graphics.fillrectangle?view=dotnet-plat-ext-3.1

teehehe commented 4 years ago

i am running it on a vmware machine so that i can actually do other things while grinding lol

julianperrott commented 4 years ago

Just be careful if you share any screen shots / video ;)