Jump to content

Recommended Posts

Posted

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

Posted

I don't quite get what you're trying to do ... Delete the shortcuts or just close a window that pops up displaying the shortcuts. If thats the case ... WinWait() and WinClose() should work.

Hallman

Posted (edited)

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
Posted

Many TNX MHz

You are Really the BEST :whistle:;):P

Here bellow my final script. In fact i added Langage selection....

My script can be improved but it works thank to you.

Regards

coucou

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
×
×
  • Create New...