What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [HELP] Get cursor position (X, Y) & set window position (X, Y)

Pages: (2): « First « 1 [ 2 ] Last »
[HELP] Get cursor position (X, Y) & set window position (X, Y)
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: [HELP] Get cursor position (X, Y) & set window position (X, Y)
Right... Your piece of code looks quite.. advanced and difficult to me... I have learnt, though, that Plus! places the command helper at one specific position (not next to the cursor), so in fact I only have to get the width and height of the inpt area..

But then there's part 2 of my question: how to alter a window's position?
05-15-2008 08:07 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [HELP] Get cursor position (X, Y) & set window position (X, Y)
What you are trying to do is going to be imperfect at best because it is impossible to get the exact position of the controls unless you use the MSNCore.dll file to read the DirectUIHWND control to find the exact positions.
05-15-2008 09:16 PM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: [HELP] Get cursor position (X, Y) & set window position (X, Y)
Okay.. I am going to try and use you code anyway.. But I need some function to set a window's position. I know it's in some system DLL, because I have once read about it, but I just don't know where to find it. Is there anyone who does?
05-16-2008 02:55 PM
Profile PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: [HELP] Get cursor position (X, Y) & set window position (X, Y)
You are talking about MoveWindow ;)
Use it like
Interop.Call('user32', 'MoveWindow', /*....its parameters here */ );
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
05-16-2008 03:10 PM
Profile E-Mail PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: [HELP] Get cursor position (X, Y) & set window position (X, Y)
Yes :D Thanks lads :D

EDIT::

I already knew how to use it (doesn't happen ofetn :P ), but thanks anyway ;)

This post was edited on 05-16-2008 at 07:44 PM by SmokingCookie.
05-16-2008 03:13 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On