Jump to content

Information window in modal mode, or similar. - (Moved)


Recommended Posts

Good evening everyone,

I'm making a script where I fetch WMI information in CMD, where the command line in CMD is:

wmic product get name,InstallDate,version > C:\Public\Temp\InstallSoftware.txt

However, it takes a while for it to process the information and create the TXT file.

Is there a way to appear a "slash" window or another similar window, in MODAL locking until the end of the processing, and then "unlocking"?
This warning window should remain open until the end of the command.





Link to comment
Share on other sites

  • Moderators

Moved to the appropriate AutoIt General Help and Support forum, as the AutoIt Example Scripts forum very clearly states:


Share your cool AutoIt scripts, UDFs and applications with others.

Do not post general support questions here, instead use the AutoIt Help and Support forums.

Moderation Team

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


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


Link to comment
Share on other sites

For faster result you can scan both registry sections :

On 64 bit Windows, remember to also check:

And/Or you could use a progress bar GUICtrlCreateProgress with style marquee...

And/Or you could use Win32_Product (WMI com object) instead of running an outside program (may not be faster, but more fun to script)

As you can see there is multiple ways to skin a cat 

Link to comment
Share on other sites


this show splash image until last command in Cmd Appear.:


#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <AutoItConstants.au3>
Local $sDestination = ".\mslogo.jpg"
Global $do_once, $Output, $iPID
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 437, 192, 124)
$Group1 = GUICtrlCreateGroup("Test list", 136, 88, 345, 97)
$Radio1 = GUICtrlCreateRadio("Run CMD 01", 160, 112, 233, 17)
$Radio2 = GUICtrlCreateRadio("Run CMD 02", 160, 144, 273, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetState(-1, $GUI_CHECKED)
#EndRegion ### END Koda GUI section ###

While 1
    If $do_once = "on" Then
        SplashImageOn("", $sDestination, 250, 100, 10, 10, $DLG_NOTITLE)
        $do_once = "off"

    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
        Case $Radio1
            MsgBox(0, GUICtrlGetState($Radio1), "Run CMD 01", 0)

        Case $Radio2

            MsgBox(0, 0, "Run CMD 02", 0)
            $CMD = @ScriptDir & "\ba.bat"
            $iPID = Run($CMD, "", @SW_SHOW, $STDOUT_CHILD)
            $do_once = "on"

Func _ROutput()
        $Output = StdoutRead($iPID)
    Until StringInStr($Output, "pause") <> 0    ;;if pause was found on Console then ;;;splash off
EndFunc   ;==>_ROutput


ba.bat Contains:

start cmd.exe



iam ِAutoit programmer.

best thing in life is to use your Brain to


everything you want.

Link to comment
Share on other sites

Yes, did you even look in regedit ?  Did you even try to write a script about it ? If you want me to help you in the future, you better make an effort when I give you a trail of a solution.  As I am getting a tad annoyed with your lack of autonomy.

Link to comment
Share on other sites


I understand your irritation. I don't want you to write scripts for me to just copy.

I ask after trying several alternatives and failing.

I used my autonomy for wmic, which got good results. however with your suggestion to be faster I asked the question if it was possible to generate txt through Regedit.

I'm learning by myself and using google translator. And also with the tips and scripts that you have published. I don't just copy, I study which commands and which logic was used.

Even so, thank you for your availability and attention.

I've even tried using

And the only one I got was the wmic

Edited by ARPFre
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...