Sign in to follow this  
Followers 0
LOULOU

Refreshing Desktop

3 posts in this topic

How can i refresh the desktop with autolit3 ?

Share this post


Link to post
Share on other sites



How can i refresh the desktop with autolit3 ?

Others will probably have a better solution but here is my attempt

WinMinimizeAll()
WinMinimizeAllUndo()


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

It depends on what you mean by "refresh".

Sometimes you get a bad "paint" of the desktop (a part of a window left behind) then painting over it with another window (like notepad maximized - then closed) might solve the problem... but within your windows file explorer; when you force a refresh, the "focus" goes to the top of the list. (I'm not sure if I'm using the correct term here - it seems to give the item "focus" much like the ControlFocus command does on a button but it does not select or highlight the item... I'm going to call that focus in this post.)

WinMinimizeAll()

WinMinimizeAllUndo()

Might do what you want, but it does not cause the "first item" on my desktop to get focus.

This line of code does:

ControlSend("Program Manager","",1,"{F5}")

To test this, place an "au3 file" directly on your desktop that contains only that one line of code.

Select that file and run it.

Focus should go to the "first item" on your desktop... at least it does for me.

Another topic that I've seen in other posts - "refresh the desktop" meant change the wallpaper in the registry and force an update (or refresh) without using the OS GUI. Sending an F5 will not do that.

later...


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


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
Sign in to follow this  
Followers 0