if((int)Event.current.mousePosition.x == (int)windowRect.x)
{
print("X");
}
this will only print(“X”) when mousePosition.x is * 2 of windowRect.x
so for x to be printed. when windowRect.x = 100 mousePosition.x must = 200
while the solution is straight forward i am wondering if i am using the systems in a manner that they were not deigned for,
help please :?
First off, welcome to the forums! 
Second, can you tell us exactly what your variable windowRect is? As it is we have no insight as to how you populate that variable so it’s hard to explain things.
Third, when you post code use the Code button when writing your reply, or manually wrap it in a code block ([ code ]…[ /code ], without the spaces) for better formatting. I’ll edit your post so you can see that as an example.
Thx!!
private Rect windowRect = new Rect(100f,200f,200f,50f);
void OnGUI()
{
GUI.Box(new Rect(10f,10f,300f,35f),"x " + windowRect.x + " || xmax" + windowRect.xMax + "\ny " + windowRect.y + "|| ymax " + windowRect.yMax);
GUILayout.Space(20);
GUI.Box(new Rect(10f,60f,300f,20f), "mouse x " + Event.current.mousePosition.x + "|| mouse y " + Event.current.mousePosition.y);
windowRect = GUI.Window (0, windowRect, ScalingWindow, "Hey there!");
}
void ScalingWindow(int id)
{
if((int)Event.current.mousePosition.x == (int)windowRect.x)
{
print("X");
}
if((int)Event.current.mousePosition.y == (int)windowRect.y)
{
print("Y");
}
GUI.DragWindow();
}