Jump to content

wakillon

Member
  • Posts

    5
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    France

About wakillon

Profile Information

  • OS
    Windows 8.1 x64

wakillon's Achievements

0

Reputation

  1. @CoffeeFiend So, you have really no chance with your windows 7 No path in the title of your opened windows and your explorer doesn't restart itself ! Which other surprises are coming ? Like me, you should be back to XP ! I don't know if Sweept will respond one day, but i think this is approching :
  2. If you want an other way... Works for all opened directories !
  3. @CoffeeFiend sweept said : I'm looking for a script that can list all running available open windows on desktop!.. secondly kill *all processes of explorer.exe till there are none more running @foreground or @backgrounds lastly recover all X:\paths of all open windows listed from the first step using explorer.exe.. TIA for any help with this.. So, Sorry for you if it doesn't work on 7-64bit, but on xpsp3-32bit it works well. It doesn't return the name of the window but the entire path of the folder, who permits to re-open them after... FileExists returns false only for special folders who have already easy accessibles shortcuts. And working with handles have no sense, because when explorer restarts these handles no longer exists !
  4. For just refresh try this : #NoTrayIcon #include <Array.au3> _UpdateExplorer ( ) Func _UpdateExplorer ( ) Local $_WinOpt = Opt ( "WinSearchChildren", True ), $_PARAM = 107040 If @OSVersion = "WIN_XP" Then $_PARAM = 28931 $_WinListArray = WinList ( "[REGEXPCLASS:(Explore|Cabinet)WClass]" ) For $_I = 0 To UBound ( $_WinListArray ) - 1 DllCall ( "user32.dll", "long" , "SendMessage", "hwnd", $_WinListArray[$_I][1], "int", 0x111, "int" , $_PARAM , "int" , 0 ) Next $_WinListArray = WinList ( "[REGEXPCLASS:(Progman|#32770|SHELLDLL_DefView)]" ) For $_I = 0 To UBound ( $_WinListArray ) - 1 DllCall ( "user32.dll", "long" , "SendMessage", "hwnd", $_WinListArray[$_I][1], "int", 0x111, "int" , $_PARAM , "int" , 0 ) Next EndFunc ;==> _UpdateExplorer ( ) But you need to restart explorer for apply your changes like here
  5. Another way ... ; Restart explorer with opened windows $_WinList = WinList ( "[REGEXPCLASS:(Explore|Cabinet)WClass]" ) Do ProcessClose ( 'explorer.exe' ) Until Not ProcessExists ( 'explorer.exe' ) For $_I = 1 To $_WinList[0][0] ConsoleWrite ( $_WinList[$_I][0] & @Crlf ) If FileExists ( $_WinList[$_I][0] ) Then Run ( 'explorer.exe "' & $_WinList[$_I][0] & '"' ) Next
×
×
  • Create New...