Jump to content

Help to close the Start menu shortcuts


coucou
 Share

Recommended Posts

Hi,

I'm silent installing Xplorer2 Info + Download

and can't close the Start menu shortcuts created at the end of the installation (see image bellow)

I do try the script bellow without success

Run("xplorer2.exe /S")
            
WinActive("C:\Documents and Settings\Administrator\Start Menu\Programs\xplorer2 pro")
WinClose("C:\Documents and Settings\Administrator\Start Menu\Programs\xplorer2 pro")

;WinWaitActive("C:\Documents and Settings\Administrator\Start Menu\Programs\xplorer2 pro")
;WinWaitClose("C:\Documents and Settings\Administrator\Start Menu\Programs\xplorer2 pro", "", 5)

TNX for the help

coucou

Posted Image

Link to comment
Share on other sites

I use the lite version and I just close it like the code below.

Opt('WinTitleMatchMode', 2)
$pid = Run("xplorer2.exe /S")
If WinWait('xplorer2 pro', '', 10) Then
    ;ControlClick('xplorer2 pro', '', 'Button1')
    WinClose('xplorer2 pro')
EndIf
ProcessWaitClose($pid)

Edit:

Strange I have a ControlClick for an explorer window though, so may need to check on it to be sure

.

Edit:

OK, I get a Msgbox for using the lite version and the explorer window appears and auto closes. If it remains open for you, then use WinClose (may need to use WinClose twice in a RunOnceEx environment).

:whistle:

Edited by MHz
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
 Share

  • Recently Browsing   0 members

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