## Recommended Posts

I don't know why there are many external files that are not existed on the pre-written functions of AutoIt software..

The examples in this page are telling to include "MsgBoxConstants.au3" but I doesn't have one:

http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm

Edited by Servant

##### Share on other sites

Servant,

That file, along with a whole raft of other ###Constants files, was introduced with the new 3.3.10.# release - the idea was to reduce the size of the individual #include files by splitting the previous larger ones. So download and install the latest release (and perhaps the latest Beta) and these files will be available to you.

M23

• 1

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

##### Share on other sites

If you don't know what version of AutoIt you have, then use this >>

MsgBox(4096, '', @AutoItVersion) ; 4096 = $MB_SYSTEMMODAL #### Share this post ##### Link to post ##### Share on other sites Servant, That file, along with a whole raft of other ###Constants files, was introduced with the new 3.3.10.# release - the idea was to reduce the size of the individual #include files by splitting the previous larger ones. So download and install the latest release (and perhaps the latest Beta) and these files will be available to you. M23 Is there a way to update my AutoIt software? If you don't know what version of AutoIt you have, then use this >> MsgBox(4096, '', @AutoItVersion) ; 4096 =$MB_SYSTEMMODAL

My version is 3.3.8.1 and as far as I know, I'd just reinstall my AutoIt a few months ago..

##### Share on other sites

My AutoIt has been updated!

##### Share on other sites

Just want to remind you to check the history and script breaking changes before continuing forth.

Second that!

##### Share on other sites

Here a small script to show installed and available AutoIt versions:

; AutoitVersion.au3
#include <Inet.au3>
#include <string.au3>
$pfile = StringTrimLeft(StringTrimRight(RegRead("HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Run\Command", ""), 9), 1)$bfile = _StringInsert($pfile, "\\beta", -12)$pver = FileGetVersion($pfile)$bver = FileGetVersion($bfile) If @error Then$bver = "none"
$a = _StringBetween(_INetGetSource("http://www.autoitscript.com/site/autoit/downloads/"), "Latest version:</strong> v", "<")$lpver = $a[0]$a = _StringBetween(_INetGetSource("http://www.autoitscript.com/autoit3/files/beta/autoit"), "autoit-v", "-beta-setup.exe")
If @error Then
$lbver = "none" Else$lbver = $a[UBound($a) - 1]
EndIf
;~ $lpver = "3.3.10.3" ; for testing ;~$lbver = "3.3.11.3"  ; for testing
$text = "AutoIt Versions" & @LF & @LF & "Installed" & @LF & "Prod: " &$pver & @LF & "Beta: " & $bver & @LF & @LF$MsgMod = 0
If ($pver =$lpver) And ($bver =$lbver) Then
$text &= "No newer versions available." Else$MsgMod = 48
$text &= "Newer version to download" & @LF If Not ($pver = $lpver) Then$text &= "Prod: " & $lpver & @LF If Not ($bver = $lbver) Then$text &= "Beta: " & $lbver & @LF EndIf MsgBox($MsgMod + 4096, @ScriptName, $text) My UDFs, Abbrevs and Snippets If you like my post, just click the like button #### Share this post ##### Link to post ##### Share on other sites There is an online ini file if I remember correctly, where beta and stable versions are stored. Er...I guess you used 4096 because I did, but I only used it because I knew the OP didn't have MsgBoxConstants.au3, so$MB_SYSTEMMODAL wouldn't have been found.

Edited by guinness

## Create an account

Register a new account

• ### Similar Content

• By FrancescoDiMuro
Good evening everyone
First, I want to apologize with you for the title not very clear, but I thought a little bit on which title to set at the thread, and this is the one that came in mind.
Now, let me explain what I'm trying to understand.

I am making an application ( with n clients ), with an SQLite Database, which has a Main form, and n sub-forms...
Since these sub-forms are called several times, because they are used to add or update records to the Database, I put the code that generates the GUI of these sub-forms in Functions.
There are two sub-forms which are "treated" as two main forms, since even them have n sub-forms, which perform various tasks.
Where am I stucked?

