Miyu Posted May 31, 2008 Share Posted May 31, 2008 i just edited this from the package of Au3 setup that i have downloaded here from the site. i converted it into an executable (passbox.exe) now what i want to do is attach it into my USB Flash drive (1Gb) and link it with a file called (autorun.inf) which contains something like this [autorun] icon=passbox.exe label=Miyu's USB shell\open\comand=passbox.exe so that when i double click on my USB it will activate the passbox.exe and when i entered the correct thing. what i want to happen is open the USB i have attached the sample of passbox.au3 together with this message hope someone with a good heart will give solution to my simple problem or if ever have some better idea please help me outpassbox.au3 Link to comment Share on other sites More sharing options...
BrettF Posted May 31, 2008 Share Posted May 31, 2008 i just edited this from the package of Au3 setup that i have downloaded here from the site. i converted it into an executable (passbox.exe) now what i want to do is attach it into my USB Flash drive (1Gb) and link it with a file called (autorun.inf) which contains something like this [autorun] icon=passbox.exe label=Miyu's USB shell\open\comand=passbox.exe so that when i double click on my USB it will activate the passbox.exe and when i entered the correct thing. what i want to happen is open the USB i have attached the sample of passbox.au3 together with this message hope someone with a good heart will give solution to my simple problem or if ever have some better idea please help me outpassbox.au3 Not possible unless you can mod your drive to run it... U3 drives it will... but otherwise I've never seen nothing. But then again, correct me if I'm wrong. 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...
Miyu Posted May 31, 2008 Author Share Posted May 31, 2008 i attached it into my USB Flash drive (1Gb) and link it with a file called (autorun.inf) which contains something like this [autorun] icon=passbox.exe label=Miyu's USB shell\open\comand=passbox.exe what i want is when i type the correct password then it should open the directory where i place the au3 file which i converted into an exe, (for example when i place it to USB) it will open the usb or if i place it into (d:\) or (c:\) it will open those mentioned. hope u understan my english ; Loop around until the user gives a valid "autoit" answer $bLoop = 1 While $bLoop = 1 $Pass = InputBox("Enter Password", "Typ the password here.", "", "*") If @error = 1 Then MsgBox(4096, "Error", "Action Invalid") Else ; They clicked OK, but did they type the right thing? If $Pass <> "milky18" Then MsgBox(4096, "Error", "You typed in the wrong thing - try again!") Else $bLoop = 0 ; Exit the loop - ExitLoop would have been an alternative too :) EndIf EndIf WEnd ; Print the success message MsgBox(4096,"Access Granted", "-----------------=Welcome Miyu=-----------------") ; Finished! 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