Tuokki Posted March 11, 2014 Share Posted March 11, 2014 (edited) Just migrated from XP to Win7 and my scripts can't move windows owned by RunAccess.exe / MSACCESS.EXE. Notepad, Firefox etc move/resize without any problem. MsgBox(0,"",WinMove ("Tele On","",200,200)) It returns the handle, but window is not moving. Tested also with "#AutoIt3Wrapper_UseX64=y/n" options, no help. BTW: WinActivate works... Any ideas? Window info: >>>> Window <<<< Title: Tele On-Site(7) 3,0746 - [:] Class: OMain Position: 599, 142 Size: 1126, 866 Style: 0x16CF0000 ExStyle: 0x00000100 Handle: 0x0005033C >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<< Position: 1038, 158 Cursor ID: 13 Color: 0x5782C1 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< MsoDockLeft MsoDockRight MsoDockTop mainMenu32 SoSMAIN MsoDockBottom : >>>> Hidden Text <<<< Menyrad : Databas (Access 2002-filformat) MSO Generic Control Container usys_unload : Formulär Edited March 11, 2014 by Tuokki Link to comment Share on other sites More sharing options...
jguinch Posted March 11, 2014 Share Posted March 11, 2014 (edited) Maybe the Window is maximized, so it cannot move. You can put WinSetState("Tele On","", @SW_RESTORE) before moving. Edited March 11, 2014 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
Tuokki Posted March 12, 2014 Author Share Posted March 12, 2014 (edited) Window was in normal state, tried minimized and maximized also... Just tested with WinSetState and it also has no effect, but still returns "1" (Success) WinGetState returns 7, so: Window exists + Window is visible + Window is enabled. WinActivate works.. WinGetTitle works.. WinWaitActive works.. WinActivate + WinMove, still not moving. Edit: WinGetPos does not return anything WinClose has no effect (returns 1=>success). Edited March 12, 2014 by Tuokki Link to comment Share on other sites More sharing options...
Solution Tuokki Posted March 13, 2014 Author Solution Share Posted March 13, 2014 Fixed! Problem was in the command line, changed "runaccess.exe /excl /runtime /profile "Sos2000.........." to "msaccess.exe /excl /runtime /profile "Sos2000.........." Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now