Search the Community

Showing results for tags 'msgbox'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Chat
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum
  • AutoIt

Calendars

  • Community Calendar

Found 32 results

  1. I have autoit script like this : winActivate ("BillReceipt") ControlClick ( "BillReceipt", "", "[NAME:winviewer]", "right") Send ( "{ENTER}") WinWait ("Print") ControlClick ("Print", "", "[CLASS:Button; INSTANCE:13]") Winwait ("Save As") WinActivate ("Save As") Send ("{TAB 5} {Backspace} ^v {Enter}") I need Saved successfully msgbox with file name as i saved like Filename.extension (Example = test.pdf is saved successfull) Please Help
  2. hi guys i want avoid to multiple MsgBox by hold Hotkey "]" in my script #include <GuiConstantsEx.au3> #include <Windowsconstants.au3> #include <SendMessage.au3> #include <WinAPI.au3> ;~ HotKeySet("{[}", "_boxminus") HotKeySet("{]}", "_boxplus") HotKeySet("{ESC}", "On_Exit") $hGUI = GUICreate("", 100, 100, -1, -1, $WS_POPUP, BitOr($WS_EX_LAYERED, $WS_EX_COMPOSITED, $WS_EX_TOPMOST)) GUISetBkColor(0x00FF00) GuiCtrlCreateLabel("", 3, 3, 94, 94) GUICtrlSetBkColor(-1, 0xABCDEF) GUICtrlSetResizing(-1, $GUI_DOCKBORDERS) GUISetState() _WinAPI_SetLayeredWindowAttributes($hGui, 0xABCDEF) $box_range = 100 While 1 $pos = MouseGetPos() WinMove($hGUI, "", $pos[0] - ($box_range / 2), $pos[1] - ($box_range / 2), $box_range, $box_range) WEnd ;~ Func _boxminus() ;~ If $box_range >= 30 Then $box_range = $box_range - 10 ;~ If $box_range < 30 Then $box_range = $box_range - 1 ;~ EndFunc Func _boxplus() If $box_range < 200 Then $box_range = $box_range + 10 Else MsgBox(0,"ERROR", "Maximum size already exist") EndIf EndFunc Func On_Exit() Exit EndFunc i wish after i get first MsgBox another gonna replaced with first one or just cancel in and apeear again how can i make it right ???
  3. Hello, I'm trying to make it so that when a message box pops up that the GUI will be unresponsive until that message box has been closed. From reading through the help the closest thing I can find is the WinWaitClose function, however this doesn't work fully as desired. If user tries to click on GUI the actions are more just waiting for the message box to close, so that once it closes everything happens at once. I want it so that the GUI is completely unusable until message box is closed. Below is test code to demonstrate the problem and help explain what I want. Any advice on this? #include <GUIConstantsEx.au3> Example() Func Example() ; Create a GUI with various controls. Local $hGUI = GUICreate("Example") Local $idOK = GUICtrlCreateButton("OK", 310, 370, 85, 25) local $but = GUICtrlCreateButton("Hello", 150,150,85,25) ; Display the GUI. GUISetState(@SW_SHOW, $hGUI) MsgBox( 262144,"Message","Try hitting the hello button several times,without closing this window. Now close this window and see how script wasn't restricted it just was waiting and storing the instructions") WinWaitClose("Message") While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $idOK Exit case $but MsgBox(0,"","Hello") EndSwitch WEnd ; Delete the previous GUI and all controls. GUIDelete($hGUI) EndFunc ;==>Example
  4. Hello ! I'm making a little script with only a tray option, no GUI. And i would like to know if someone created a function to set a personalized icon in top-left corner of the MsgBox and/or InputBox... -hcI
  5. I am a little confused and not sure what I am doing wrong. I am trying to get a OK and Cancel button that is always on top. $MB_OKCANCEL 1 OK and Cancel $MB_TOPMOST 262144 MsgBox() has top-most attribute set But when I try to run this code. $Msg = MsgBox(1 & 262144, "Registration", "Would you like to continue?") I get this.
  6. I have a simple msgbox function that I need to use in multiple places, but have different outcomes. For example, in one location if the left button was pressed I need it to write a one of the reg values. How do I accomplish this? #include <GUIConstantsEx.au3> Opt('MustDeclareVars', 1) Local $reg0 = RegWrite("HKLM\SOFTWARE\Wow6432Node\Newton\Default\Servers", "WRKSTN_ID", "REG_DWORD", "0") Local $reg1 = RegWrite("HKLM\SOFTWARE\Wow6432Node\Newton\Default\Servers", "WRKSTN_ID", "REG_DWORD", "1") Local $reg2 = RegWrite("HKLM\SOFTWARE\Wow6432Node\Newton\Default\Servers", "WRKSTN_ID", "REG_DWORD", "2") Local $reg3 = RegWrite("HKLM\SOFTWARE\Wow6432Node\Newton\Default\Servers", "WRKSTN_ID", "REG_DWORD", "3") Local $reg4 = RegWrite("HKLM\SOFTWARE\Wow6432Node\Newton\Default\Servers", "WRKSTN_ID", "REG_DWORD", "4") MainGUI() Func MainGUI() Local $Left, $Right, $msg GUICreate("Light") Opt("GUICoordMode", 2) $Left = GUICtrlCreateButton("Left", 10, 30, 50) $Right = GUICtrlCreateButton("Right", 0, -1) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Left ; write reg value Case $msg = $Right ; write reg value EndSelect WEnd EndFunc
  7. The MsgBox() function is fine if your messages are very short. What are the AutoI alternatives if you need to display larger messages? Is there a lager dialog available, or do I need to write something from scratch? Thanks
  8. Hi all, Can this function be modified to support @CRLF in the MsgBox's text? ; Move Message Box ; Author - herewasplato _MoveMsgBox(0, "testTitle", "testText", 0, 10) Func _MoveMsgBox($MBFlag, $MBTitle, $MBText, $x, $y) Local $file = FileOpen(EnvGet("temp") & "\MoveMB.au3", 2) If $file = -1 Then Return;if error, give up on the move Local $line1 = 'AutoItSetOption(' & '"WinWaitDelay", 0' & ')' Local $line2 = 'WinWait("' & $MBTitle & '", "' & $MBText & '")' Local $line3 = 'WinMove("' & $MBTitle & '", "' & $MBText & '"' & ', ' & $x & ', ' & $y & ')' FileWrite($file, $line1 & @CRLF & $line2 & @CRLF & $line3) FileClose($file) Run(@AutoItExe & " /AutoIt3ExecuteScript " & EnvGet("temp") & "\MoveMB.au3") MsgBox($MBFlag, $MBTitle, $MBText) FileDelete(EnvGet("temp") & "\MoveMB.au3") EndFunc;==>_MoveMsgBox Thanks
  9. I'm unable to display a message box from a compiled AutoIt alerting script that is executed from a service (also a compiled AutoIt script). I used $MB_SERVICE_NOTIFICATION, but the dialog doesn't appear and the alerting script continues as if the OK button had been clicked. The service script uses ShellExecute() to launch the alerter (as opposed to a *Wait() call) so it can continue processing. Note that we used Windows Service Wrapper (winsw) to turn the compiled script into a service but haven't identified any issues from it. I tried the one-line execute example given in this thread: Message box timeout not working ; 2097152 = $MB_SERVICE_NOTIFICATION $iPID = Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(2097152, ''' & $sTitle & ''', ''' & $sText & ''')"') without the timeout code, but no luck: the MsgBox does not appear. (In any case, we don't have AutoIt installed on the target system, so it would have to be converted into a .exe file.) We're developing and unit-testing on Win 7 Enterprise; the target OS is Win 7 Pro, and the AutoIt version is 3.3.14.2. Any solutions or suggestions will be much appreciated. Code fragments are below. Thanks. The following code fragment is the relevant portion of the alerting script that displays the MsgBox: [...] ; Alert the operator that there's a problem with the recording $sFeed = $aRecInfo[6] $sSession = $aRecInfo[2] $sTemp = $aRecInfo[4] $sDate = _FormatDate($sTemp) $sTemp = $aRecInfo[5] $sTime = _FormatTime($sTemp) _Debug2("Inactive recording feed " & $sFeed & ", Session=" & $sSession & ", Start Date/Time=" & _ $sDate & " " & $sTime) $sErrorMsg = "ERROR: Feed " & $sFeed & " for session " & $sSession & " stopped, notify reporter immediately" $iMbFlag = $MB_SERVICE_NOTIFICATION _Debug1("Displaying MsgBox...") MsgBox($iMbFlag, "INTERVIEW RECORDING ERROR", $sErrorMsg) _Debug1("Returned from MsgBox") [...] And the calling code fragment in the service is: ; Walk through the array backwards so we don't end up evaluating an index that doesn't exist For $iIndex = UBound($aFeedArray)-1 To 0 Step -1 [...] ; Before timing-out the feed, check for a .mpgpart file (=> feed may still be recording) $sDirPath = $sDirTemp & "\" & $sFeedTemp & "\" & $aFeedArray[$iIndex][$cSessionName] $sMpgPartName = GetMpgPart($sDirPath, $sFeedTemp) If StringLen($sMpgPartName) > 0 Then ; If .mpgpart file name hasn't changed in more than $iDeadFeedTime seconds, then declare feed dead ; ========v Test code to force error v======== $sMpgPartName = $aFeedArray[$iIndex][$cMpgPartName] ; ========^ Test code to force error ^======== _Debug2("Just set $sMpgPartName to '" & $sMpgPartName & "', should fall into dead-feed code") If $sMpgPartName = $aFeedArray[$iIndex][$cMpgPartName] Then ; Name is same => feed is dead: alert the operator and delete the feed w/out stop-processing _Debug2("Feed " & $sFeedTemp & " looks dead -- alerting the operator") _Debug2("Delete GUID " & $aFeedArray[$iIndex][$cGUID]) ; ======== Alert app execution ======== ; $sAlertApp = @ScriptDir & "\" & "RecAlert.exe" $iChildPid = ShellExecute($sAlertApp, $sDirPath, "", "open") _Debug2("Alert app: ShellExecute(): " & _RetStr($iChildPid, @error, @extended)) _ArrayDelete($aFeedArray, $iIndex) Else ; Otherwise, the .mpgpart name has changed, reset the timer, store the name, and continue _Debug2("Feed " & $sFeedTemp & " timeout, but has new .mpgpart file -- continuing") $aFeedArray[$iIndex][$cDateTime] = TimerInit() $aFeedArray[$iIndex][$cMpgPartName] = $sMpgPartName EndIf ContinueLoop EndIf [...] Next
  10. i have this code running but it just would not start the code: Local $rndSleep = Int (Random(180000,240000,1000)) MsgBox($MB_SYSTEMMODAL, "NaaaNuuu", "This message box will show the sleeptime after closing the tabs, you got " & $rndSleep & " seconds left.", $rndSleep) here is the error it shows me: "C:\Users\numan\Desktop\scipiie.au3" (23) : ==> Variable used without being declared.: MsgBox($MB_SYSTEMMODAL, "NaaaNuuu", "This message box will show the sleeptime after closing the tabs, you got " & $rndSleep & " seconds left.", $rndSleep) MsgBox(^ ERROR
  11. I wrote AutoIt programs for (too!!) many years! I just update to W10 then install a new machine. Want to write a script and found that whatever flag values MsgBox won't pause the script ( just display for 2 ~ 3 seconds) The same occurs with _ArrayDisplay Thanks for Any Clue
  12. Hi guys, through a script, a button refers me content in a txt file. You can have a MsgBox if this file is modified the content?
  13. Hello guy got some trouble in this easy script Case $BoutonWhrite1 $Case1 = MsgBox (4,"Are you sure ?" ,"Reg key gonna be changed." ) While 1 If $Case1 = "No" Then ConsoleWrite(">Case -1 Started" & @CRLF) ExitLoop EndIf $InputType = InputBox ("Value Type ?", 'Type of key to write: "REG_SZ", "REG_MULTI_SZ", "REG_EXPAND_SZ", "REG_DWORD", "REG_QWORD", or "REG_BINARY".' ) ;~ RegWrite (""&Reg1,""&$RegName1,""&$InputType, ""&$RegValue1) ExitLoop WEnd I tryed If $case1 = 1 If $case1 = -1 If $case1 = "No" What is the returned value by the msg box YES or NO ? The script is going wrong about the final purpose (Whrite a Registry key if the Script user unswer YES ) But dont take attention i am gonna corect after get the returned value xD it was for testing.
  14. I'm trying to run this code: #include <GuiListView.au3> #include <GUIConstants.au3> Dim $Services Dim $ServicesList #cs While 1 CheckService() Sleep(30000) ; sleep 30 seconds WEnd #ce ;#cs #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <ListViewConstants.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 438, 192, 124) $Tab1 = GUICtrlCreateTab(0, 48, 609, 385) $TabSheet1 = GUICtrlCreateTabItem("Running Services") $ListView1 = GUICtrlCreateListView("Service Name|Status", 8, 72, 593, 281, -1, BitOR($LVS_EX_GRIDLINES,$LVS_EX_CHECKBOXES,$LVS_EX_FULLROWSELECT)) GUICtrlSendMsg($ListView1, $LVM_SETCOLUMNWIDTH, 0, 300) GUICtrlSendMsg($ListView1, $LVM_SETCOLUMNWIDTH, 1, 288) $Button1 = GUICtrlCreateButton("Stop Services", 464, 376, 129, 33) $TabSheet2 = GUICtrlCreateTabItem("Stopped Services") GUICtrlSetState(-1,$GUI_SHOW) $ListView2 = GUICtrlCreateListView("Service Name|Status", 8, 72, 593, 281, -1, BitOR($LVS_EX_GRIDLINES,$LVS_EX_CHECKBOXES,$LVS_EX_FULLROWSELECT)) GUICtrlSendMsg($ListView2, $LVM_SETCOLUMNWIDTH, 0, 300) GUICtrlSendMsg($ListView2, $LVM_SETCOLUMNWIDTH, 1, 288) $Button2 = GUICtrlCreateButton("Start Services", 464, 376, 129, 33) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd ;#ce ;$Tab1 = GUICtrlCreateTab(16, 8, 601, 377) ;$TabSheet1 = GUICtrlCreateTabItem("Running Services") ;$ListView1 = GUICtrlCreateListView("Service Name", 24, 40, 582, 334) ;_GUICtrlListView_SetExtendedListViewStyle($ListView1, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_CHECKBOXES, $LVS_EX_GRIDLINES)) ;$ServiceName = "wuauserv" Local $Services = ObjGet("winmgmts:\\" & @ComputerName & "\root\cimv2") Local $ServicesList = $Services.ExecQuery("SELECT * FROM Win32_Service") If IsObj($ServicesList) then For $Services in $ServicesList ;If $Services.Name = $ServiceName Then ; if $Services.State = "Running" Then MsgBox(8192,"Hello", $Services.Name & $Services.State,0,$Form1) ;GUICtrlCreateListViewItem( $Services.Name & "|" & $Services.State , $ListView1) ;Run (@ComSpec & " /c " & 'net stop wuauserv') ; EndIf ;EndIf Next EndIf ;EndFunc But the msgbox does turn up when GUI runs. However, if I comment the GUI section, it works perfectly fine. Please help.
  15. Quick search did not supply existing threads. Maybe I am missing something. Problem is this Local $DisplayText="This & that, shows that this & that does not display the ampersand correctly" MsgBox(0,"Show &",$DisplayText) What I get is: This _that, shows that this _that does not display the ampersand correctly. For Labels one cures the problem with the style $SS_NOPREFIX, but what's to do with the MsgBox? Just a nudge in the right direction would be appreciated. Thanks
  16. Hello, I'm rather new at Autoit (picked it up again afther a couple of years) but i dont know what I'm doing wrong here. I hope somebody can help me making this script "better readeble" and explain what I'm doing wrong here. The thing that i want to do here is making a tool that helps me whit doing mine work. Also want to do the "ping" command in the background whit only a msgbox if ok or not. In the code I'm writing now I'm using Send commands but know that there is a better way for this. At this point there is a error also whish i do not udnerstand where it is comming from. the error i get is: MsgBox($MB_SYSTEMMODAL, "Error", " Error no IP or name is filled in") MsgBox(^ ERROR Could somebody help me whit looking at this code? #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 385, 112, 192, 124) $iIP = GUICtrlCreateInput("", 80, 16, 209, 21) $btn_ping = GUICtrlCreateButton("Ping", 24, 56, 89, 25) $btn_vnc = GUICtrlCreateButton("VNC", 136, 56, 89, 25) $btn_evr = GUICtrlCreateButton("Eventvieuwer", 248, 56, 89, 25) GUISetState(@SW_SHOW) Func check_input() If GUICtrlRead($iIP) = "" Then Return False Else Return True Endif EndFunc While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $btn_ping $check = check_input() If ($check = False) Then Run ("cmd.exe") WinWaitActive("C:\WINDOWS\system32\cmd.exe") Send ("ping " & GUICtrlRead($iIP) & "{ENTER}") WinClose ("C:\WINDOWS\system32\cmd.exe") ;if ping OK then msgbox OK else NOK Else MsgBox($MB_SYSTEMMODAL, "Error", " Error no IP or name is filled in") EndIf Case $btn_vnc $check = check_input() If ($check = False) Then Run ("cmd.exe") WinWaitActive("C:\WINDOWS\system32\cmd.exe") Send ("eventvwr.exe " & GUICtrlRead($iIP) & "{ENTER}") WinClose ("C:\WINDOWS\system32\cmd.exe") Else MsgBox($MB_SYSTEMMODAL, "Error", " Error no IP or name is filled in") EndIf Case $btn_evr $check = check_input() If ($check = False) Then Run ("cmd.exe") WinWaitActive("C:\WINDOWS\system32\cmd.exe") Send ("vncviewer " & GUICtrlRead($iIP) & "{ENTER}") WinClose ("C:\WINDOWS\system32\cmd.exe") Else MsgBox($MB_SYSTEMMODAL, "Error", " Error no IP or name is filled in") EndIf EndSwitch WEnd
  17. I am trying to make sure that a user does not by pass a MsgBox by hitting the Esc key. Not sure if I just need to create my own GUI, or if it is possible to determine if Esc was hit. Local $iReturn = MsgBox(0,'Test', 'Do not hit ESC key!') If @error Or $iReturn <> 1 Then MsgBox('','','') Else Exit EndIf
  18. I'm probably just being dense but when I run both of these scripts (compiled) I don't detect any difference in the user experience. (am running Windows 8.1 64b) SystemModal #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> $hGUI = GUICreate("Test", 500, 500) GUISetState() MsgBox($MB_SYSTEMMODAL, "SystemModal", "Press me to continue") While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd TopMost #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> $hGUI = GUICreate("Test", 500, 500) GUISetState() MsgBox($MB_TOPMOST, "TopMost", "Press me to continue") While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
  19. I found this post that includes a demo of how the $MB_SERVICE_NOTIFICATION works. ; http://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx ; Community Additions: MB_SERVICE_NOTIFICATION is ignored on Vista $MB_SERVICE_NOTIFICATION = 2097152; 0x00200000 DllCall('user32.dll', 'int', 'LockWorkStation') Sleep(3000) MsgBox($MB_SERVICE_NOTIFICATION, "$MB_SERVICE_NOTIFICATION Test", "Some message... will not work on Vista+")The above demo code works in Windows 7 in that it displays a message over the login screen, but the workstation is locked instead of logged out. I want to know if the message box will display when no user is logged in. So I changed the demo code to this: #include <MsgBoxConstants.au3> #include <AutoItConstants.au3> ;lock workstation ;DllCall('user32.dll', 'int', 'LockWorkStation') ;logout Shutdown ($SD_LOGOFF) Sleep(4000) MsgBox($MB_SERVICE_NOTIFICATION, "$MB_SERVICE_NOTIFICATION Test", "Some message... will not work on Vista+")Now I can test $MB_SERVICE_NOTIFICATION when the workstation is locked versus when the user is logged out. And what I'm seeing is that when the user is logged out $MB_SERVICE_NOTIFICATION does not enable messages to be displayed. Is there any method for displaying a message on the login screen when no user is logged in? My goal, BTW, is to run a script at night while the user is away from the computer and leave a message on the login screen for the user to see upon returning to work the next day.
  20. I need an explanation, I have the following code: #INCLUDE <MsgBoxConstants.au3> #INCLUDE <ExtMsgBox.au3> #include <StringSize.au3> $iRet = _ExtMsgBox($EMB_ICONINFO, "Man|Woman|Exit", "Select Sex", "Select Sex") Switch $iRet Case 1 $sexo = "M" Case 2 $sexo = "F" Case Else MsgBox(16,"Error","Error, debe seleccionar un tipo de sexo") EndSwitch Send ($sexo) The downside is that I run on windows 7 and runs fine but when I run it in Windows XP throws me this error: "C:\Documents and Settings\BlackCrystal?\Escritorio\Proyecto para grabar denuncias al SIEDCO\Lesiones\ExtMsgBox.au3" (52) : ==> Subscript used on non-accessible variable.: If $g_aEMB_TempArray[1] = True Then If $g_aEMB_TempArray^ ERROR >Exit code: 1 Time: 0.4234 In advance thank you very much.
  21. Good afternoon, is there any way to change the text of the buttons on the Msgbox?
  22. Dear AutoIt Community, i want my script to pop-up a MsgBox, but at the same time to continue the script. ConsoleWrite("Hello - 1" & @CRLF) MsgBox(0, "", "Hello - 2") ConsoleWrite("Hello - 3" & @CRLF)If I do it as above, the script is paused and waiting for me to close the MsgBox to continue on the third line. I don't want to set a timer to close the MsgBox either, because I will read the contents of the MsgBox but want my script continue to the next lines. I didn't see any kind of restriction on the MsgBox help file that will cause the script to be paused. Can you please tell / show me if this is possible?
  23. Edit 2: Complete rewrite of the function, simplified version using a single function and without use of GUICtrlSetOnEvent or AutoItSetOption. Correct centering of message. Edit 1: Updated function to correct possible misbehaving AutoItSetOption. MsgBox with Visual CountDown Self-explanatory I guess... GreenCan MsgBox_CountDown.au3 (Previous downloads: 53)
  24. Hi all, I have made a simple script to use instead of MsgBox function. This function takes only one parameter as message text. It will display your script name as message title. Here is the code. You can include this in your script. #cs Function name = Alert($msg) Creater = kcvinu Example = Alert("Hello World!") This function is an alternative for MsgBox. It only takes one parameter as message text And it will display the script name as title #ce Func Alert($msg) Local $title = StringSplit(@ScriptName,".") ; Splitting the script name into two piece. MsgBox(0,$title[1],$msg) ; Using the first piece as title. 2nd piece is the extension. EndFunc Here is the file Alert.au3
  25. I just dnloaded the new version 03:39:08 unziped Xskin and went to make some buttons and message boxes, and was very supprised by all the errors I got, >Running AU3Check (3.3.12.0) from:C:\Program Files\AutoIt3 input:C:\Program Files\AutoIt3\XSkin\XSkin_Fully_Loaded\Examples\GUI_MessageBox.au3 "C:\Program Files\AutoIt3\Include\XSkin.au3"(144,58) : error: missing separator character before keyword. If IsArray($XS_msg) And $XS_msg[4] == $CtrlIDA[$XS_x]Then ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "C:\Program Files\AutoIt3\Include\XSkin.au3"(164,38) : error: missing separator character before keyword. If $XSkinID[$XS_s] == $XS_msg[4]Then ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "C:\Program Files\AutoIt3\Include\XSkin.au3"(168,40) : error: missing separator character before keyword. If $XS_msg[4] <> $XSkinID[$XS_s]Then ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "C:\Program Files\AutoIt3\Include\XSkin.au3"(324,58) : error: missing separator character before keyword. If IsArray($XS_msg) And $XS_msg[4] == $CtrlIDMA[$XS_x]Then ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "C:\Program Files\AutoIt3\Include\XSkin.au3"(376,15) : error: missing separator character before keyword. If $XS_ret[0]Then ~~~~~~~~~~~~~^ "C:\Program Files\AutoIt3\XSkin\XSkin_Fully_Loaded\Examples\GUI_MessageBox.au3"(17,11) : error: Statement cannot be just an expression. XSkin MsgBox ~~~~~~~~~~^ "C:\Program Files\AutoIt3\XSkin\XSkin_Fully_Loaded\Examples\GUI_MessageBox.au3"(17,46) : error: MsgBox() [built-in] called with wrong number of args. XSkin MsgBox( "Ok Cancel Dialog", "Hello") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "C:\Program Files\AutoIt3\XSkin\XSkin_Fully_Loaded\Examples\GUI_MessageBox.au3"(17,11) : error: XSkin(): undefined function. XSkin MsgBox ~~~~~~~~~~^ C:\Program Files\AutoIt3\XSkin\XSkin_Fully_Loaded\Examples\GUI_MessageBox.au3 - 8 error(s), 0 warning(s) !>03:39:08 AU3Check ended. Press F4 to jump to next error.rc:2 +>03:39:08 AutoIt3Wrapper Finished. >Exit code: 2 Time: 0.3946 I do not know where to start to get XSkin to work and play with this version of AutoIt. Or is there another tool I should be using?