cpradeep22 Posted December 6, 2020 Share Posted December 6, 2020 Unable to copy a long URL from Excel to a webpage field though if i directly hard code and send it works perfectly i used this excel command to read and it didnt work while the rest of the fields work perfectly Local $Read4 = _Excel_RangeRead($oWorkbook, Default, "B33") ; URL of document from Excel sleep (13000) the URL in the excel cell B33 is - https://lms.xxxxxxx.net:443/VX-LMS-PROD/ViewDocExternally/ViewDocumentDetails.aspx?DevId=RGV2LTE4ODEucGRm-rImCg7x6Cks=&&Id=MTg4MQ==-ePsTeDP0ykU=&&UserId=30&&DocNo=UUFNLVBBTS0wMDEtMDAwMS4wNw==- However if i paste directly using send command hard coded it works send ("https://lms.xxxxxxx.net:443/VX-LMS-PROD/ViewDocExternally/ViewDocumentDetails.aspx?DevId=RGV2LTE4ODEucGRm-rImCg7x6Cks=&&Id=MTg4MQ==-ePsTeDP0ykU=&&UserId=30&&DocNo=UUFNLVBBTS0wMDEtMDAwMS4wNw==-") I also tried passing someother text instead of the URL and it works well. Thank you and do suggest if there are other alternate means to get this done Link to comment Share on other sites More sharing options...
Developers Jos Posted December 6, 2020 Developers Share Posted December 6, 2020 Moved to the appropriate forum. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
GokAy Posted December 6, 2020 Share Posted December 6, 2020 Hey, Maybe you need to read text instead of value of range("B33")? $iReturn parameter https://www.autoitscript.com/autoit3/docs/libfunctions/_Excel_RangeRead.htm [optional] What to return from the specified cell: 1 - Value (default) 2 - Formula 3 - The displayed text 4 - Value2. The only difference between Value and Value2 is that the Value2 property doesn’t use the Currency and Date data types cpradeep22 1 Link to comment Share on other sites More sharing options...
Nine Posted December 6, 2020 Share Posted December 6, 2020 Limit for an URL in Excel is 255 characters. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
cpradeep22 Posted December 6, 2020 Author Share Posted December 6, 2020 thank you for the support. Unfortunately it is lengthy and greater than 255charecters and couldnt restrict. As a workaround now i have moved this URL alone to notepad and parsing it and it worked. Thank you all once again Link to comment Share on other sites More sharing options...
water Posted December 7, 2020 Share Posted December 7, 2020 Have you tried to set parameter $bForceFunc? If set to True it should solve your 255 character problem. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
cpradeep22 Posted December 10, 2020 Author Share Posted December 10, 2020 thank you. Will keep this in mind and try and it out since im set to do my next level of automation by next month. Appreciate your support Link to comment Share on other sites More sharing options...
water Posted December 10, 2020 Share Posted December 10, 2020 More details regarding the Excel and Word UDF can be found in the Wiki. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 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