MoveWindow in Windows 10

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

MoveWindow in Windows 10

Post by fightcancer » Thu Sep 22, 2016 1:23 am

MoveWindow doesn't work with several windows in Windows 10. I'd never noticed it in Windows 7 or before. For example, this macro does nothing except setting focus to the TM window.

Code: Select all

SetFocus>Task Manager
MoveWindow>Task Manager,0,0
What's up with that??

Neither WIN_USEHANDLE nor WF_TYPE help. Thanks!

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

Re: MoveWindow in Windows 10

Post by Marcus Tettmar » Thu Sep 22, 2016 9:55 am

Well for a start Task Manager is an admin process, so that's only going to work if you run Macro Scheduler as admin. That will have also been the case with Windows 7.

I have no problem using MoveWindow under Windows 10:

This moves Notepad:
MoveWindow>Untitled - Notepad,10,10

And if I start Macro Scheduler as admin this moves Task Manager:
MoveWindow>Task Manager,10,10

But as noted this will NOT work when running Macro Scheduler as standard user because Task Manager is running in a protected admin process. If you need to interact with admin apps then Macro Scheduler also needs to be admin:
http://help.mjtnet.com/article/11-contr ... n-as-admin
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Re: MoveWindow in Windows 10

Post by fightcancer » Thu Sep 22, 2016 1:12 pm

Thank you so much MT!

Is there any way to have MS always run as Admin?

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

Re: MoveWindow in Windows 10

Post by Marcus Tettmar » Thu Sep 22, 2016 1:15 pm

Yes, set the option in the shortcut. It's a Windows thing. Same for other apps.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Re: MoveWindow in Windows 10

Post by fightcancer » Thu Sep 22, 2016 1:47 pm

Thanks so much!

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