Hi all, I have to pass the username and password stored in of the .txt file in my system to the autoit file. i m tryin to automate gmail. i dont want to store it directly as a variable within . iI there any way to pass these information directly or a way by which i can pass the content of my file as a variable to autoit and then use it...
Thanx.
Page 1 of 1
how to pass content with in file as a parameter
#2
Posted 23 April 2009 - 12:33 AM
Hi,
An ini file is a txt file that is structured to get and/or store information easily so I would be recommending that method to you unless you have special needs.
example code
An ini file is a txt file that is structured to get and/or store information easily so I would be recommending that method to you unless you have special needs.
example code
; ini file name to use $file_ini = 'my program settings.ini' ; create ini file if not exists If Not FileExists($file_ini) Then IniWrite($file_ini, 'gmail', 'username', '') IniWrite($file_ini, 'gmail', 'password', '') EndIf ; read ini file values form gmail section $username = IniRead($file_ini, 'gmail', 'username', '') $password = IniRead($file_ini, 'gmail', 'password', '') ; show result MsgBox(0, Default, '$username = ' & $username & @CRLF & '$password = ' & $password) ; example of checking for non empty values for both values If $username <> '' And $password <> '' Then MsgBox(0, Default, 'both variables have values worth using') EndIf
#3
Posted 03 May 2009 - 02:50 PM
Hey.. Thanks a lot... i used FILEREAD and READLINE to do the job but ur Information was something new and i ll try to work as per ur example...
Regards
Regards
- ← Winamp 5 Silent Install Working !
- Application Installs
- Unattended Installation Avira Antivirus 9 on Windows 7 →
Share this topic:
Page 1 of 1



Help
Back to top









