Jump to content

FileReadToArray parameter count?


Recommended Posts

#include "..\Include\Array.au3"
#include "..\Include\File.au3"
#include "..\Include\AutoItConstants.au3"

Local $aRetArray
Local $sFilePath = "n.csv"

 _FileReadToArray($sFilePath, $aRetArray, ",")
; _FileReadToArray($sFilePath, $aRetArray, $FRTA_COUNT, ",")
 _ArrayDisplay($aRetArray, "Original", Default, 8)

The above code shows two versions of _FileReadToArray and both don't work as expected.
The first one doesn't use the comma as a delimiter. (so I get a single column array)  I tried adding "Default" between $aRetArray and "," then it told me it had an incorrect number of parameters. 

I looked again at the documentation:
 

#include <File.au3>
_FileReadToArray ( $sFilePath, ByRef $vReturn [, $iFlags = $FRTA_COUNT [, $sDelimiter = ""]] )


And I with or without the flags params I should be getting a 2D array due to my file being a csv. 
I then tried a regular flag, $FRTA_COUNT, and it tells me that I'm using a variable $FRTA_COUNT while it's not declared. Tried putting in 1 instead and it told me again, incorrect number of params. 

 

Link to post
Share on other sites
  • Moderators

Your call to _FileReadToArray in the code above has the wrong parameter in the third position. Try 

_FileReadToArray($sFilePath, $aRetArray, $FRTA_COUNT, ",")

As for it returning a 2D, if you could post an example of the csv that would help greatly to determine whether you need to use the $FRTA_INTARRRAYS parameter.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to post
Share on other sites

Sounds like you're using an older version of AutoIt.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to post
Share on other sites
16 minutes ago, JLogan3o13 said:

Your call to _FileReadToArray in the code above has the wrong parameter in the third position. Try 

_FileReadToArray($sFilePath, $aRetArray, $FRTA_COUNT, ",")

As for it returning a 2D, if you could post an example of the csv that would help greatly to determine whether you need to use the $FRTA_INTARRRAYS parameter.

No matter what I do, having anything between $aRetArray and "," gives me an error.
This is a sample csv.

q/b,1,2,ST,1-MAN,9,p,
q/b,1,2,ST,1-MAN,9,p,
q/b-a,1,2,WD,1-MAN,2,p,
q/b-a,1,2,WD,1-MAN,6,p,
q/b,1,2,ST,1-MAN,1,p,
q/b-a,1,2,FF,1-MAN,7,p,
z/b-a,1,2,FF,1-MAN,2,p,
z/b-a,1,2,FF,1-MAN,6,p,
z/b-a,1,3,FF,1-MAN,2,p,

 

 

15 minutes ago, BrewManNH said:

Sounds like you're using an older version of AutoIt.

I'm not working on a computer I can update it very easily on, but all my folders (Aut2Exe, AutoItX, Examples, Include, SciTE, etc.) are all dated 7/11/2018. The rest of the files in my AutoIt3 folder are dated back to 2013 besides the uninstall.exe which is also 7/11/2018.

Does that sound like too old a version of AutoIT to use _FileReadToArray?


Looked into the files and they're actually all from  2013. I'll work on getting it updated to the most recent version. Might not be able to though. Would that potentially break any of the code I'm currently using without issue? 

Edited by Zein
Link to post
Share on other sites
  • Developers

This works fine for me:

#include "Array.au3"
#include "File.au3"
#include "AutoItConstants.au3"

Local $aRetArray[1000]
Local $sFilePath = "n.csv"

$rc=_FileReadToArray($sFilePath, $aRetArray, $FRTA_COUNT, ",")
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $rc = ' & $rc & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
_ArrayDisplay($aRetArray, "Original", Default, 8)

Jos

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 post
Share on other sites
1 hour ago, Jos said:

This works fine for me:

#include "Array.au3"
#include "File.au3"
#include "AutoItConstants.au3"

Local $aRetArray[1000]
Local $sFilePath = "n.csv"

$rc=_FileReadToArray($sFilePath, $aRetArray, $FRTA_COUNT, ",")
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $rc = ' & $rc & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
_ArrayDisplay($aRetArray, "Original", Default, 8)

Jos

Gives me the same error. I'll get my autoit updated.

