Sign in to follow this  
Followers 0
GianAutoitprogrammer

How to write a file in autoit except Filewrite..

5 posts in this topic

:unsure:

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?....

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

:unsure:

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 by jscript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Share this post


Link to post
Share on other sites

tnx :unsure:

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

This one

tnx :unsure:

#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 by GianAutoitprogrammer

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0