GianniTrattore Posted February 5, 2021 Share Posted February 5, 2021 Hi, I am trying to get a string from a variable I have saved, and be able to ctrl v it. I tried sending the string but I realized it just writes it really quick, but not instantaniously. Link to comment Share on other sites More sharing options...
GianniTrattore Posted February 5, 2021 Author Share Posted February 5, 2021 If I was not clear with my word. It's like I have the string written, I select it, and I ctrl C it, but withouth having to select and copy, just by getting from the variable Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 5, 2021 Moderators Share Posted February 5, 2021 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 5, 2021 Share Posted February 5, 2021 @GianniTrattore Please post your script Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
GianniTrattore Posted February 5, 2021 Author Share Posted February 5, 2021 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 More sharing options...
Moderators Melba23 Posted February 5, 2021 Moderators Share Posted February 5, 2021 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. 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
GianniTrattore Posted February 5, 2021 Author Share Posted February 5, 2021 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 More sharing options...
GianniTrattore Posted February 5, 2021 Author Share Posted February 5, 2021 Well, I went on and did it slowly, but my questions still stands, if you are willing to tell me id be really grateful. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 5, 2021 Moderators Share Posted February 5, 2021 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
pixelsearch Posted February 5, 2021 Share Posted February 5, 2021 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. GianniTrattore 1 Link to comment Share on other sites More sharing options...
GianniTrattore Posted February 5, 2021 Author Share Posted February 5, 2021 Melba23, that's obviously not what I was aiming for, I just wanted to go through the clicking and more clicking quicker, so I don't have to have an unavailable pc for longer than needed. pixelsearch, thanks a lot, that's what I was looking for👌👌 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