Sign in to follow this  
Followers 0
KenzoIT

Export file

3 posts in this topic

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 !

Share this post


Link to post
Share on other sites



Hi,

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

;-))

Stefan

Share this post


Link to post
Share on other sites

Thanks for your support. :)

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