zxtnt09

User/Pw inetget

4 posts in this topic

#1 ·  Posted (edited)

please delete post thanks

Edited by hasan11

Share this post


Link to post
Share on other sites



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")
1 person likes this

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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
1 person likes this

Share this post


Link to post
Share on other sites

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