major4579 Posted May 21, 2015 Share Posted May 21, 2015 (edited) I'm having a problem using winmove with WordPerfect X5.WordPerfect X5 is on top and is the active window. I run the following codeOpt("ExpandVarStrings", 1) $WinTitle = WinGetTitle("[active]") $Err = WinMove ($WinTitle, "", 10, 10) MsgBox (0, 'Move', "$WinTitle$ $Err$")The WordPerfect window does NOT move and the msgbox shows:$WinTitle= "WordPerfect X5 - Document 1"$Err = 0, which means: "Failure: 0 if the window is not found." Any other program I've tried works fine. I then tried the following:Opt("ExpandVarStrings", 1) $WinTitle = WinGetTitle("[active]") $WinHandle = WinGetHandle( $WinTitle) MsgBox (0, 'Handle', "$WinTitle$ $WinHandle$")Again the msgbox showed $WinTitle= "WordPerfect X5 - Document 1"$WinHandle = 0So I now assume that WordPerfect does NOT respond to the standard windows commands. Any suggestions of a work-around, or am I missing something?Thanks,Marc Edited May 21, 2015 by major4579 modified code segments Link to comment Share on other sites More sharing options...
MikahS Posted May 21, 2015 Share Posted May 21, 2015 Try putting #RequireAdminat the top, and see if that has any effect. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
major4579 Posted May 29, 2015 Author Share Posted May 29, 2015 #RequireAdmin doesn't make any difference. Link to comment Share on other sites More sharing options...
jguinch Posted May 29, 2015 Share Posted May 29, 2015 Does WinSetState have effect on it ?WinSetState ($WinTitle, "text",@SW_RESTORE ) ; or @SW_MINIMIZE for exampleElse, you can try with _WinAPI_SetWindowPos... Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
major4579 Posted May 31, 2015 Author Share Posted May 31, 2015 I haven't tried WinSetState, as the WordPerfect window is active, maximized and on top when I run the script. 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