mpellas Posted March 19, 2020 Share Posted March 19, 2020 Hello, I am a relative newbie to Auto IT. I was tasked to develop automation for a proprietary software we used as a CRM. As with a lot of people out there I am now working from home via GoToMyPC. My script worked yesterday. Now it doesn't work past my blocks that create directories for moving old files. Can anyone help? Here is a sample of my code. It's nothing fancy but the process doesn't get past the first mouseclick function. What am I missing? #include <Array.au3> #include <AutoItConstants.au3> #include <File.au3> #include <WinAPIShPath.au3> #include <FileConstants.au3> #include <Date.au3> ;creates path to move last MtD files DirCreate("creates directory") DirCreate("creates directory") DirCreate("creates directory") DirCreate("creates directory") DirCreate("creates directory") DirCreate("creates directory") DirCreate("creates directory") DirCreate("creates directory") FileMove("moves file") FileMove("moves file") FileMove("moves file") FileMove("moves file") FileMove("moves file") FileMove("moves file") FileMove("moves file") Filemove("moves file") ;starts process for first comprehensive report MouseClick($MOUSE_CLICK_LEFT, 36, 132 ,2) Link to comment Share on other sites More sharing options...
Nine Posted March 19, 2020 Share Posted March 19, 2020 Put some error checks after each statement, so you know what is going on. Check return value and @error. ConsoleWrite them. Post Scite console if you don't find anything... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
mpellas Posted March 19, 2020 Author Share Posted March 19, 2020 Thank you! I'm going to add more error handling and report back if I have any more questions. Link to comment Share on other sites More sharing options...
Subz Posted March 19, 2020 Share Posted March 19, 2020 Also read the help file on FileMove, specifically the last flag parameter, which can create your folder path and also allow overwriting of files. Link to comment Share on other sites More sharing options...
mpellas Posted March 19, 2020 Author Share Posted March 19, 2020 Thanks! Filemove has been working as expected for me in the block I posted, it's everything afterwards that has all of a sudden stopped. I'm on GoToMyPC due to working from home via the virus crisis...but it worked yesterday. I haven't found any indication it's experiencing any kind of error yet...but I do need to put more handling in to make sure. Link to comment Share on other sites More sharing options...
mpellas Posted March 19, 2020 Author Share Posted March 19, 2020 Our IT guy had to reinstall some drivers for my monitors at work. There was some kind of an odd conflict with that and GoToMyPC. I've got this problem solved. Thank you! 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