I hate asking basic questions, however I have spent 2 days and hours reading the forums and trying everything I can think of and I am stuck. This whittled down simple winmove script works in XP and Win7 but does not work in desktop windows 8. Any hints?
[ autoit ]
;#RequireAdmin ;<-- makes no difference #AutoIt3Wrapper_run_debug_mode=Y ; use this to debug in console window <--- LOOK Opt("WinTitleMatchMode", -2) ;nocase partial match okay $pgm_title = "Run" Send("#r") ;open run box ;wait for it WinWait($pgm_title) ;partial match If Not WinActive($pgm_title) Then WinActivate($pgm_title) WinWaitActive($pgm_title) ;WinSetState($pgm_title, "", @SW_SHOW) ;make sure we can see it - makes no difference MsgBox(0,"Debug","Ready to move.") $hl = WinMove($pgm_title, "", 0, 0) ;WinSetState($pgm_title, "", @SW_ENABLE) ;enable it - makes no difference ;WinSetState($pgm_title, "", @SW_SHOW) ;make sure we can see it - makes no difference MsgBox(0,"Debug","Should be at 0,0 and handle = " & $hl & " 0=not found") $hl = WinMove($pgm_title, "", 100, 100, Default, Default, 100) ;move slowly keep current size ;WinSetState($pgm_title, "", @SW_ENABLE) ;enable it - makes no difference ;WinSetState($pgm_title, "", @SW_SHOW) ;make sure we can see it - makes no difference MsgBox(0,"Debug","Should be at 100,100 and handle = " & $hl & " 0=not found") MsgBox(0,"Debug","Move completed.") Send("{ESC}") ;be polite and close run box Exit #cs Works on XP Pro SP3 x32 (x86) Works on Win 7 Pro x32 (x86) Fails in Windows 8 Pro x64 desktop mode #RequireAdmin ;<-- makes no difference all versions seem to wait a time for the move but do NOT actually move the box #ce