Link to post
Share on other sites
On 8/14/2018 at 12:50 PM, Jos said:

This works fine for me:

#include "Array.au3"
#include "File.au3"
#include "AutoItConstants.au3"

Local $aRetArray[1000]
Local $sFilePath = "n.csv"

$rc=_FileReadToArray($sFilePath, $aRetArray, $FRTA_COUNT, ",")
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $rc = ' & $rc & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
_ArrayDisplay($aRetArray, "Original", Default, 8)

Jos

Everything's updated. I keep getting $rc = 0 and then _ArrayDisplay says no array is being passed into it. 

Link to post
Share on other sites
  • Developers

Ok, so my posted script gives you the clue why this (different data than posted earlier) is giving you problems:

Quote

@@ Debug(9) : $rc = 0
>Error code: 3

This means that _FileReadToArray() returns 0 and Error 3 meaning according the helpfile

Quote

Return Value

Success: 1 and $vReturn holds an array.
Failure: 0, @error flag set to non-zero and $vReturn is set to 0.
@error: 1 - Error opening specified file
2 - Unable to split the file
3 - File lines have different numbers of fields (only if $FRTA_INTARRAYS flag not set)
4 - No delimiters found (only if $FRTA_INTARRAYS flag not set)

Which is indeed the case when you look at your file!

Jos

 

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 post
Share on other sites

This example will create an 2D array with variable row lengths from a file.
I would be surprised if this didn't run on older AutoIt versions.

#include <array.au3>

Local $sFileName = "test.csv"

Local $hTimer = TimerInit() ; Begin the timer and store the handle in a variable.

$a1DArray = FileReadToArray($sFileName) ; Create 1D array
;_ArrayDisplay($a1DArray)

Local $a2DArray = _Array1DToVariableRow2D($a1DArray, "/-.,") ; Note: 1 or many row delimiters.
ConsoleWrite(StringFormat("Time taken: %.3f secs", TimerDiff($hTimer) / 1000) & @CRLF)

_ArrayDisplay($a2DArray)


; Parameter - "$a" is a 1D array.
; Output is a 2D array
;
Func _Array1DToVariableRow2D($a, $sRowDelimiter = ",")
    Local $iNumRows = UBound($a)
    Local $aRetArray[$iNumRows][300] ; For really large 2D array to be ReDim latter when the maximum number of columns is found.
    Local $MCol ; Max number of columns from all rows.

    For $r = 0 To $iNumRows - 1
        $aTemp = StringSplit($a[$r], $sRowDelimiter, 2)
        If UBound($aTemp) > $MCol Then
            $MCol = UBound($aTemp)
            If $MCol > UBound($aRetArray) Then ReDim $aRetArray[UBound($aRetArray)][UBound($aRetArray, 2) + 300]
        EndIf
        For $c = 0 To UBound($aTemp) - 1
            $aRetArray[$r][$c] = $aTemp[$c]
        Next
    Next
    ReDim $aRetArray[$iNumRows][$MCol]
    Return $aRetArray
EndFunc   ;==>_Array1DToVariableRow2D

 

Link to post
Share on other sites
On 8/17/2018 at 5:20 PM, Jos said:

Ok, so my posted script gives you the clue why this (different data than posted earlier) is giving you problems:

This means that _FileReadToArray() returns 0 and Error 3 meaning according the helpfile

Which is indeed the case when you look at your file!

Jos

 

I fixed it and the same error occurs. The csv I gave you was just a stripped version of my actual csv which has some-what private data. And opening my original in Excel shows that the rows are all aligned with the same number of fields. I think the error was actually a blank line at the end of my csv. Which, would yield the error I guess that some rows had different fields.

 

 

On 8/17/2018 at 10:28 PM, Malkey said:

This example will create an 2D array with variable row lengths from a file.
I would be surprised if this didn't run on older AutoIt versions.

#include <array.au3>

Local $sFileName = "test.csv"

Local $hTimer = TimerInit() ; Begin the timer and store the handle in a variable.

$a1DArray = FileReadToArray($sFileName) ; Create 1D array
;_ArrayDisplay($a1DArray)

