Jump to content

*quick Script Tester*


ConsultingJoe
 Share

Recommended Posts

I made this because I am lazy. I am sick of copying someones script from the forum and pasting it into the editor then running it from there.

This script avoids all that. All you do is select the script text, and hit F2. Esc exits.

When you hit F2 it will not mess up your original clipboard text, it will run the selected text even if it's compiled.

Tell me what you think guys :think:

Thanks Valuater For the wapper

CODE
HotKeySet( "{f2}", "quitrun")

HotKeySet( "{esc}", "quit")

$file = @TempDir & "\QS.au3"

While 1

Sleep(250)

WEnd

Func quitrun()

FileDelete($file)

$original = ClipGet()

ClipPut("")

Send( "{ctrldown}")

Send("c")

Send("{ctrlup}")

Sleep(50)

$script = ClipGet()

If $script = "" Then

TrayTip("", "No Script Selected", 1, 16)

Else

FileWrite($file, $script)

If @Compiled = 1 Then

$file_exe = FileGetShortName(@AutoItExe & ' /AutoIt3ExecuteScript "' & $file & '"')

Run($file_exe)

Else

Run(@AutoItExe & " " & $file, "", @SW_HIDE)

EndIf

EndIf

ClipPut($original)

EndFunc ;==>quitrun

Func quit()

FileDelete($file)

Send("{ctrlup}")

Exit

EndFunc ;==>quit

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Link to comment
Share on other sites

when i paste this into scite it appears all on line 1(same with notepad). So i had to fix it. Anyway i hate pasting scripts and saving them aswell. This is very useful. Well done

edit: It cant find GUIConstants.au3 and most likely other includes aswell. A message box appears with the error

Edited by RazerM
My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...