Kyler Carlson Posted September 9, 2006 Posted September 9, 2006 (edited) Hey. A script I found has this line. RunWait(@ScriptDir & "\pvw32con.exe " & '"' & $s_path & '"' & " -w --oo " & '"' & @WindowsDir & "\xwall.bmp" & '"', @ScriptDir, @SW_HIDE) when I try and run it, I get this error C:\Documents and Settings\HP_Administrator\Desktop\wall changer.au3 (85) : ==> Unable to execute the external program.: RunWait(@ScriptDir & "\pvw32con.exe " & '"' & $s_path & '"' & " -w --oo " & '"' & @WindowsDir & "\xwall.bmp" & '"', @ScriptDir, @SW_HIDE) The system cannot find the file specified. so does anybody know what pvw32con.exe is or a way to convert a .jpg file into a .bmp file. I didn't write the origional script and I want the conversion to be automated so don't tell me to open it in paint and then save it as a bpm please. Thanks for some help. EDIT: I googled the file I was missing and found it. It now works. Edited September 9, 2006 by Kyler Carlson
bigassmuffin Posted September 9, 2006 Posted September 9, 2006 you dont even have to convert the image, if you jsut open up the image, and lcick save as, then select bmp. file to save as...and overwirte old file
Kyler Carlson Posted September 9, 2006 Author Posted September 9, 2006 i'm looking for more of an automated way to do it with autoit though rather than manually opening it and saving it as a bmp because thats kind of impractical to do with potentially over 100 pictures
Josbe Posted September 9, 2006 Posted September 9, 2006 I'll recommend you a third-party tool with command line, as such IrfanView.Example: RunWait("i_view32.exe myGraphic01.jpg /convert=myGraphic01.bmp") AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
NELyon Posted September 9, 2006 Posted September 9, 2006 $pic = FileRead("test.jpg") FileWrite("testconverted.bmp", $pic) I didn't really think that would work, but i guess it does.
Josbe Posted September 9, 2006 Posted September 9, 2006 $pic = FileRead("test.jpg") FileWrite("testconverted.bmp", $pic) I didn't really think that would work, but i guess it does.Not really (Isn't format conversion). AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
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