Jump to content
Sign in to follow this  
terrypin

Context menu > Edit - how to open in SCITE?

Recommended Posts

terrypin

I'm an AutoIt novice, so please excuse this very basic query. If I right-click an .AU3 file (on my XP PC) the first few items in the context menu are:

Run Script

Compile with Options

Edit Script

Open

Choosing  Edit Script opens it in my text editor, TextPad. How can I get that to open it with SCITE instead please?

--
Terry, East Grinstead, UK

Share this post


Link to post
Share on other sites
mLipok

welcome to the forum

try this:

in SciTE push CTRL+1

this open SciTE Config

there are that option:

Explorer AU3 File setting.
Choose Default action for Au3 files:
Edit
Run
 
EDIT:
Edited by mlipok

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API Forum Rules *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library
 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-10-15

Share this post


Link to post
Share on other sites
terrypin

Thanks for the fast reply. But I want d-click to run the script, as it does now, not open SCITE.

And I updated to the latest 3.3.0.0 version of SCITE earlier today.

Maybe this is not something that's controlled by either AutoIt setup or SCITE setup?

--
Terry, East Grinstead, UK

Share this post


Link to post
Share on other sites
mLipok

But I want d-click to run the script, as it does now, not open SCITE.

 

 

welcome to the forum

try this:

in SciTE push CTRL+1

this open SciTE Config

there are that option:

Explorer AU3 File setting.
Choose Default action for Au3 files:
Edit
Run
 

 

there are that option:

Explorer AU3 File setting.
Choose Default action for Au3 files:
Edit
Run

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API Forum Rules *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library
 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-10-15

Share this post


Link to post
Share on other sites
terrypin

Eh?

--
Terry, East Grinstead, UK

Share this post


Link to post
Share on other sites
JLogan3o13

Right click on the .au3 file, Open With>>Choose a Default Program... Choose SciTE and then check the box Always use the selected program to open this kind of file.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
terrypin

Thanks, but as I said "...I want d-click to run the script, as it does now..." I want R-click > Edit to open the script in SCITE.

--
Terry, East Grinstead, UK

Share this post


Link to post
Share on other sites
mLipok

ok

try to reinstall AutoIt 3.3.8.1

and 

SciTE4AutoIT

 

during the installation process, you can choose the default system shell
choose "Run" as the default 
 
 
EDIT:
 
btw.
I said "SciteConfig"
Edited by mlipok

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API Forum Rules *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library
 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-10-15

Share this post


Link to post
Share on other sites
JLogan3o13

Thanks, but as I said "...I want d-click to run the script, as it does now..." I want R-click > Edit to open the script in SCITE.

--

Terry, East Grinstead, UK

 

Did you even try this?! In SciTE, when I go to Tools>>SciTE Config (CTRL + 1) and change the default action from Edit to Run, and then right click on the .au3 file and choose Open With>>Choose a Program>>SciTE and check the always use the selected program checkbox, it gives me just the behavior you're asking for - when I double click it runs the script and when I right click and choose Edit it opens it in SciTE.

So if you're not seeing this, instead of saying "doesn't work" how about explaining what behavior you are seeing? Help us help you.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
terrypin

@JLoga3013: Yes, I did attempt to try mlipok's instructions, although they were rather unclear to me.

I've also just tried your more detailed and clear instructions but they don't give the result I want, as you see:

This first shows what I see when I use Open with... on an AU3 file:

TextPad-AutoIt-2.jpg

 

TextPad-AutoIt-3.jpg

 

TextPad-AutoIt-4.jpg

That now has two unwanted results from the context menu rather than the one I started with, so I've changed back to the previous status.

It's no great hardship - I'd just like Edit to edit with SciTE. I do so now with one extra click, i.e. Open with... > SciTE

I'm also pursuing the possibility that this may be either a TextPad or XP setting, although the reply I had from TextPad's author (I emailed him before posting here) included this:

"AutoIt is not a program I have ever used, but I would expect this to be one of its own configuration settings, rather than a file association in XP or TextPad.  That's the way I've seen it done in other applications."

--
Terry, East Grinstead, UK

Edited by terrypin

Share this post


Link to post
Share on other sites
terrypin

I thought I'd better reboot my PC although I didn't expect that to make any difference - but it did!

This is now the context menu:

TextPad-AutoIt-5.jpg

 

So I can now edit the script with a single click of Open, thanks.

Still curious why I can't get the Edit menu to do that though!

--
Terry, East Grinstead, UK

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  

×