Jump to content

Recommended Posts

What you mean as "open"? You can download from server with internal commands (InetGet, InetGetSize, FtpSetProxy, FtpBinaryMode), or delete, upload etc with this UDF.

<{POST_SNAPBACK}>

I have made a script, now i want the script to:

1. open a .txt file on my ftp-server, and load it into the edit box.

2. and save it again on the server when the save (GEM) button is pressed..

heres my script:

#include <GuiConstants.au3>


$mainwindow = GuiCreate("Lan-Partys", 400, 400)

$savebutton = GUICtrlCreateButton ( "GEM", 100, 5, 200, 60, 0x0300)

$Cancel_Btn = GUICtrlCreateButton ( "LUK", 10, 5, 40, 40, 0x0300)

; EDIT
GuiCtrlCreateEdit("Lan-Partys", 10, 110, 380, 280)

; PROGRESS
GuiCtrlCreateLabel("Fremgang:", 10, 82)
$progress = GuiCtrlCreateProgress(70, 80, 320, 20, 0x01)
GuiCtrlSetData(-1, 00)

;Show window/Make the window visible
GUISetState(@SW_SHOW)

While 1
 ;After every loop check if the user clicked something in the GUI window
   $msg = GUIGetMsg()

   Select
   
    ;Check if user clicked on the close button
      Case $msg = $GUI_EVENT_CLOSE
       ;Exit the script
         Exit
         
    ;Check if user clicked on the "OK" button
      Case $msg = $savebutton

    ;Check if user clicked on the "CANCEL" button
      Case $msg = $Cancel_Btn
         Exit

   EndSelect

WEnd
Mads3n.dk
Link to post
Share on other sites

1. open a .txt file on my ftp-server, and load it into the edit box.

<{POST_SNAPBACK}>

You can download from server with internal commands (InetGet, InetGetSize, FtpSetProxy, FtpBinaryMode)

<{POST_SNAPBACK}>

2. and save it again on the server when the save (GEM) button is pressed..

<{POST_SNAPBACK}>

or delete, upload etc with this UDF.

<{POST_SNAPBACK}>

Edited by w0uter

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...