Sign in to follow this  
Followers 0
Angelos

Run Script -OR- Edit Script

12 posts in this topic

Hello,

When installing AutoIt, I had the option to choose the action of a double-click on an .au3 file, between "Run Script" or "Edit Script." I chose "Edit Script" as it was recommended, but now changed my mind and want to have "Run Script" when double-clicking, instead.

Is there any way to do this without uninstalling and installing AutoIt?

Thank you,

Angelos

Share this post


Link to post
Share on other sites



Associate your .au3 files with AutoIt3.exe.

Right click, open with... check the box to always open with when you get to that part.

Share this post


Link to post
Share on other sites

Oh cool, I didn't think of that :whistle:

Thank you!

Share this post


Link to post
Share on other sites

I "strongly" suggest you leave it as "Edit"

if you get a "bad" au3 file it could do damage without you looking at it first..

Plus, you can always right click the file and hit "Run Script" for files you know are ok

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

It was kind of getting annoying having it as edit and having to right click to run the script. Anyways, I edit the script in SciTE, save it and go to the file and run it. I don't need to open the editor for the script again when I go to run the file as I look at it just before in SciTE. At least now I understand why it was recommended to have it as Edit. Anyway, Thanks for the help!

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Run SciTEConfig (Ctrl+1) and select Edit or Run (Whatever you want) at the top of the first menu ...

Edited by JdeB

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

Share this post


Link to post
Share on other sites

JdeB -> that's what I was looking for!

However, associating the .au3 files with AutoIt, as xcal said, screwed this up and now I have "Open" as the double clicking option :whistle:

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

JdeB -> that's what I was looking for!

However, associating the .au3 files with AutoIt, as xcal said, screwed this up and now I have "Open" as the double clicking option :whistle:

Yeap... what can I say....

Open Windows Explorer/Tools/Folder Options ....Tab "File Types"

Type AU3 which will jump down to the au3 ext defs.

Click on the "Restore" button....

Edited by JdeB

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

Share this post


Link to post
Share on other sites

Well yeah! That fixes it!

Thank you JdeB!

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

You could have associated it back with the scite exe in the same way you associated it with the autoit exe. Nothing got "screwed...up," you just didn't understand it.

(sp)

Edited by xcal

Share this post


Link to post
Share on other sites

Hey xcal,

I'm not blaiming you for anything. I didn't say YOU screwed that up. Why did you get upset about it? I just referred to your name to explain the situation so that it's easier to understand by reading the last post.

I'm sorry for the misunderstanding.

BTW, I did associate it with SciTE and the option for double clicking became "Open" and it opened it for editing while in the SciTE settings it was set for "Run" (sorry for the runnon).

...and can you explain what I didn't understand?

Anyway, this is fixed; thanks to everyone that helped!

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

Huh? I'm not upset.

When you start the scite/autoit config (ctrl+1), it checks its own registry entry to see which radio button should be checked. It doesn't atcually check the current .au3 file association. So, if you change the association outside of the config, it can easily become out of sync.

Edited by xcal

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  
Followers 0