Jump to content

Running the OpenNotepad.au3 script?


Recommended Posts

I've built the OpenNotepad.au3 script shown in the basic set of examples.

If I navigate to the file using Windows Explorer and left click on the file, it opens and displays the script. If I right click, a dropdown menu appears and the script will run if I choose "run script".

Certainly there has to be another way of executing a script rather than via that method!

I would expect to be able to Start/Run/c:\Program Files\Autoit3\OpenNotepad.au3, but that simply displays the script.

What entry from the prompt will cause a .au3 script to execute? - TIA, Mike

Link to comment
Share on other sites

When you install SciTe, there should have been an option asking whether you wanted to have ".au3" files executed when you doubled clicked them or have it display the code. Though there's probably a way to do it by editing the Registry, I think it would be easier to just reinstall SciTe.

Edited by BALA
[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Link to comment
Share on other sites

When you install SciTe, there should have been an option asking whether you wanted to have ".au3" files executed when you doubled clicked them or have it display the code. Though there's probably a way to do it by editing the Registry, I think it would be easier to just reinstall SciTe.

So one must go thru SciTe in order to execute a .au3 script? - Mike

Link to comment
Share on other sites

You could allways compile your script and then you would have an exe to double click on. I personally do not like scripts to be run when double click incase I accidently double click on something before I read what it does.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

I'm sure there are other ways, just in my opinion, it's easier to just install SciTe (it only takes about 2 minutes at the most).

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Link to comment
Share on other sites

You could allways compile your script and then you would have an exe to double click on. I personally do not like scripts to be run when double click incase I accidently double click on something before I read what it does.

Ah, so I'm using an interpretive language, not unlike BASIC, and I do have the option to compile it. - Mike

Link to comment
Share on other sites

When you install SciTe, there should have been an option asking whether you wanted to have ".au3" files executed when you doubled clicked them or have it display the code. Though there's probably a way to do it by editing the Registry, I think it would be easier to just reinstall SciTe.

True, but there is also the same option during the install of autoit-v3.2.2.0. If you have AutoIt installed, you can select the recommended uninstall of AutoIt before installing it again and that should give you the same "Double click equals run or edit" option that a SciTE4AutoIt3 installation does.

I see that Mike has found the "compile solution" to his problem/question - but I'll offer these steps for changing the way the XP* OS handles an "au3" file:

Open Windows Explorer

Select Tools from the menu bar

Select Folder Options

Select the tab named File Types

Scroll down to and select the AU3 file extension

Press the Advanced button and a new window should appear

Select Run Script in that new window

Press the Set Default button

"OK" your way back to Windows Explorer

Double click on an AU3 file...

...go take another nap :-)

* the steps are about the same for other Windows OS versions, just the names of the buttons change - I think.

I'm sure that there are several scripts in the forum to toggle this very feature, but armed with this tiny bit of info, you can change the default operation that the OS takes for most any file extension.

hope this helps,

-MSP-

[size="1"][font="Arial"].[u].[/u][/font][/size]

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