Jump to content

Copying a variable content - (Moved)


Recommended Posts

  • Moderators

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Hi, sorry for posting in the wrong place, I misinterpreted the section title.

The code's as follows:

#include <File.au3>

Func EndProgram()
    Exit
EndFunc   ;==>EndProgram
HotKeySet ( "1" , "EndProgram" )


Local Const $sFilePath = @path ;
Local $vLinks
_FileReadToArray ( $sFilePath, $vLinks )

Local $vLenLinks = UBound($vLinks)
Local $vLink

Local Const $UrlBarX = 800
Local Const $UrlBarY = 50


For $i = 5 To $vLenLinks
   $vLink = $vLinks[$i]
   MouseClick ( "left" , $UrlBarX, $UrlBarY  )
   sleep($Delay)
   Send ($vLink)
   sleep($Delay)
   Send ("{ENTER}")
Next

This is a part of the code. As you can see, I am trying to get a link and copy it on my browser, but the way I'm doing it, as I stated, is slow.

I want to have that Send($vLink) instantaneous, or at least faster than 200 ms.

Link to comment
Share on other sites

  • Moderators

GianniTrattore,

And why are you sending all these links - and why must each be sent within 200ms?

M23

P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out.

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Well it's not really mandatory to have it this quick, but I wanted to try and make a better performing program, since I'm not that good at programming.

For what I need it is actually not really illegal: I am trying to download a series that's stored on a site that has you go through 35 different pages in order to get to the actual file, and I have to download 50 episodes, so that would obviously be pretty tiring, so I tought I could try programming and getting an useful program. For context so I am more believable the site is filecrypt or easybytez. If you need more info I can give you them but it's not really anything fishy

Link to comment
Share on other sites

  • Moderators

GianniTrattore,

I cannot see how sending each of  the various URLs in 200ms is going to increase your download speed as with 50-odd files your download speed is likely to be the bottleneck on the whole thing. But if you want to try be my guest.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Hi GianniTrattore,
As Melba23 didn't lock the thread then I guess advices can be given.

Send($vLink) is not instantaneous, you should try to replace it with :

ClipPut($vLink)
Send("^v") ; Ctrl+V, much faster than Send($vLink)

I noticed that when I faced a similar situation like yours (to automatically fill the adress bar with an URL)
Hope it will work for you.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...