mdes Posted February 6, 2005 Share Posted February 6, 2005 I would like to simulate the following: 1. Right click on the Recycle Bin desktop icon 2. Choose an item from the displayed contextual menu. Is it possible to AutoIt3 it ? And if the answer is Yes, how to do it ? Gestion des congés, RTT, vacances scolaires, autres absences sur Pocket PC : CongésRFV Link to comment Share on other sites More sharing options...
tamir Posted February 6, 2005 Share Posted February 6, 2005 which item u want to choose? maybe u can have the same function in more elegant way... Link to comment Share on other sites More sharing options...
zcoacoaz Posted February 6, 2005 Share Posted February 6, 2005 if you want to delete the stuff in it there is already FileRecycleEmpty() [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
mdes Posted February 7, 2005 Author Share Posted February 7, 2005 which item u want to choose? maybe u can have the same function in more elegant way...I am using "Layout.dll" to save/restore the desktop icons positions (which add "Save Desktop Icon Layout" and "Restore Desktop Icon Layout" in the context menu of the Recycle Bin). See hereI would like to execute the "Restore Desktop Icon Layout". Gestion des congés, RTT, vacances scolaires, autres absences sur Pocket PC : CongésRFV Link to comment Share on other sites More sharing options...
Andre Posted February 7, 2005 Share Posted February 7, 2005 Hi, Perhaps there is an way to use layout.dll in a DllCall function ? Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
ioliver Posted February 7, 2005 Share Posted February 7, 2005 @mdes, I know it's not a very neat an clean way, but you can do it with MouseMove(), and MouseClick(). Hope that helps, Ian "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Link to comment Share on other sites More sharing options...
ennis Posted February 7, 2005 Share Posted February 7, 2005 (edited) I am using "Layout.dll" to save/restore the desktop icons positions (which add "Save Desktop Icon Layout" and "Restore Desktop Icon Layout" in the context menu of the Recycle Bin). See hereI would like to execute the "Restore Desktop Icon Layout".<{POST_SNAPBACK}>@mdes. I thikn u can do it this way. This isnt the code..just some pseudocode..if u need i can write it up for u tmrw.1) minimise all windows2) MouseMove(...) - move the mouse somewhere in the middle of the screen - anywhere really thats not touching the taskbar..no prob if touches ico (incase u have a full desktop)3) MouseClick(...) - the last 2 steps can be combined. click where the mouse is at4)send("recycle")5)send("{APPSKEY}")6)send({DOWN 9}) - the 9 here is wat may be rough - change it to watever the number should be...how far down the choice is...if this is happening on more than one computer then u have to have a dif script for each..or think it through to change dynamically7) send({ENTER})and ure set... EDIT: I realised that for #6 if i press 'r' u get properties..so maybe theres a hotkey for this choice too....instead of 'Down' try sending 'r' or 'd' or watever letter will work..if any do..else use above method Edited February 7, 2005 by ennis Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 7, 2005 Share Posted February 7, 2005 (edited) @mdes. I thikn u can do it this way. This isnt the code..just some pseudocode..if u need i can write it up for u tmrw.<snip>EDIT: I realised that for #6 if i press 'p' u get properties..so maybe theres a hotkey for this choice too....instead of 'Down' try sending 'r' or 'd' or watever letter will work..if any do..else use above method<{POST_SNAPBACK}>I know ennis is a new user (to the boards), but if he's using a .dll then DLL call would probably be less apt to break....it'd just be a LOT of messy code. Edited February 7, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
CyberSlug Posted February 7, 2005 Share Posted February 7, 2005 I've used the freeware IconSaver 1.2 for as long as I remember. It includes command-line utils for saving and restoring icon layout (and I have a shortcut to it in my startup folder). As I cannot find the website, I've attached the files.iconsaver.zip Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
ennis Posted February 8, 2005 Share Posted February 8, 2005 I know ennis is a new user (to the boards), but if he's using a .dll then DLL call would probably be less apt to break....it'd just be a LOT of messy code.<{POST_SNAPBACK}>I dont know what functions are in the dll so i cannot assume there are any to do that directly..so meh..whichever way works. Link to comment Share on other sites More sharing options...
mdes Posted February 8, 2005 Author Share Posted February 8, 2005 I've used the freeware IconSaver 1.2 for as long as I remember. It includes command-line utils for saving and restoring icon layout (and I have a shortcut to it in my startup folder).As I cannot find the website, I've attached the files.Thanks a lot to remid me this excellent, small and powerfull utility (http://www.iconsaver.com). I already used it, but I replaced it with Layout.dll/.inf: but I don't remember why :"> Thanks to all for your pertinent answers Gestion des congés, RTT, vacances scolaires, autres absences sur Pocket PC : CongésRFV Link to comment Share on other sites More sharing options...
zcoacoaz Posted February 9, 2005 Share Posted February 9, 2005 if it has command line then you can just run the program with command line parameters, so we don't need the dll to do it. am i wrong? [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted February 9, 2005 Share Posted February 9, 2005 Automating the mouse movements isn't the most glamorous method to this, but it sure is the simplest way to do it. Just opent the Auto It Spy program, and find the coordinates for the icon, and then for the menu item. You can them script a program to click on those positions... You can also make it a Scheduled task, so that it will start at a certain time... Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
Alpine Posted October 25, 2005 Share Posted October 25, 2005 I am using "Layout.dll" to save/restore the desktop icons positions (which add "Save Desktop Icon Layout" and "Restore Desktop Icon Layout" in the context menu of the Recycle Bin). See hereI would like to execute the "Restore Desktop Icon Layout".Where did you get a copy of "layout.dll" from? There does not appear to be a downloadable link from that website you posted. Link to comment Share on other sites More sharing options...
CyberSlug Posted October 25, 2005 Share Posted October 25, 2005 Where did you get a copy of "layout.dll" from? There does not appear to be a downloadable link from that website you posted.There's a working link at the bottom of this site:http://www.nthelp.com/50/save_desktop_layout.htm Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Alpine Posted October 25, 2005 Share Posted October 25, 2005 Where in the registry does it save the icon location? 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