AutoDEV Posted March 21 Share Posted March 21 Hello. I try to change windows size but it not working and be state center and not use my size. I have this code : $windows = WinActivate("[TITLE:MyApp; CLASS:MyAppClass]") Global $windows1 = WinMove($windows, "", 0, 0, 1024, 768) Can you help me please. For resize i not have error. Link to comment Share on other sites More sharing options...
Zedna Posted March 21 Share Posted March 21 (edited) Check the result of WinActivate(), it may return 0 if window is not found ... Edited March 21 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
AutoDEV Posted March 21 Author Share Posted March 21 HII;; I have alrerady say. Don't have errerur 0 Musashi 1 Link to comment Share on other sites More sharing options...
Musashi Posted March 22 Share Posted March 22 59 minutes ago, AutoDEV said: I have alrerady say. Don't have errerur 0 Check : https://www.autoitscript.com/autoit3/docs/functions/WinActivate.htm The help clearly states : Return Value Success: the handle of the window. Failure: 0 if window is not found or cannot be activated. By the way: It is a mystery to me how you will ever create an operable script if you permanently ignore all hints from renowned users. "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
AutoDEV Posted March 22 Author Share Posted March 22 THX but all is ok. I show windows change position and after 1ms be centered. 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