1 post in this topic
Screenshot program that can upload/FTP to website/storage with hotkey.
Features GUI to display programmable keys.
Set the hotkeys with this function to use, and display hotkeys.
; hotkey_set() Parameters: ; ----------------------------------------------------------- ; $aHotkey - The array hotkeys are stored in. This function sets the values of this array[hotkey_id][$hotkey_data] ; $dHotkey_id - The enum for this hotkey index ; $sHotkey_description - The label displayed to the user to represent function of hotkey ; $sHotkey_name - The hotkey it'self. Whatever name string you want to give the key ; $dHotkey_key - The _IsPressed keycode ; Keycodes AT: https://www.autoitscript.com/autoit3/docs/libfunctions/_IsPressed.htm ; $dHotkey_shift - Shift flag 0 or 1 Default off ; $dHotkey_ctrl - Ctrl flag 0 or 1 Default off ; $dHotkey_alt - Alt flag 0 or 1 Default off Func hotkey_set(ByRef $aHotkey, $dHotkey_id, $sHotkey_description, $sHotkey_name, $dHotkey_key, $dHotkey_shift = 0, $dHotkey_ctrl = 0, $dHotkey_alt = 0) $aHotkey[$dHotkey_id][$eHotkey_data_key_description] = $sHotkey_description $aHotkey[$dHotkey_id][$eHotkey_data_key_name] = $sHotkey_name $aHotkey[$dHotkey_id][$eHotkey_data_key] = $dHotkey_key $aHotkey[$dHotkey_id][$eHotkey_data_shift] = $dHotkey_shift $aHotkey[$dHotkey_id][$eHotkey_data_ctrl] = $dHotkey_ctrl $aHotkey[$dHotkey_id][$eHotkey_data_alt] = $dHotkey_alt EndFunc ;==>hotkey_set ; You can set your hotkeys here ; Please visit the hotkey_set() function for parameter information hotkey_set($aHotkey, $eHotkey_screenshot_ftp, "Selected Window to FTP", "F12", "7B", 0, 1, 0); F12 hotkey_set($aHotkey, $eHotkey_screenshot_disk, "Selected Window to Disk", "S", "53", 1, 1, 1); S hotkey_set($aHotkey, $eHotkey_clipboard_send, "Send Clipboard keystrokes", "F10", "79", 1, 1, 1); F10
Configure settings dialog:
Screenshot Filename and Screenshot Counter, are used to create simple unique filenames that can cycle. Copy URL to clipboard option. - For linking your screenshots. The screenshot file type is for local copy only. App always uses .JPG for FTP right now, but I could add FTP screenshot file type specification.
Any suggestions? Did I break anything, what did I miss?
Package uses TTS.au3 by Beege:
- TTS.au3 - by Beege
I'm looking to create a script which will download all *.txt files from a remote FTP server.
Once downloaded, delete all *.txt files.
Can this be achieved using AutoIt ?
I'm using the udf #include <FTPEx.au3> to "download" some files from our zOS (MVS) system via autoit FTP with _FTP_FileGet.
The FileGet works, but the codepage is wrong. Special German chars like öäüß are not transfered correctly.
Any idea how to set the codepage? Swichting between binary or ascii doesn't solve the problem.
Using the ftp command in a cmd.exe window it works like this : quote site sbd=(IBM-273,iso8859-1)
Hi, how to get full error reporting if FTP failed?
tried _WinAPI_GetLastErrorMessage() func but That didn't help at all. the information was returned by _WinAPI_GetLastErrorMessage() can't help me!
_FTP_Open, return Success: a handle, Failure: 0 and sets the @error flag to non-zero
_FTP_Connect, return Success: an handle to connected session. Failure: 0 and sets the @error flag to non-zero.
_FTP_DirCreate, return Success: 1. Failure: 0.
_FTP_FilePut, return Success: 1. Failure: 0 and sets the @error flag to non-zero.
Any help would be much appreciated
I am trying to write a script that FTPs multiple files to the same destination using the same FTP session. The script takes the source files, places them on the FTP server, the files should be FTP'd and then moved into the SENT folder in the original location. I seem to have got everything working except when i try to FTP multiple files, if i put a specific file name under $LocalFile & $RemoteFile under FTP_FilePut then the script works, can anyone tell me where I am going wrong please? I've visited other forums and input an array for the $LocalFile which seems to work, as if i put an ArrayDisplay in it does show me all the files in the folder. I have tried to enter a path, "". '' and "*.*" for $RemoteFile but nothing seems to work:
Local $Server = 'ftp.com'
Local $Username = 'user'
Local $Password = 'password'
Local $LocalFile = 'C:\FTP\doc.txt'
Local $RemoteFile = '*.*'
Local $FilePath = 'C:\FTP'
FileMove ("\\COMP\Source\*.txt", "\\COMP\FTP")
If FileExists ( "\\COMP\FTP" ) Then
Local $FileList = _FileListToArray($FilePath, "*", 1)
Local $Open = _FTP_Open('FTP Test')
Local $Connect = _FTP_Connect($Open, $Server, $Username, $Password)
If $Connect <> 0 Then
For $i = 1 to $FileList - 1
Local $Transfer = _FTP_FilePut($Connect, $FileList[$i], "" ,0 ,0) <------------- I think the problem is with the $RemoteFile part
FileMove ( "\\COMP\FTP\*.txt", "\\COMP\Source\SENT")