Jump to content

Compile from clipboard


Recommended Posts

the compiler (au3 wrapper) only accepts a filename as a parameter, not a string to compile, and so does UPX (the compiler used to compile Au3 Scripts, but you should know it :D)

so you should write your own compiler (but it's... difficult... extremely difficult :o)

so in conclusion... the answer to your question is NO :D

anyway where would this come useful ?

answering to mdiesel: As far as I know it is stored in the RAM, not in a temp file

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Link to comment
Share on other sites

Here you go:

#include<file.au3>

$script = ClipGet()
_FileCreate("C:\Temp\script.au3")
FileOpen("C:\Temp\script.au3", 2)
FileWrite("C:\Temp\script.au3", $script)
ShellExecuteWait(@ProgramFilesDir & '\AutoIt3\Aut2Exe\Aut2exe.exe', '/in "C:\Temp\script.au3" /out "' & @ScriptDir & '\yourscript.exe"')
FileDelete("C:\Temp\script.au3")

But for some reason it won't delete the temporary script for me.

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Link to comment
Share on other sites

yehia didn't want to pass through an au3 file!!

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Link to comment
Share on other sites

Thats the only way to do it unless he wants to make his own compiler.

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

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...