Jump to content

Recommended Posts

Posted

Hello I am working on collecting dropbox share links for a few folders (438 folders) . While what I have works, I was wondering if there was a better way that didn't involve all the key-presses. Here is what I have:

#include <Array.au3>
#include <File.au3>

HotKeySet("{HOME}", "getLink")
HotKeySet("{END}", "saveLinks")

$file = FileOpen("dropbox-links.txt",1)
local $links[0]

while 1
   sleep (200)
WEnd

Func getLink()
   for $j = 0 to 438

      Send("+{F10}")
      Sleep(100)

      for $i = 1 to 14
         Send("{Down}")
         Sleep(200)
      Next

      Send("{ENTER}")
      sleep(1000)
      _ArrayAdd($links, ClipGet())
      sleep (3000)
   Next
EndFunc

func saveLinks()
   ;_ArrayDisplay($links)
   _FileWriteFromArray($file, $links)
   FileClose($file)
EndFunc

Thanks!

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
×
×
  • Create New...