Jump to content

Export file


KenzoIT
 Share

Recommended Posts

Hi everyone,

How to export info from the frame to Desktop when I press Export button ?

#include <GUIConstantsEx.au3>

#include <ButtonConstants.au3>

#Include <File.au3>

Opt('MustDeclareVars', 1)

_Main()

Func _Main()

Local $input, $export

Local $buttonclose

GUICreate("Test", 240, 180)

$input = GUICtrlCreateInput("",10,70,120,25)

$export = GUICtrlCreateButton("Export",140,70,40,25)

$buttonclose = GUICtrlCreateButton("Close", 20, 130, 40, 40, $BS_ICON)

GUICtrlSetImage(-1, "shell32.dll", 28)

GUISetState()

While 1

Switch GUIGetMsg()

Case $GUI_EVENT_CLOSE

ExitLoop

Case $export

_FileWriteLog($input,@desktopdir & "test.txt")

Case $buttonclose

ExitLoop

Case Else

EndSwitch

WEnd

GUIDelete()

EndFunc

Pls, help me solve the problem.

Many thanks !

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