8daysaweek.co.uk Posted September 16, 2004 Share Posted September 16, 2004 (edited) Before I start, I apologise if this has been answered before - I couldn't find it 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 desktopMy 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 September 16, 2004 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 Link to comment Share on other sites More sharing options...
8daysaweek.co.uk Posted September 16, 2004 Author Share Posted September 16, 2004 OK, I have a solution of sorts: ; Send Windows +D to show desktop Send("#d") ; Send Windows +F5 to refresh Send("#{F5}") If anyone has a more elegant solution I'd be interested [size=15]James :)[/size]www.8daysaweek.co.uk - A User-Focused OOo site, with Forums, Help Centre,Easy Installation CDs & OOo on USB Key Link to comment Share on other sites More sharing options...
ZeDMIN Posted September 16, 2004 Share Posted September 16, 2004 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 Link to comment Share on other sites More sharing options...
8daysaweek.co.uk Posted September 16, 2004 Author Share Posted September 16, 2004 Great I'll put that in instead. Btw: Why do you press Win+F5? Just F5 should do it? <{POST_SNAPBACK}>Come to think of it, I don't know! I'll take it out - thanks [size=15]James :)[/size]www.8daysaweek.co.uk - A User-Focused OOo site, with Forums, Help Centre,Easy Installation CDs & OOo on USB Key Link to comment Share on other sites More sharing options...
sugi Posted September 16, 2004 Share Posted September 16, 2004 Try: Opt('WinTitleMatchMode', 4) ControlSend('classname=Progman', '', 'SysListView321', '{F5}') 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