richardss Posted Wednesday at 10:47 AM Posted Wednesday at 10:47 AM I recently put a msgbox in my script with yes no buttons and wanted to set yes as a default ..i found this informaion Hidden/default-button flags 256 → Default button = 1st button 512 → Default button = 2nd button 768 → Default button = 3rd button ⚠️ These aren’t documented in the help file for MsgBox, but they work because AutoIt passes them through to the underlying Windows API. in the msgbox(4 + 256...) toset a yes button
richardss Posted Wednesday at 11:03 AM Author Posted Wednesday at 11:03 AM sorry my bad this is the correct one 0 → Default button = 1st button 256 → Default button = 2nd button 512 → Default button = 3rd button they have to be tested sometimes they may not work
Nine Posted Wednesday at 12:14 PM Posted Wednesday at 12:14 PM As per help file of MsgBox : Quote Constant Name decimal flag Default-related Result hexadecimal flag $MB_DEFBUTTON1 0 First button is default button 0x0 $MB_DEFBUTTON2 256 Second button is default button 0x100 $MB_DEFBUTTON3 512 Third button is default button 0x200 $MB_DEFBUTTON4 768 Fourth button is default button 0x300 “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
argumentum Posted Wednesday at 02:49 PM Posted Wednesday at 02:49 PM 3 hours ago, richardss said: sorry my bad this is the correct one 2 hours ago, Nine said: As per help file of MsgBox : 3 hours ago, richardss said: they have to be tested sometimes they may not work I've never seen them not work. 🤔 Can you post an example so that I can run it 1000 times ( I'll automate that part ) to see if it fails at any moment ? Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
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