abybaddi009 Posted June 19, 2011 Share Posted June 19, 2011 Hello all! I was trying to code something like this but the script executes only till the first dialog box in the loop. Any suggestions? Func check() Global $folder[2]=["blah","blah","blah"] Local $i=0 Do if FileExists($drive[$i]) Then MsgBox(1,"Exists",$folder[$i]) Else MsgBox(1,"Doesn't",$folder[$i]) EndIf $i += 1 Until $i <= 2 EndFunc MsgBox(0,"Hello!","abybaddi009 says Hello! to you...") check() #include<god.h>_asm //don't look!!![spoiler]x DB "aby'y DB 'GOD'tmp DB ? MOV CX,3 LEA SI, y LEA DI, tmp REP MOVSB LEA SI, x LEA DI, y REP MOVSB LEA SI, tmp LEA DI, x REP MOVSB MOV AH,09 MOV DX, OFFSET x INT 21h MOV DX, OFFSET y INT 21h[/spoiler] Link to comment Share on other sites More sharing options...
abybaddi009 Posted June 19, 2011 Author Share Posted June 19, 2011 I did it!!! It has to be >=2.... Thanks to myself.. #include<god.h>_asm //don't look!!![spoiler]x DB "aby'y DB 'GOD'tmp DB ? MOV CX,3 LEA SI, y LEA DI, tmp REP MOVSB LEA SI, x LEA DI, y REP MOVSB LEA SI, tmp LEA DI, x REP MOVSB MOV AH,09 MOV DX, OFFSET x INT 21h MOV DX, OFFSET y INT 21h[/spoiler] Link to comment Share on other sites More sharing options...
JohnOne Posted June 19, 2011 Share Posted June 19, 2011 Well done, nice to see people figuring stuff out. Give yourself a pat on the back and take a cookie from the jar. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
abybaddi009 Posted June 19, 2011 Author Share Posted June 19, 2011 Is there a way to use variables like this? $d="C:\" FileExists($d"autorun.inf") #include<god.h>_asm //don't look!!![spoiler]x DB "aby'y DB 'GOD'tmp DB ? MOV CX,3 LEA SI, y LEA DI, tmp REP MOVSB LEA SI, x LEA DI, y REP MOVSB LEA SI, tmp LEA DI, x REP MOVSB MOV AH,09 MOV DX, OFFSET x INT 21h MOV DX, OFFSET y INT 21h[/spoiler] Link to comment Share on other sites More sharing options...
jchd Posted June 19, 2011 Share Posted June 19, 2011 Of course! $d = "C:\" If FileExists($d & "autorun.inf") Then ... Lookup Operators in help file. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
abybaddi009 Posted June 19, 2011 Author Share Posted June 19, 2011 Thanks a million! #include<god.h>_asm //don't look!!![spoiler]x DB "aby'y DB 'GOD'tmp DB ? MOV CX,3 LEA SI, y LEA DI, tmp REP MOVSB LEA SI, x LEA DI, y REP MOVSB LEA SI, tmp LEA DI, x REP MOVSB MOV AH,09 MOV DX, OFFSET x INT 21h MOV DX, OFFSET y INT 21h[/spoiler] Link to comment Share on other sites More sharing options...
Mikeman27294 Posted June 19, 2011 Share Posted June 19, 2011 Well done on figuring that out yourself. But just to be a pain (I dont really wanna be a pain), could you please name your topics related to your problem? This means that people who click on the link know what you need help with, and also, people who search for that particular topic find your topic, and possibly the answer to their problem. But again, congrats. Link to comment Share on other sites More sharing options...
abybaddi009 Posted June 21, 2011 Author Share Posted June 21, 2011 Well done on figuring that out yourself. But just to be a pain (I dont really wanna be a pain), could you please name your topics related to your problem? This means that people who click on the link know what you need help with, and also, people who search for that particular topic find your topic, and possibly the answer to their problem. But again, congrats.Ok dude no offense taken... I'll do it next time... #include<god.h>_asm //don't look!!![spoiler]x DB "aby'y DB 'GOD'tmp DB ? MOV CX,3 LEA SI, y LEA DI, tmp REP MOVSB LEA SI, x LEA DI, y REP MOVSB LEA SI, tmp LEA DI, x REP MOVSB MOV AH,09 MOV DX, OFFSET x INT 21h MOV DX, OFFSET y INT 21h[/spoiler] 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