Jump to content



Photo

Instant Run


  • Please log in to reply
14 replies to this topic

#1 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 02 June 2008 - 12:16 PM

Hi there!

I wrote a script which makes you run your scripts even if they aren't saved

the code is this:
AutoIt         
;scite tool: run without saving the script - torels_ #include <file.au3> $file = _TempFile(@TempDir,"~",".au3") $oldclip = ClipGet() FileOpen($file,2) FileWrite($file,_ReadScite()) FileClose($file) $AutoItProdexePath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") $AutoItexePath = $AutoItProdexePath Run('"' & $AutoItexePath & '\AutoIt3.exe "' & ' "' & $file & '"') FileDelete($file) ClipPut($oldclip) Func _ReadScite() Opt("WinTitleMatchMode", 4) ; Read text from SciTE (already open) WinWait("[CLASS:SciTEWindow; INSTANCE:1]") $hSciTE = WinGetHandle("[CLASS:SciTEWindow; INSTANCE:1]") WinActivate($hSciTE) WinWaitActive($hSciTE) ControlFocus($hSciTE, "", "[CLASS:Scintilla; INSTANCE:1]") ControlSend($hSciTE, "", "[CLASS:Scintilla; INSTANCE:1]", "^a") ControlSend($hSciTE, "", "[CLASS:Scintilla; INSTANCE:1]", "^c") ControlSend($hSciTE, "", "[CLASS:Scintilla; INSTANCE:1]", "{left}") return ClipGet() EndFunc


to add it to the tools bar in the scite do this:

- compile the script
- add these lines to the SciTe's properties file
command.name.0.*=Instant Run command.0.*="$(DefaultSciteHome)\InstantRun.exe"


the hotkey will be set to Ctrl+0

Enjoy! :)

Edited by torels, 02 June 2008 - 08:04 PM.

Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org







#2 ChromeFan

ChromeFan

    Universalist

  • Banned (NOT IN USE)
  • 280 posts

Posted 11 September 2008 - 06:49 PM

i think this one is a very helpful... but i don't know

- add these lines to the SciTe's properties file

command.name.0.*=Instant Run command.0.*="$(DefaultSciteHome)\InstantRun.exe"

where is this file placed and where to edit it?
Posted ImageWebsite: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, ‘What happened?’” –Casey Stengel

#3 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 11 September 2008 - 07:44 PM

In the SciTe directory :)
I proposed it as a new feature for the next scite but it didn't seem a very good idea to the autoit team :idiot:

Anyway I constantly use it to run snippets I find on forums or just to try out a script without having to save it each time >_<
Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

#4 AlmarM

AlmarM

    Programming my way.

  • Active Members
  • PipPipPipPipPipPip
  • 1,643 posts

Posted 13 October 2008 - 07:13 PM

So we cant use this program anymore?
Because I would like to run scripts without saving them first.

AlmarM

#5 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 13 October 2008 - 07:17 PM

So we cant use this program anymore?
Because I would like to run scripts without saving them first.

AlmarM


Why are you saying this ?
XD
Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

#6 JRSmile

JRSmile

    IT infrastructure specialist

  • Active Members
  • PipPipPipPipPipPip
  • 455 posts

Posted 13 October 2008 - 07:29 PM

nice indeet, but did you know if you press F5 it will save automatically and run nearly instantly?
$a=StringSplit("547275737420796F757220546563686E6F6C75737421","")For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4)Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));)''Chr("a")&"HI"Next;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile;MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-)Try2Hack: http://www.try2hack.nl/levels/level13-olwehfdow.xhtml

#7 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 13 October 2008 - 07:48 PM

Yes
but you have an annoying dialog all the time (if the script is not saved)
and it gets quite annoying if you have to just run a code snippet or a little script found ont he forums :P
Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

#8 AlmarM

AlmarM

    Programming my way.

  • Active Members
  • PipPipPipPipPipPip
  • 1,643 posts

Posted 14 October 2008 - 08:27 AM

I ment, can I still use this script for instans run. Because the scite.properties is gone?

AlmarM

#9 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 14 October 2008 - 08:44 AM

is it ???
what is the last version ?
I have 1.76 and there is a scite.properties file :P
cheers
Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

#10 AlmarM

AlmarM

    Programming my way.

  • Active Members
  • PipPipPipPipPipPip
  • 1,643 posts

Posted 14 October 2008 - 12:00 PM

Huh? :P
Where is the properties file?
AutoItDir\SciTE\ ?

AlmarM

#11 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 14 October 2008 - 12:25 PM

should be

anyway... if there is no scite.properties you create it and add the code i wrote in the post here above :P
Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

#12 therks

therks

    Witty quote

  • Active Members
  • PipPipPipPipPipPip
  • 2,167 posts

Posted 14 October 2008 - 12:45 PM

I actually wrote a program (in AutoIt) to do this! Hum... I don't have the most recent version online, but this one will give you an idea of how it looks :P

http://www.therks.com/autoit/compiled/QuickScript.exe
http://www.therks.com/autoit/compiled/QuickScript.au3

#13 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 14 October 2008 - 03:12 PM

wow... pretty good... far better than Instant Run anyway...
and you never posted it on the forum ?
Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

#14 therks

therks

    Witty quote

  • Active Members
  • PipPipPipPipPipPip
  • 2,167 posts

Posted 15 October 2008 - 02:06 AM

Actually I did :P

http://www.autoitscript.com/forum/index.php?showtopic=42997

And I've just now uploaded the most recent version. Not sure what's different though because I'm bad about keeping track of that stuff, heh.

#15 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 15 October 2008 - 05:08 PM

Not sure what's different though because I'm bad about keeping track of that stuff, heh.

HeHe
me to XD
Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users