botanic Posted January 11, 2007 Share Posted January 11, 2007 (edited) Im trying to make it so that if the $user is "" or " " then it makes you type in the username but it wont write to the ini file it just loops and returns a empty space CODE$OURNAME = IniRead($INiTRADE, "Trade", "AccountName", "") $USER = $OURNAME If $USER = "" Then $USER = IniRead($INIFILE, "Trade", "AccountName", "ENTER YOUR NAME") if ($USER = "") or ($USER = "ENTER YOUR NAME") Then _user2() EndIf func _user2() $mes = InputBox("Username", "Please enter your Username.") While ($mes = "") or ($mes = " ") $mes = InputBox("Username", "You must enter your Username for the bot to work.") WEnd IniWrite($INiTRADE, "Trade", "AccountName", "") _1x() EndFunc Edited January 11, 2007 by botanic Link to comment Share on other sites More sharing options...
BrettF Posted January 11, 2007 Share Posted January 11, 2007 With this example: ;Asks the user to enter a 1 or 2 character response. The M in the password ;field indicates that blank string are not accepted and the 2 indicates that the ;responce will be at most 2 characters long. $value = InputBox("Testing", "Enter the 1 or 2 character code.", "", " M2")oÝ÷ Ù8^znµº1q©ç¢ÖÞzjmÉ*2¢ì(ºWpj{l¢g)à)jëh×6InputBox("Username", "Please enter your Username.", "", " M") Hope that helps with some of your script Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
botanic Posted January 11, 2007 Author Share Posted January 11, 2007 i doesnt loop the msgbox it loops bakc to the beginig the script is actually _1x() If $USER = "" Then $USER = IniRead($INIFILE, "Trade", "AccountName", "ENTER YOUR NAME") if ($USER = "") or ($USER = "ENTER YOUR NAME") Then _user2() EndIf ... Link to comment Share on other sites More sharing options...
botanic Posted January 11, 2007 Author Share Posted January 11, 2007 it just wont write what is in the inputbox to the ini file... Link to comment Share on other sites More sharing options...
Paulie Posted January 11, 2007 Share Posted January 11, 2007 it just wont write what is in the inputbox to the ini file...$IniFile= "C:\Bla\bla\foo\MyIni.ini" $input = InputBox("Username", "Please enter your Username.", "", " M") IniWrite($IniFile, "Usernames", "key 1", $Input) Link to comment Share on other sites More sharing options...
botanic Posted January 11, 2007 Author Share Posted January 11, 2007 thanks i didnt notice i hadnt changet that... lol Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now