Thanks to Parksie from my previous thread, I was able to obtain the X and Y of the specified window. Now, with the X and Y, I want change the position of the window using SetWindowPos:

Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

I looked through the API Text Viewer and this is the only declaration I could think of to perform this task. I understand that in the 1st argument I must place the window's handle, but I'm sure what to put in the third. The 4th and 5th i guess are the X and Y and 6th and 7th are the new X and Y. The flags, I understand, can just be placed with a value of 0&. For the 2nd argument... I tried DIMming a long and just placing it there and testing it... but the window just resizes itself into different positions depending on where on the screen I have it. Can someone please tell me if I'm using the call correctly or if this call doesn't perform this function, and if it doesn't, then what call will? Please help.