Jump to content

Search the Community

Showing results for tags 'msgbox'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements and Site News
    • 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


  • 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

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start






  1. 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 t
  2. Hello, it's quite often, that someone asks how to change the texts of the MsgBox buttons or the InputBox buttons or how to change the position of ta MsgBox. Since years I use CBT hooks for that, but now I made a small UDF out of it for the ease of use. Of course you can build your own GUI or use already existing UDFs to do the same, but I like this way and you can hack (hook) the inbuild InputBox. HookDlgBox.au3 #include-once #include <WinAPI.au3> Global Const $tagCBT_CREATEWND = "ptr lpcs;HWND tagCBT_CREATEWND" Global Const $tagCREATESTRUCT = "p
  3. Sometimes when I call several MsgBox's they start popping up under other windows, which the requires ALT + TAB or click the taskbar icon. I just wanted to share this workaround: Just add a simple GUI in your program: #include <GUIConstantsEx.au3> $Form1 = GUICreate("Form1", 1, 1, 0, 0) GUISetState(@SW_SHOW) The GUI window size here is 1x1 so it will be nearly invisible, and at the top-left of your screen. It seems as long as that GUI is there all MsgBox's appear on top! I only tend to create several MsgBox's in a row when I'm actually writing and t
  4. Hi, after years of use autoit i am tired to type all time: msgbox('','','Hi') So, wanna mod the function for set default values... or some more changes. where is the function? or there are another modes for debug messages that i do not knowed ? XD [just wanna like alert('text')] And is there any place for all integrates functions ? Thank. Sry my english =E
  5. Hi guys, So I am trying to automate a task and this task has an input box with an already set character "9". I have just decided that I don't really need the input as an option but it's good to leave however for this instance I would like it to run past this point automatically. I've tried numerous ways to try and automate the use of the "OK" button using ControlClick and various other options. I just can't seem to see where this point in the script is. Scoured the forums for anything similar but didn't have any luck finding anything. Sorry to be a pain and I hope someone can help,
  6. Hello, as a start in Autoit i tried something i was missing since im using Autoit. I build a custom MessageBox which has a large amount of custom options and which scales its size on the parameters you set. Aviable Settings: -Title -Unlimited Buttons -Text Color (Buttons, Text) -Background Color (Msgbox, Buttons, Label) -Button Timeout -Autoclose Timeout -Icon (Default, No Icon, Custom) -Label/ Button Style. -Transparency I tried to keep this as close as i could to a Msgbox i was used too on my batch times. After i was ready i realised, @Me
  7. I am having a hard time understanding why this is not working. I was hoping some one could help explain it to me. $tags = $oIE.document.GetElementsByTagName("input") For $tag in $tags $class_value = $tag.GetAttribute("class") If string($class_value) = "fTs-p3298-l0 wplEditControl" Then $target = $tag ExitLoop EndIF Next MsgBox(0,"",$target) If $target = "fTs-p3298-l0 wplEditControl" THEN MsgBox(0,"","itworked") I have tried  MsgBox(0,"",$target.Attribute)  MsgB
  8. Hello Guys i am working on automating a flashing tool..When flashing is started if there is any error in connection it pops's up a error window...(as shown below) whenever this popup appears i need a msgbox to appear saying "error occured" how can i do this? Thanks
  9. 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
  10. 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, 0xABCD
  11. 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 o
  12. 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
  13. 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.
  14. 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", &quo
  15. 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
  16. 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 & '",
  17. 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: Me
  18. 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(^
  19. 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
  20. 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?
  21. 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 (""
  22. 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 = GUICtrlCreateTabIt
  23. 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
  24. 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.
  25. 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
  • Create New...