Jump to content
Sign in to follow this  
everseeker

Keep a GUI on screen but ignored

Recommended Posts

everseeker

I have a nice script that manipulates a bunch of data... moving among Excel files and other programs.

The main program is, and needs to be, Maximized, while it's crunching data

It works

But it takes a LONG time to complete a run (Up to 4 hours...)

So, human nature, the users want me to show them what's going on...

A little GUI window with

Record currently being processed (out of x total)

Current Step

Any error conditions

I dunno.... an animated .GIF of "Men-At-Work" (Yeah, cheezy...)

but

How do I put this GUI up on the screen, visible (on top of the main file) while the main part of my script is working on the main window "below" the gui.....(and I don't want the main body of the script to accidently attempt to interact with the GUI, thinking it is the main program)


Everseeker

Share this post


Link to post
Share on other sites
GunsAndRoses

How bout this?

$TitleP is the title of the window you WANT parent'd.

$TitleC is the window you want below it basically. The child.

Func _SetParent($TitleP, $TitleC)
    If WinExists($TitleP) Then
        If WinExists($TitleC) Then
            $HwndP = WinGetHandle($TitleP)
            $HwndC = WinGetHandle($TitleC)
            $user32 = DllOpen("user32.dll")
            DllCall($user32, "str", "SetParent", "HWnd", $HwndP, "HWnd", $HwndC)
            DllClose($user32)
            Return 1
        Else
            Return -1
        EndIf
    Else
        Return -1
    EndIf
EndFunc ;==>_SetParent

Or Many Use The: GUISetState(@SW_DISABLE, $Hwnd)

Edited by GunsAndRoses

Share this post


Link to post
Share on other sites
everseeker

ProgressOn()

SplashTextOn()

I thank you both

I think the Zenda provided commands will work best for me


Everseeker

Share this post


Link to post
Share on other sites
everseeker

I'm Zedna ;-)

My Apologies Zendna

:D


Everseeker

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.