GetWindowSize

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
mafiamoe
Junior Coder
Posts: 38
Joined: Thu Jul 06, 2006 8:28 am

GetWindowSize

Post by mafiamoe » Sat Aug 09, 2008 7:30 pm

I am looking to get the size of a window without it needing to be the active window. GetActiveWindow is the only thing I could find that gets the window size, but that requires the window to be on top. GetWindowPos doesn't require the window to be on top, but doesn't get the window size.

I will be looking around for some VB that does this, but I think a 'GetWindowSize' command would be a good addition to MS, or just adding W,H variables to 'GetWindowPos'.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sun Aug 10, 2008 8:26 am

I'll add GetWindowSize to the wish list. In the mean time, you could focus the window, use GetActiveWindow and then put focus back again.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

mafiamoe
Junior Coder
Posts: 38
Joined: Thu Jul 06, 2006 8:28 am

Post by mafiamoe » Thu Oct 30, 2008 12:14 am

I see this has been added to MS 11 beta. Thank you :)

Now if only the '/NOSYSTRAY' worked in the beta versions :-P

Great job on the fast turn around and the 11 features are really nice. I'm a very happy customer.

mafiamoe
Junior Coder
Posts: 38
Joined: Thu Jul 06, 2006 8:28 am

Post by mafiamoe » Sat Nov 01, 2008 9:11 pm

I see you looked into the '/NOSYSTRAY' issue, but i should have clarified before I commented on that. That issue arises when compiling, so that when the complied program is run, it gives an error message 'Line: 0 Error with Let>/NOSYS@RAY, = missing' even though the include parameters have '/NOSYSTRAY' in it. Could this be due to the switch from .txt to unicode?

*edit*
It seems to happen to everything set in the 'Include parameters' line (/HIDE, /NOSTOPKEY, etc.).

mafiamoe
Junior Coder
Posts: 38
Joined: Thu Jul 06, 2006 8:28 am

Post by mafiamoe » Mon Nov 03, 2008 10:26 pm

*Wonders if the issue in MS11 with running a compiled macro showing the MS icon and 'Shift+Esc to stop' in the taskbar will be fixed as well. (Instead of the icon set to be used in the 'compile' window and the name given to the window in the code. eg., Window pops up showing the correct icon and name, but the tab in the taskbar shows the MS icon and 'Shift+Esc to stop')*

*Also wonders if the great devs might also fix the 'find' feature closing after hitting the 'OK' button once.*

*Starts to wonder if mtettmar wants to strangle him for finding issues in the nice program and pointing them out in a random spot on the forums.*

:P

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Nov 03, 2008 10:30 pm

*wonders why these problems aren't being reported in the beta forum so that we can fix them. We aren't psychic.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Nov 03, 2008 10:37 pm

Don't forget you can change the APP TITLE (what appears in the task bar) with:

LET>APP_TITLE=whatever
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

mafiamoe
Junior Coder
Posts: 38
Joined: Thu Jul 06, 2006 8:28 am

Post by mafiamoe » Tue Nov 04, 2008 1:11 am

mtettmar wrote:*wonders why these problems aren't being reported in the beta forum so that we can fix them. We aren't psychic.
Will do in the future.

<---- didn't know :oops:

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Nov 04, 2008 5:20 pm

*Also wonders if the great devs might also fix the 'find' feature closing after hitting the 'OK' button once.*
Can you elaborate on this? Which Find feature are you referring to?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts