Jump to content

Gui Create Customized Window


Recommended Posts

Good Day.

I want to create a customized window with customized background, min, max and close button, so my script runs inside this window which acts like a container.

Please if you can help me and show me how to start.

Thanks a lot.

Link to post
Share on other sites

Can you please explain a little more what you are trying to accomplish?

Also, if you can you post reproducer code for us to inspect and post a mock picture of what you are trying to do, that would be most helpful for us to help you.  

Link to post
Share on other sites
  On 3/25/2021 at 7:36 PM, MrCreatoR said:

Sure...

_FileOpenDialog('Title', @ScriptDir, 'All (*.*)', 0, '', 0, 200)

Func _FileOpenDialog($sTitle, $sInitDir, $sFilter, $iOpts = 0, $sDefName = '', $hWnd = 0, $iTrans = 255)
    Local $sSrc = _
        "$_ = Opt('WinWaitDelay', 0) + WinSetTrans(WinWait('[CLASS:#32770;TITLE:" & $sTitle & "]', 'ShellView', 3), '', " & $iTrans & ")"
    Run(@AutoItExe & ' /AutoIt3ExecuteLine "' & $sSrc & '"', '', @SW_HIDE)
    
    Return FileOpenDialog($sTitle, $sInitDir, $sFilter, $iOpts, $sDefName, $hWnd)
EndFunc

 

Good Day,

Hi.

I tried to open explorer.exe transparently over an existing background but I think I wrote a bad code, because it didnt work:


_ShellExecute("C:\WINDOWS\EXPLORER.EXE",@ScriptDir,"","",@SW_MAXIMIZE)
Func _ShellExecute("C:\WINDOWS\EXPLORER.EXE",@ScriptDir ,"","",@SW_MAXIMIZE)
    Local $sSrc = _
        "$_ = Opt('WinWaitDelay', 0) + WinSetTrans(WinWait('[CLASS:#32770;TITLE:" & $sTitle & "]', 'ShellView', 3), '', " & $iTrans & ")"
    Run(@AutoItExe & ' /AutoIt3ExecuteLine "' & $sSrc & '"', '', @SW_HIDE)

    Return ShellExecute("C:\WINDOWS\EXPLORER.EXE",@ScriptDir ,"","",@SW_MAXIMIZE)
EndFunc

What do U think?

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...