Jump to content

How to write a file in autoit except Filewrite..


Recommended Posts

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

Link to comment
Share on other sites

: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!

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...