Nata Posted November 27, 2021 Share Posted November 27, 2021 My code: ControlFocus("Open","","Edit1") ControlSetText("Open","","Edit1",$CmdLineRaw) Sleep(2000) ControlClick("Open","","Button1") My problem: I get incomplete text (truncated) in Edit1, When I send more then 15 files. I can't send files by groups because site replace previous sent group on new one. Site: https://ezgif.com/maker Thank you Link to comment Share on other sites More sharing options...
Dan_555 Posted November 27, 2021 Share Posted November 27, 2021 (edited) What you can do is to: Copy the content of the edit field into a variable. e.g. $copy=GuiCtrlRead($edit1) Add $cmdlineraw to the variable. $copy=$copy & $cmdlineraw (eventually add "& @crlf" here as well, if needed) Clear the editor text, then add the $copy to the edit field. then repeat as much as you like Edit: Try this 1st: You mentioned a truncated text. This can be due to the byte limit of the editor field. You can increase it with : _GUICtrlEdit_SetLimitText($Edit1, 20000000) Edited November 27, 2021 by Dan_555 Loc and Musashi 2 Some of my script sourcecode Link to comment Share on other sites More sharing options...
Danp2 Posted November 27, 2021 Share Posted November 27, 2021 If you place all the files in an otherwise empty directory, you could try this -- Navigate to the desired directory in the File Upload dialog (you can do that by setting Edit1 to the directory and then clicking Open) Send Ctrl+A to control containing the file listing to select all files Click Open button again P.S. How are you interacting with the other web elements? Latest Webdriver UDF Release Webdriver Wiki FAQs 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