Jump to content
Sign in to follow this  
8daysaweek.co.uk

Refresh Desktop?

Recommended Posts

8daysaweek.co.uk

Before I start, I apologise if this has been answered before - I couldn't find it :ph34r:

I have a very simple script which:

  • Copies a file to a folder and overwrites the file already there.
  • Deletes the existing shortcut to it on the desktop.
  • Creates a new shortcut (with a new name) on the desktop
My problem is that, although the existing shortcut has been deleted, it isn't removed from the desktop until I right-click > Refresh (WinXP Pro).

Is there a way of doing a Desktop Refresh in AutoIt?

TIA :(

Edited by 8daysaweek.co.uk

[size=15]James :)[/size]www.8daysaweek.co.uk - A User-Focused OOo site, with Forums, Help Centre,Easy Installation CDs & OOo on USB Key

Share this post


Link to post
Share on other sites
ZeDMIN

Hiya,

got a similar idea, but instead of pressing Win+D to get to the Desktop i'd just activate it

Opt("WinTitleMatchMode",4)
WinActivate('classname=Progman')
Send('{F5}')

Btw: Why do you press Win+F5? Just F5 should do it?

Greetings,

ZeD

Share this post


Link to post
Share on other sites
sugi

Try:

Opt('WinTitleMatchMode', 4)
ControlSend('classname=Progman', '', 'SysListView321', '{F5}')

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  

×