Jump to content
Sign in to follow this  
DeFirence

Way to restart autoitscript in scite

Recommended Posts

DeFirence

Hi all,

Im looking for a way to make my script restart in the scite editor so that all consolewrite() functions goto the scite console.

DeFirence

Share this post


Link to post
Share on other sites
DeFirence

come on guys, no one knows how? :D

Share this post


Link to post
Share on other sites
Jos

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

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
DeFirence

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

Ok well,

I need a way to run script in scite editor from within my code, like you would normally by pressing F5.

DeFirence

Share this post


Link to post
Share on other sites
Jos

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 ?


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
GEOSoft

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!"

Share this post


Link to post
Share on other sites
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
GEOSoft

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!"

Share this post


Link to post
Share on other sites
DeFirence

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

Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
DeFirence

Thank you, this is exactly what i was looking for :D

DeFirence

Share this post


Link to post
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
Sign in to follow this  

×