Local $a2DArray = _Array1DToVariableRow2D($a1DArray, "/-.,") ; Note: 1 or many row delimiters.
ConsoleWrite(StringFormat("Time taken: %.3f secs", TimerDiff($hTimer) / 1000) & @CRLF)

_ArrayDisplay($a2DArray)


; Parameter - "$a" is a 1D array.
; Output is a 2D array
;
Func _Array1DToVariableRow2D($a, $sRowDelimiter = ",")
    Local $iNumRows = UBound($a)
    Local $aRetArray[$iNumRows][300] ; For really large 2D array to be ReDim latter when the maximum number of columns is found.
    Local $MCol ; Max number of columns from all rows.

    For $r = 0 To $iNumRows - 1
        $aTemp = StringSplit($a[$r], $sRowDelimiter, 2)
        If UBound($aTemp) > $MCol Then
            $MCol = UBound($aTemp)
            If $MCol > UBound($aRetArray) Then ReDim $aRetArray[UBound($aRetArray)][UBound($aRetArray, 2) + 300]
        EndIf
        For $c = 0 To UBound($aTemp) - 1
            $aRetArray[$r][$c] = $aTemp[$c]
        Next
    Next
    ReDim $aRetArray[$iNumRows][$MCol]
    Return $aRetArray
EndFunc   ;==>_Array1DToVariableRow2D

 

