AutoDEV Posted March 21 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.
Zedna Posted March 21 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
AutoDEV Posted March 21 Author Posted March 21 HII;; I have alrerady say. Don't have errerur 0 Musashi 1
Musashi Posted March 22 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."
AutoDEV Posted March 22 Author Posted March 22 THX but all is ok. I show windows change position and after 1ms be centered.
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