Hi. I just started using AHK yesterday to write a few scripts, and so far I'm very impressed and happy with it. One issue I've run into today is how to handle writing a script that opens at least two folders on a networked PC that have the same name as two folders already open on the host PC that's running the script (folder names are Downloads and Torrents). Obviously I'd prefer to not have to rename the folders on either PC, any suggestions on what can be done? Right now the way the script is written, it opens the host Download folder, scrolls to the bottom, then minimizes it. Once it gets to the networked Download folder, it opens it, but then activates the host PC folder instead of the networked PC folder. I've included a snippet of the code, sorry if it's not in the correct format. I did do a search, but maybe I didn't use the right keywords as I didn't find anything matching my issue.
Code: Select all
Host PC:
Run F:\Downloads ;
WinActivate , Downloads ;
WinWaitActive , Downloads ;
Sleep , 1000
WinMinimize , Downloads ;
Sleep , 2500 ;
Network PC:
Run \\Torrent\Downloads ;
WinActivate , Downloads ;
WinWaitActive , Downloads ;
Send , {END} ;
Sleep , 1000
WinMinimize , Downloads ;
[Mod edit: [code][/code] tags added.]