AutoDEV Posted March 21, 2024 Posted March 21, 2024 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, 2024 Posted March 21, 2024 (edited) Check the result of WinActivate(), it may return 0 if window is not found ... Edited March 21, 2024 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
AutoDEV Posted March 21, 2024 Author Posted March 21, 2024 HII;; I have alrerady say. Don't have errerur 0
Guest Posted March 22, 2024 Posted March 22, 2024 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.
AutoDEV Posted March 22, 2024 Author Posted March 22, 2024 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