AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Helpful AutoIt scripts for all! (https://forums.alliedmods.net/showthread.php?t=145751)

minimiller 12-19-2010 18:28

Helpful AutoIt scripts for all!
 
What it is:
Quote:

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying "runtimes" required!

AutoIt was initially designed for PC "roll out" situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect.
-Get it here-

In English:
Download it, bosh some code in a .au3 file, compile it to an .exe and you have yourself a funky script that does all kinds of stuff!

List of scripts:
  1. File Uploader

Notes:
I'll add updates if people actually use these scripts and find bugs.
Request a (realistic) script and ill see what i can do =]

minimiller 12-19-2010 18:29

Re: Helpful AutoIt scripts for all!
 
File Uploader
Quite handy if you have a webserver and you dont want to use a turdy uploading thing like imageshack.
Also, the URL to the file will be copied to your clipboard after its uploaded.
Code:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;                                                        ;
;    Created by Stewie!                                ;
;                                                        ;
;    Instructions:                                      ;
;    Drag and drop files to the .exe to upload them    ;
;                                                        ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include <FTPEx.au3>

$file = $CmdLine[1]

If $file Then
        $parse = StringSplit($CmdLine[1], "\")
        $num = $parse[0]
        $filename = $parse[$num]
       
        $host = "example.com"                        ; Hostname of the webserver (Can be a domain name or an IP)
        $user = "username"                        ; FTP Username
        $pass = "password"                        ; FTP Password
        $public = "/public_html/"                ; If you dont have a /public_html/ leave this as blank ("")
        $folder = "/uploads/"                        ; This is the folder where your files will upload to
        $open = _FTP_Open("MySQL Upload")
       
        If $open Then
                $conn = _FTP_Connect($open, $host, $user, $pass, 0, 21)
               
                If $conn Then
                        $ftpp = _FTP_FilePut($conn, $CmdLine[1], $public & $folder & $filename)
                       
                        If $ftpp Then
                                _FTP_Close($open)
                                ClipPut("http://" & $host & $folder & $filename)
                        EndIf
                EndIf
        EndIf
EndIf

How To Use
  1. Open a text file.
  2. Drag your file (.mp3, .jpg, .txt etc.) to the compiled .exe file.
  3. Sit back and wait.
  4. Paste the URL thats in your clipboard to your friends!

Exolent[jNr] 12-19-2010 19:22

Re: Helpful AutoIt scripts for all!
 
I want a script that will make me a sandwich.

DarkGod 12-19-2010 19:36

Re: Helpful AutoIt scripts for all!
 
Quote:

Originally Posted by Exolent[jNr] (Post 1374994)
I want a script that will make me a sandwich.

In other words; you need a woman.

Exolent[jNr] 12-19-2010 19:39

Re: Helpful AutoIt scripts for all!
 
Quote:

Originally Posted by DarkGod (Post 1375007)
In other words; you need a woman.

I have one, just not living with me.

minimiller 12-19-2010 20:04

Re: Helpful AutoIt scripts for all!
 
Quote:

Originally Posted by Exolent[jNr] (Post 1374994)
I want a script that will make me a sandwich.

:lolface:
might have to wait for an autoit update before i can get that to you

sinblaster 12-19-2010 20:17

Re: Helpful AutoIt scripts for all!
 
Quote:

Originally Posted by Exolent[jNr] (Post 1374994)
I want a script that will make me a sandwich.

mmmwwwwhahahahahahaha


All times are GMT -4. The time now is 01:35.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.