qwertylol Posted April 28, 2007 Share Posted April 28, 2007 how do I load screenshot.jpg into a variable? is it $string = "screenshot.jpg" ? Link to comment Share on other sites More sharing options...
Generator Posted April 28, 2007 Share Posted April 28, 2007 how do I load screenshot.jpg into a variable?is it $string = "screenshot.jpg" ?Yes if you wish to use that to link up the file dir Link to comment Share on other sites More sharing options...
smashly Posted April 28, 2007 Share Posted April 28, 2007 Like you said but maybe add the path with the screenshot.jpg your storing in the variable eg: $string = "C:\Screenshots\screenshot.jpg" or $string = @ScriptDir & "\screenshot.jpg" etc.. Cheers Link to comment Share on other sites More sharing options...
qwertylol Posted April 28, 2007 Author Share Posted April 28, 2007 how do I create files with a loop? not the content, just to name the files in an order. the file names should be like ( file & $number.jpg ) so they all look like file01.jpg file02.jpg file03.jpg file04.jpg file05.jpg file06.jpg Link to comment Share on other sites More sharing options...
smashly Posted April 28, 2007 Share Posted April 28, 2007 (edited) #include <File.au3> $i = 0 Do $i = $i + 1 _FileCreate(@ScriptDir & '\file0' & $i & '.jpg') Until $i = 6 Edited April 28, 2007 by smashly Link to comment Share on other sites More sharing options...
qwertylol Posted April 28, 2007 Author Share Posted April 28, 2007 #include <File.au3> $i = 0 Do $i = $i + 1 _FileCreate(@ScriptDir & '\file0' & $i & '.jpg') Until $i = 6 gotcha 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