Works without issue! Thank you!

 

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By EmilyLove
      I have a string containing the full path of an executable and an array of executables without their paths. I am trying to compare the string to the list in the array and if a match is found, remove it from the array. The entry get removed from the array successfully, and after checking its return result, uses it to update the ubound if it succeeded, but it doesn't want to update to the new value. Any ideas what I am doing wrong? It acts like it is read-only.
      #include <Array.au3> #include <File.au3> Local $sApp_Exe = "F:\App\Nextcloud\nextcloud.exe" Local $aWaitForEXEX = [3, "Nextcloud.exe", "nextcloudcmd.exe", "QtWebEngineProcess.exe"] For $h = 1 To $aWaitForEXEX[0] If StringInStr($sApp_Exe, $aWaitForEXEX[$h]) <> 0 Then $iRet = _ArrayDelete($aWaitForEXEX, $h) If $iRet <> -1 Then $aWaitForEXEX[0] = $iRet ;this line doesn't work. $aWaitForEXEX[0] doesn't update and shortly gives Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded.: _ArrayDisplay($aWaitForEXEX) EndIf Next  
    • By DJ143
      I have a autoit exe file which is used in upload/browse file functionality.  This has been integrated with selenium framework and I am invoking the autoit exe using Java process and runtime. 
      Now the issue is when I run the scripts and invoke the autoit exe in local it works perfectly.  But when I use selenium grid or jenkins to run the scripts in another windows server it is not working.
      Can anyone please suggest any solution for this?
    • By Hermes
      Hello, the script below will read column A from an excel file - and if a value matches in the browser, it will click the corresponding link and click on a specific button to paste the data, then writes "Completed" in Column B. It will continue to read from the excel file and do the same thing for all the remaining rows.
      #Include "Chrome.au3" #Include "wd_core.au3" #Include "wd_helper.au3" #Include "WinHttp.au3" #include <MsgBoxConstants.au3> #include <File.au3> #include <IE.au3> #include <Array.au3> #include <INet.au3> #include <AutoItConstants.au3> #include <WinAPIFiles.au3> #include <GDIPlus.au3> #include <Excel.au3> #Include "WinHttp.au3" #Include "_HtmlTable2Array.au3" Local $sDesiredCapabilities, $sSession SetupChrome() _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_LoadWait($sSession) _WD_Navigate($sSession, "table1.html") _WD_LoadWait($sSession) _WD_WaitElement($sSession, $_WD_LOCATOR_ByXPath, "//table[@class='main']") Local $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//table[@class='main']") ;ConsoleWrite ("mat-table " & $sElement & @CRLF) Local $aArray1 = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, ".//td[contains(@class,'data')]", $sElement, True) sleep(1000) For $i = 0 to UBound($aArray1) - 1 $aArray1[$i] = _WD_ElementAction($sSession, $aArray1[$i], 'text') Next ;_ArrayDisplay($aArray1) ;Email variables $SmtpServer = "" ; address for the smtp-server to use - REQUIRED $FromName = "Hermes" ; name from who the email was sent $FromAddress = "sender@gmail.com" ; address from where the mail should come $ToAddress = "recipient@gmail.com" ; destination address of the email - REQUIRED, use commas (,) to add more email addresses $Subject = "File not found" ; subject from the email - can be anything you want it to be $Body = "File not found!" ; the messagebody from the mail - can be left blank but then you get a blank mail $AttachFiles = "" ; the file(s) you want to attach seperated with a ; (Semicolon) - leave blank if not needed $CcAddress = "" ; address for cc - leave blank if not needed $BccAddress = "" ; address for bcc - leave blank if not needed $Importance = "High" ; Send message priority: "High", "Normal", "Low" $Username = "" ; username for the account used from where the mail gets sent - REQUIRED $Password = "" ; password for the account used from where the mail gets sent - REQUIRED $IPPort = 25 ; port used for sending the mail $ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS $tls = 0 ; enables/disables TLS when required Local $oAppl = _Excel_Open() Local $sWorkbook = "c:\test.xlsx" Local $oWorkbook = _Excel_BookOpen($oAppl, $sWorkbook) ;open excel and pass both parameters If FileExists($sWorkbook) Then ;Check if the file exist. Local $oAppl = _Excel_Open() Local $sWorkbook = "c:\test.xlsx" Local $oWorkbook = _Excel_BookOpen($oAppl, $sWorkbook) ;open excel and pass both parameters Local $aArray2 = _Excel_RangeRead($oWorkbook,Default,$oWorkbook.ActiveSheet.Usedrange.Columns("A:A")) Local $iIdx Local $Skipline = 0 ;0==> first line Do Local $temprf For $i = 0 To UBound($aArray2) - 1 $temprf &= $aArray2[$i] _WD_WaitElement($sSession, $_WD_LOCATOR_ByXPath, ".//a[contains(@class,'edit') and contains(text(),'Edit')]") Local $aElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, ".//a[contains(@class,'edit') and contains(text(),'Edit')]", $sElement, True) $iIdx = _ArraySearch($aArray1, $aArray2[$i]) If @error Then ContinueLoop _WD_ElementAction($sSession, $aElement[$iIdx], 'click') If $i < $Skipline Then ContinueLoop $oRange = $oWorkbook.ActiveSheet.Range("B" & $i + 1 & ":XFD" & $i + 1) _Excel_RangeCopyPaste($oWorkbook.Activesheet, $oRange) ;Paste Local $oTest4 = _WD_FindElement($sSession, $_WD_LOCATOR_ByCSSSelector, "pastebutton") _WD_ElementAction($sSession, $oTest4, 'click') Sleep(1000) ;Save Button Local $save3 = _WD_FindElement($sSession, $_WD_LOCATOR_ByCSSSelector, "button.button") _WD_ElementAction($sSession, $save3, 'click') _Excel_RangeWrite($oWorkbook, $oWorkbook.Activesheet, "Completed", "B" & $i+1) sleep(1000) Next Until (Not @error) _Excel_Close($oWorkbook) Else _INetSmtpMailCom($SmtpServer, $FromName, $FromAddress, $ToAddress, $Subject, $Body, $CcAddress, $BccAddress, $Importance, $Username, $Password, $IPPort, $ssl, $tls) Exit EndIf _WD_LoadWait($sSession) ;Attaching files to emails Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_CcAddress = "", $s_BccAddress = "", $s_Importance="Normal", $s_Username = "", $s_Password = "", $IPPort = 25, $ssl = 0, $tls = 0) Local $objEmail = ObjCreate("CDO.Message") $objEmail.From = '"' & $s_FromName & '" <' & $s_FromAddress & '>' $objEmail.To = $s_ToAddress Local $i_Error = 0 Local $i_Error_desciption = "" If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress If $s_BccAddress <> "" Then $objEmail.Bcc = $s_BccAddress $objEmail.Subject = $s_Subject If StringInStr($as_Body, "<") And StringInStr($as_Body, ">") Then $objEmail.HTMLBody = $as_Body Else $objEmail.Textbody = $as_Body & @CRLF EndIf $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer If Number($IPPort) = 0 then $IPPort = 25 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $IPPort ;Authenticated SMTP If $s_Username <> "" Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password EndIf ; Set security params If $ssl Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True If $tls Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendtls") = True ;Update settings $objEmail.Configuration.Fields.Update ; Set Email Importance Switch $s_Importance Case "High" $objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "High" Case "Normal" $objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "Normal" Case "Low" $objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "Low" EndSwitch $objEmail.Fields.Update ; Sent the Message $objEmail.Send $objEmail="" EndFunc ;==>_INetSmtpMailCom Local $aDir = _FileListToArrayRec(@TempDir, "scoped_dir*;chrome_*", $FLTAR_FOLDERS, $FLTAR_NORECUR, $FLTAR_NOSORT, $FLTAR_FULLPATH) Sleep(2000) For $i = 1 To $aDir[0] DirRemove($aDir[$i], $DIR_REMOVE) Next _WD_LoadWait($sSession) _WD_Shutdown() Func SetupChrome() _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["start-maximized","disable-infobars"]}}}}' EndFunc ;==>SetupChrome If the excel file doesn't exists in the folder, it will send an email to a specific recipient.
      What i am trying figure out now is if the excel crashes while the script/loop is running, I want to relaunch the excel file continue to the last row before the excel crashed. So if the value of column B is not marked as "completed", it should continue from that row
      Appreciate any help that I can get to achieve this.
      table1.html test.xlsx
    • By vinnyMS
      #Include <Array.au3> #include <Constants.au3> $s = FileRead("2.txt") Local $w = StringRegExp($s, '(?is)(\b\w+\b)(?!.*\b\1\b)', 3) _ArrayColInsert($w, 1) For $i = 0 to UBound($w)-1 StringRegExpReplace($s, '(?i)\b' & $w[$i][0] & '\b', $w[$i][0]) $w[$i][1] = @extended Next _ArraySort($w, 1, 0, 0, 1) _ArrayDisplay($w) i have this script that returns 3 columns  
       
      i need to copy the  Col 0 and Col 1 as text to paste on notepad or excel
      you will have to create a "copy" button if possible
      array.au3 2.txt
    • By adityaparakh
      Hello ,
      I am trying to use Websockets in AutoIt.
      It is to fetch live stock market prices , API is provided and documentation available for python language.
      The link for the code snippet is :
      https://symphonyfintech.com/xts-market-data-front-end-api-v2/#tag/Introduction
      https://symphonyfintech.com/xts-market-data-front-end-api-v2/#tag/Instruments/paths/~1instruments~1subscription/post
       
      https://github.com/symphonyfintech/xts-pythonclient-api-sdk
       
      Second Link is to subscribe to a list of ExchangeInstruments.
      Now I would like to get live stock ltp (LastTradedPrice) for a few stocks whose "ExchangeInstrumentID" I know.
      I am able to use the WinHttp object to perform actions using simple codes like below :
      I have the secretKey and appkey and can generate the needed token. And get the unique ExchangeInstrumentID.

      Below code is just for example of how I am using WinHttp. Unrelated to socket part.
      Global $InteractiveAPItoken = IniRead(@ScriptDir & "\Config.ini", "token", "InteractiveAPItoken", "NA") $baseurl = "https://brokerlink.com/interactive/" $functionurl = "orders" $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("POST", $baseurl & $functionurl, False) $oHTTP.SetRequestHeader("Content-Type", "application/json;charset=UTF-8") $oHTTP.SetRequestHeader("authorization", $InteractiveAPItoken) $pD = '{ "exchangeSegment": "NSEFO", "exchangeInstrumentID": ' & $exchangeInstrumentID & ', "productType": "' & $producttype & '", "orderType": "MARKET", "orderSide": "' & $orderside & '", "timeInForce": "DAY", "disclosedQuantity": 0, "orderQuantity": ' & $qty & ', "limitPrice": 0, "stopPrice": 0, "orderUniqueIdentifier": "' & $orderidentifier & '"}' $oHTTP.Send($pD) $oReceived = $oHTTP.ResponseText $oStatusCode = $oHTTP.Status
          
          
      But am struggling to understand and use socket.
      Would be of great help if you can have a look at the link mentioned above and help with the code sample for AutoIt.
      To connect and listen to a socket.
      Thanks a lot
       
×
×
  • Create New...