Jump to content
zxtnt09

User/Pw inetget

Recommended Posts

zxtnt09

please delete post thanks

Edited by hasan11

Share this post


Link to post
Share on other sites
Herb191

Something like this?

$sFilePath = @ScriptDir & "\member.ini"

InetGet("http://test.com/member.ini", $sFilePath)

Local $sUserName = "Username" = IniRead($sFilePath, "section", "Username")
Local $sPassword = IniRead($sFilePath, "section", "Password")
  • Like 1

Share this post


Link to post
Share on other sites
Herb191

Try this:

Local $sFilePath = @ScriptDir & "\member.ini"

;change to the right URL
;InetGet("http://test.com/member.ini", $sFilePath)

Local $sUserName = IniRead($sFilePath, "UserAndPass", "Username", Default)
Local $sPassword = IniRead($sFilePath, "UserAndPass", "Password", Default)

ConsoleWrite("The user name is: " & $sUserName & @CRLF)
ConsoleWrite("The password is: " & $sPassword & @CRLF)

The ini file I made for testing is called member.ini and looks like this:

[userAndPass]
Username=ThisIsMyName
Password=ThisIsMyPass

Edited by Herb191
  • Like 1

Share this post


Link to post
Share on other sites
Herb191

You're welcome.

Share this post


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

×