Jump to content
BryceTheCoder

Not moving to top-left of window?

Recommended Posts

Hello, this is what I'm trying to do (for testing purposes):

  Wnds := FindWindowsEx(GetDesktopWindow, 'NotSMART', '', False, False, True);
 if Length(Wnds) > 0 then
 begin
   ActivateWindow(Wnds[0]);
   MMouse(0,0,0,0);
 end else
 begin
   writeln('Did not find window.');
 end;

 

 

It finds that actual windows of "NotSMART" but moves the 0,0 of the desktop and not the actual "NotSMART" window? Can someone help me with this, thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...