Jump to content

Way to restart autoitscript in scite


Recommended Posts

  • Developers

Maybe your question isn't clear enough. I for one dont understand what you want to do exactly :D

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

Not sure that makes it any clearer for me .... do you mean ?

You want to start "scrip one" from SciTE with f5 which in turn runs a second script that contains ConsoleWrites which you want to display as well ?

Is this second script compiled or still an au3 ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Not sure that makes it any clearer for me .... do you mean ?

You want to start "scrip one" from SciTE with f5 which in turn runs a second script that contains ConsoleWrites which you want to display as well ?

Is this second script compiled or still an au3 ?

I'm about as clear on this as you are but my interpretation is he wants the eqivalent of

Run(@ProgramFilesDir &"\AutoIt3\Scite\Scite.exe " & @ScriptFullPath)

Send("{F5}")

Of course there will have to be a WinWaitActive() in there I imagine.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

  • Developers

I'm about as clear on this as you are but my interpretation is he wants the eqivalent of

Run(@ProgramFilesDir &"\AutoIt3\Scite\Scite.exe " & @ScriptFullPath)

Send("{F5}")

Of course there will have to be a WinWaitActive() in there I imagine.

Yes... BUT... that will not work when the original script is run with F5 from SciTE.

Thats why I like to understand first what is wanted before trying to hash through all potential scenarios ....

:D

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Yes... BUT... that will not work when the original script is run with F5 from SciTE.

Thats why I like to understand first what is wanted before trying to hash through all potential scenarios ....

:D

True enough my friend. I just based it on this

I need a way to run script in scite editor from within my code

I suspect he's just trying to get the console output.

Oh well, the world (probably) won't end today so we have time to play wait and see. I wasn't going to give an answer anyway, I was just trying to get a clearer idea, as were you.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Ok, sorry about not making it so clear, let me try again :D

I want my script to be able to restart in scite editor, like it would usually start if you press F5, but im trying to find a more stable way of doing it, so what no matter what i am doing on the pc, the script will be able to restart itself in scite in the background.

Not too sure if that helps at all, but im trying to explain it as best as i can... :/

DeFirence

Link to comment
Share on other sites

  • Developers

I am still not sure what you want exactly but let me give you something to play with. This command will open a script file in SciTE and run it:

Run('"c:\program files\autoit3\scite\SciTE.exe" "c:scriptdir\a.au3" -menucommand:303')

This will not work when a script is already running in SciTE since it can only perform one Run action at a time.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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