Xandy

FTP_Screen

7 posts in this topic

#1 ·  Posted (edited)

Screenshot program that can upload/FTP to website/storage with hotkey.

Features GUI to display programmable keys.

dialog.gif

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:

settings_dialog.png

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: 

 

FTP_Screen.zip

File includes:

   - FTP_Screen.au3

   - FTPScreen.ico

   - TTS.au3 - by Beege

Edited by Xandy

I am not a lawyer.  (-_-) Xandy About  (^o^) Discord - Xandy Programmer

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I've only used this app with my website and FTP'd to there.

Someone please let me know if FTP_Screen works with things like Dropbox or other free storage sites.

I'd love to hear your stories about how you used FTP_Screen.

Edited by Xandy

I am not a lawyer.  (-_-) Xandy About  (^o^) Discord - Xandy Programmer

Share this post


Link to post
Share on other sites

#3 ·  Posted

It'd be pretty obvious via the code if it worked with your wishlist...  And from what I've read.. no.. it does exactly what it says it does

1 person likes this

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#4 ·  Posted

I don't know anything about connecting to Dropbox so I should have known better.

Thank you for your time. :)


I am not a lawyer.  (-_-) Xandy About  (^o^) Discord - Xandy Programmer

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Added: Open screenshots folder to Tools menu
Added: Option to disable voice narration

Fixed:
Changed _exit_hotkey function to flag $gQuit instead of Exit to protect user data changes
Termination should now always pass through the main() hitting the save() and recording $screenshot_counter so screenshots are not overwritten
I also save to disk in the setting dialog to ensure data is preserved, enter that data once and be done with it
Removed: $gClipboard_url_disable - it's in the settings array
Changed $ghGui to $hGui to reflect it's non-global state

Have you been thinking about downloading FTP_Screen and just weren't sure if it was the right time?
In the history of FTP_Screen there has never been a better time to download!

 

FTP_Screen homepage

Edited by Xandy

I am not a lawyer.  (-_-) Xandy About  (^o^) Discord - Xandy Programmer

Share this post


Link to post
Share on other sites

#6 ·  Posted

FTP_Screen is like a very stripped down version of ShareX created by @Jex :)

1 person likes this

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

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

  • Similar Content

    • Skeletor
      By Skeletor
      Hi All,
      I know many newbies search for this feature.
      I decided to share this piece of code with everyone.
      Basically its a "splash screen" that has a transparent image.
      In a nutshell - Gui with a transparent gif.
      Enjoy...
      Download attachment....
       
      Splash Screen GUI.zip
    • drorshem
      By drorshem
      Hi,
      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 ?
    • vindicta
      By vindicta
      Hello everyone,
      I am trying to setup a GUI accelerator to close the utility as soon as esc is pressed.  It works fine with hotkey but I want to make sure that the utility only exits if its window was active when esc was pressed. My utility has 2 buttons, Backup and Restore.
      The exit function checks if the button clicked was Backup or Restore and then displays an error message accordingly.
      If pressed backup, $button = 1
      if pressed restore, $button = 2
      the value of $button is set inside backup() or restore() functions
      Opt("GUIOnEventMode", 1) Opt("GUICoordMode", 1) $Form1 = GUICreate("Form1", 419, 124, 238, 194, $WS_DLGFRAME) $B_backup = GUICtrlCreateButton("Backup", 48, 40, 145, 41) $B_restore = GUICtrlCreateButton("Restore", 224, 40, 145, 41) ;================ > HotKeySet('{ESC}', "terminate") GUICtrlSetOnEvent($B_backup, "Backup") GUICtrlSetOnEvent($B_restore, "Restore") GUISetState(@SW_SHOW) Dim $accelKey[1][2] = [["{ESC}", terminate()]] GUISetAccelerators($accelKey) While 1     Switch GUIGetMsg()         Case $GUI_EVENT_CLOSE             Exit     EndSwitch WEnd  
      Exit function:
      func terminate() Do     $msg = GUIGetMsg() Until $msg <> 0 While 1         If $button = 1 Then             ProcessClose("robocopy.exe")             MsgBox(16, "Abort!", "Backup Aborted!")             exit         ElseIf $button = 2 Then             ProcessClose("robocopy.exe")             MsgBox(16, "Abort!", "Restore Aborted!")             exit         Else             While 1                 For $i = 3 To 1 Step -1                     SplashTextOn("Closing Utility...", $i, 130, 54, -1, -1, 0, "Calibri", "", 900)                     Sleep(1000)                 Next                 ExitLoop             WEnd             SplashOff()             Exit Endif WEnd What am I doing wrong here? The utility closes as soon as it launches with Splash text.
    • ronaldo97
      By ronaldo97
      Hello How can I make the GUI is compatible with all screen sizes ??  
      #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 623, 445, 192, 124, BitOR($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZE)) GUISetBkColor(0x1E1E1E) $Label1 = GUICtrlCreateLabel("Welcome Back !!", 424, 64, 161, 29) GUICtrlSetFont(-1, 16, 400, 0, "Tahoma") GUICtrlSetColor(-1, 0x800000) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd How do I make Gui interface compatible with all screen sizes ?? 800*600
      1024*768
      1280*1024
    • mazz3d
      By mazz3d
      hello  everyone,
      I'm new with AutoIT and just looking for a way to open Firefox with random window size
      i have tried too many different samples from the web, some how it works but i can't make it works with Firefox 
      MozRpel and ff.au3 installed 
      right now i can open Firefox with this code, but i still can't control the window of Firefox
      ; open firefox #include <ff.au3> _FFStart() ; open firefox with random size