I wrote a script which makes you run your scripts even if they aren't saved
the code is this:
;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.









