GianAutoitprogrammer Posted April 16, 2011 Posted April 16, 2011 I CAN'T WRITE A FILE USING THE FILEWRITE METHOD! MY SCRIPT WILL SAVE A FILE... HERE IS MY SCRIPT: #Include <ScreenCapture.au3> global $savefile _ScreenCapture_Capture($savefile) $savefile1 = FileSaveDialog( "Choose the file name ", @Desktopdir, "Bitmap Image (*.bmp)", 2) FileWrite($savefile1, $savefile ) Any Idea to correct my script?....
JScript Posted April 16, 2011 Posted April 16, 2011 (edited) I CAN'T WRITE A FILE USING THE FILEWRITE METHOD! MY SCRIPT WILL SAVE A FILE... HERE IS MY SCRIPT: #Include <ScreenCapture.au3> global $savefile _ScreenCapture_Capture($savefile) $savefile1 = FileSaveDialog( "Choose the file name ", @Desktopdir, "Bitmap Image (*.bmp)", 2) FileWrite($savefile1, $savefile ) Any Idea to correct my script?.... You do not need to report your problem SHOUT! Before posting a question you should use the AutoIt help file. If you do not understand or do not find what you need, then post your questions! #include <ScreenCapture.au3> _Main() Func _Main() Local $hBmp ; Capture full screen $hBmp = _ScreenCapture_Capture ("") $sSaveFile = FileSaveDialog( "Choose the file name ", @Desktopdir, "Bitmap Image (*.bmp)", 2) ; Save bitmap to file _ScreenCapture_SaveImage($sSaveFile, $hBmp) EndFunc ;==>_Main Edited April 16, 2011 by jscript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
JScript Posted April 16, 2011 Posted April 16, 2011 tnx What do I posted solved the problem? http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
GianAutoitprogrammer Posted April 16, 2011 Author Posted April 16, 2011 (edited) This one tnx #include <ScreenCapture.au3> _Main() Func _Main() Local $hBmp ; Capture full screen $hBmp = _ScreenCapture_Capture ("") $sSaveFile = FileSaveDialog( "Choose the file name ", @Desktopdir, "Bitmap Image (*.bmp)", 2) ; Save bitmap to file _ScreenCapture_SaveImage($sSaveFile, $hBmp) EndFunc ;==>_Main Edited April 16, 2011 by GianAutoitprogrammer
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