Hello, im trying to make a very simple license system hehe.
The objetive is read from website if i added a permision for that uniqueID machine (This part works)
https://prnt.sc/we70zb
Here starts the problem, when im comparing each result with the current ID, all are showed as false.
I know this should be Correct result number 4, but it is not
https://prnt.sc/we73nc
#include <APIDiagConstants.au3>
#include <WinAPIDiag.au3>
#include <IE.au3>
#include <Inet.au3>
#include <array.au3>
#include <MsgBoxConstants.au3>
$myHWID = (_WinAPI_UniqueHardwareID())
;~ ConsoleWrite($myHWID)
$source = _INetGetSource("http://webfortesting3265.cloudaccess.host/database.txt")
;~ MsgBox(0,"info",$source ,0,0)
Check_Active_License()
Func Check_Active_License()
Local $license[0] = StringSplit($source, ",")
For $i = 1 To $license[0]
If ($myHWID = $license[$i]) Then
ConsoleWrite('Found')
Else
MsgBox(0,"Your HWID: " & $myHWID, 'Any coincidence with ' & $license[$i] )
EndIf
Next
EndFunc