For the Main form I created a Status Bar, in order to display messages ( add/delete/update/search results ), and it works perfectly with all the forms which don't have other sub-forms.
For the two forms, which indeed have n sub-forms, I created two separated Status Bars, which are (re)created everytime I call the function that then displays the form.
Practically, I can't set icons to these two Status Bars, and I don't know why.
I'm really sorry that I don't feel clear enough, so, here you are an example of what I am saying.
I recreated exactly what my script does:
#include <GuiButton.au3> #include <GUIConstantsEx.au3> #include <GuiStatusBar.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) Global $frmSubForm, _$txtSubFormField, _ $sbSubFormStatusBar, _$objSB_IconError = _WinAPI_LoadShell32Icon(109), _ $objSB_IconInformation = _WinAPI_LoadShell32Icon(277) #Region ### START Koda GUI section ### Form=$frmMainForm = GUICreate("Main Form", 300, 300, -1, -1) GUISetOnEvent($GUI_EVENT_CLOSE, "ExitApplication")$sbMainStatusBar = _GUICtrlStatusBar_Create($frmMainForm)$btnCreateSubForm = GUICtrlCreateButton("Create Sub Form", 105, 110, 75, 41, BitOR($BS_CENTER,$BS_VCENTER,$BS_MULTILINE)) GUICtrlSetOnEvent(-1, "GenerateSubForm") GUICtrlSetFont(-1, 10, 400, 0, "Arial") _GUICtrlStatusBar_SetSimple($sbMainStatusBar) _GUICtrlStatusBar_SetText($sbMainStatusBar, "") GUISetState(@SW_SHOW,$frmMainForm) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func ExitApplication() Exit EndFunc Func GenerateSubForm() #Region ### START Koda GUI section ### Form= $frmSubForm = GUICreate("Sub-Form", 300, 300, -1, -1, -1, -1,$frmMainForm) GUISetOnEvent($GUI_EVENT_CLOSE, "DeleteSubForm")$txtSubFormField = GUICtrlCreateInput("", 0, 0, 100, 20) $btnCheckSubFormField = GUICtrlCreateButton("Check Field", 105, 110, 75, 41, BitOR($BS_CENTER,$BS_VCENTER,$BS_MULTILINE)) GUICtrlSetOnEvent(-1, "CheckSubFormField") GUICtrlSetFont(-1, 10, 400, 0, "Arial") $sbSubFormStatusBar = _GUICtrlStatusBar_Create($frmSubForm) _GUICtrlStatusBar_SetSimple($sbSubFormStatusBar) _GUICtrlStatusBar_SetText($sbSubFormStatusBar, "") GUISetState(@SW_SHOW, $frmSubForm) GUISetState(@SW_DISABLE,$frmMainForm) #EndRegion ### END Koda GUI section ### EndFunc Func DeleteSubForm() ; Declared Globally => $frmSubForm GUIDelete($frmSubForm) GUISetState(@SW_ENABLE, $frmMainForm) EndFunc Func WriteToStatusBar($sbStatusBar, $objSB_Icon,$strText) _GUICtrlStatusBar_SetIcon($sbStatusBar, 0,$objSB_Icon) _GUICtrlStatusBar_SetText($sbStatusBar,$strText) ConsoleWrite("Icon Handle: " & $objSB_Icon & @CRLF) EndFunc Func CheckSubFormField() ; Declared Globally =>$txtSubFormField If GUICtrlRead($txtSubFormField) = "" Then ; Declared Globally =>$sbStatusBar WriteToStatusBar($sbSubFormStatusBar,$objSB_IconError, "Field NOK.") Else WriteToStatusBar($sbSubFormStatusBar,$objSB_IconInformation, "Field OK.") EndIf EndFunc The text is set, but icon is not.
Could someone please tell me why?

Best Regards.
• By Reziskonh
Hi, everybody
I look for GUI whose behavior similar to the message of an email client or antivirus
In other words:
Any PC screen able to calculate the size
To consider the Task bar size
To find the lower corner on the right/below and to nestle on it

Notes:
In GUI the GUICtrlCreateEdit field (as option) - that can be received and displayed through variable information
Thanks a lot
PS
I use the translator, excuse if something is not clear

• By VollachR
Hi,
I'd like to show a progress bar for an operation performed by an external program my script is running silently, I want to show it in a GUI I created using the GUICtrlCreateProgress but I have no idea how to do it.
The important thing to point out is that there's no way of knowing how long the external program will run, as it is a file splitter and it depends on the size of file it splits and the split parts size.
Can someone point me in the right direction or give me an example how to do so?
This is my RunWait command:
RunWait($MYFILES1 & '\fsplit.exe -split ' &$Size & ' mb ' & $File & " -f " &$File & "." & \$extension) It uses multiple variables declared and set earlier in the script, how will I got about having the progress of that command shown using GUICtrlCreateProgress ? Is it possible?
Thank you.
• By Spartan117
Hi everyone,
I am wondering if is there any autoit function that make the program ignore errors and move on and resume correct lines?
Thank you
• By nacerbaaziz
Hello my friends
I have an inquiry and I hope to find the answer here
I want to create a graphical user interface
but I want to hide the system menu
Is this possible?
If is possible please give me how to do that