coucou Posted October 31, 2006 Share Posted October 31, 2006 Hi,I'm silent installing Xplorer2 Info + Downloadand can't close the Start menu shortcuts created at the end of the installation (see image bellow)I do try the script bellow without successRun("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 helpcoucou Link to comment Share on other sites More sharing options...
CoderDunn Posted October 31, 2006 Share Posted October 31, 2006 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 Link to comment Share on other sites More sharing options...
MHz Posted October 31, 2006 Share Posted October 31, 2006 (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). Edited November 1, 2006 by MHz Link to comment Share on other sites More sharing options...
coucou Posted November 1, 2006 Author Share Posted November 1, 2006 Many TNX MHz You are Really the BEST Here bellow my final script. In fact i added Langage selection.... My script can be improved but it works thank to you. Regards coucou Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now