antmar904 Posted October 18, 2019 Posted October 18, 2019 Hi, I have a main GUI form and when a button is pressed to perform a function I have a SplashTextOn box pop up and says "working, please wait..." but if the user moves the parent form to a different place on the screen before pressing the button the SplashTextOn window will open in the same place the main form was originally launch. What is the best way to deal with child windows (message box, popups, splashtext, etc) so they follow the parent GUI.
dmob Posted October 19, 2019 Posted October 19, 2019 I would suggest you create your own splashtext child GUI with $WS_EX_MDICHILD style or using WinAPI functions, and let Windows handle that for you.
junkew Posted October 19, 2019 Posted October 19, 2019 Just put a winmove somewhere in your main loop and set it every n seconds if needed or use adlibregister every so many seconds. $hwnd=SplashTextOn("hello world","Hello") sleep(2000) winmove($hwnd, "" ,10,10) sleep(2000) Exit FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
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