Does anyone know how to find the exact center of the screen in x, y coordinates for scar?
Thanks for any help
Mr.klean

well, you could try this:
SCAR Code:function Midpoint(fx,fy,ex,ey : integer) : tpoint;
begin
result.x := Round((fx + ex) / 2);
result.y := Round((fy + ey) / 2);
end;
function FindMiddle : tpoint;
var
x,y : integer;
begin
GetClientDimensions(x,y);
result := Midpoint(0,0,x,y);
end;
What this does is gets the x,y coordinates of the client, and then finds the midpoint between 0,0 (the top left corner of client) and x,y (bottom right corner). And if you dont understand tpoints, just ask!
What are tpoints?
feel free o PM me or something.
The jealous temper of mankind, ever more disposed to censure than
to praise the work of others, has constantly made the pursuit of new
methods and systems no less perilous than the search after unknown
lands and seas.
They are Global constants : MSCX and MSCY (Main Screen Centre X, and Main Screen Centre Y)
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
Fakawi, he just wants mid point of the selected Screen.![]()
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)

Ill make a tut on TPoints for anyone who needs it, if there isnt already one...
EDIT: Alright, tut is in Intermediate section, for anyone who wants it![]()
r0b0t, u've played too much war games, (talking of ur sig) its m4a1 , not maverick m4a1. maverick comes for that steam didnt get the license for m4a1 carbine.
You bumped a one month old topic with a spam message?
Interested in C# and Electrical Engineering? This might interest you.
There are currently 1 users browsing this thread. (0 members and 1 guests)