Wyngnut Posted September 8, 2022 Share Posted September 8, 2022 Hi, I am writing a GUI and I am having an issue with the following code block. Some machines the Close button doesn't work at all, some machines the button is intermittent (it is unresponsive once in a while). Sometimes I have to click outside the window the back on the close and it is unresponsive. Am I doing something wrong? Thanks! Chris expandcollapse popup#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.5 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate( "", 300, 500, 10, 10 ) $Label1 = GUICtrlCreateLabel( "", 10, 20, 240, 200 ) $Label2 = GUICtrlCreateLabel( "", 10, 70, 240, 200 ) $Label3 = GUICtrlCreateLabel( "", 10, 100, 240, 200 ) $Label4 = GUICtrlCreateLabel( "", 10, 130, 240, 200 ) $Label5 = GUICtrlCreateLabel( "", 10, 160, 240, 200 ) $Label6 = GUICtrlCreateLabel( "", 10, 190, 240, 200 ) $Label7 = GUICtrlCreateLabel( "", 10, 220, 240, 200 ) $Label8 = GUICtrlCreateLabel( "", 10, 330, 240, 200 ) $ButtonClose = GUICtrlCreateButton( "Close", 210, 470, 85, 25 ) GUISetState( @SW_SHOW, $Form1 ) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ButtonClose Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
Nine Posted September 8, 2022 Share Posted September 8, 2022 (edited) It is because your last label is partly overlapping your button... Edited September 8, 2022 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Wyngnut Posted September 8, 2022 Author Share Posted September 8, 2022 Thank you! 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