Jump to content

Recommended Posts

Posted

Hello,

I'm using the latest build of AutoIt 3.0.103 beta, released today the 21st. When I open an example script form the Help file using the 'Open this Script' button, and then try to do a Save As to save the example file elsewhere to play with, I get the following error from Notepad:

Common Dialog error (0x3002)

I have no problems with Notepad when working with files that have not been opened via this button.

Running under XP SP1a. Help file was opened directly from the application directory.

Posted

Did you copy and paste from the autoit.chm?

Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote]

Posted (edited)

The only thing "open the script" does is run it, you'd need to copy it if you wanted to mess with it

somebody correct me if i'm mistaken

Edited by killaz219
  • Administrators
Posted

Open this script should open the script in your default .au3 editor. Everyone seems to be having a different experience so I think that feature is going to have to go.


 

Posted

Here's the problem:  http://list-archive.xemacs.org/xemacs-nt/1...6/msg00359.html

I think I know a fix...  Please try http://www.autoitscript.com/fileman/users/public/CyberSlug/autoit_cyberslug.chm

<{POST_SNAPBACK}>

Sorry to tell, but your 'fix' results in no action at all when clicking the 'open this script' button.

And...the hhctrl command 'Shortcut' will indeed RUN the file you enter at 'Item1'. So it will use the Shell-open action onto it, not the Shell-Edit action.

I've done some investigations, but the only way to 'edit' the script is by hard-coding the name of an editor to the 'Item1' parameter. Or by using the command: RUNDLL32 SHELL32.DLL,OpenAs_RunDLL <filename.au3> but that one could also lead to some confusion.

Regards,

-Sven

Posted (edited)

Sorry to tell, but your 'fix' results in no action at all when clicking the 'open this script' button.

<{POST_SNAPBACK}>

I just tried on another WinXP SP2 (English language) computer, and it worked for me. :lmao: What version of Windows do you have? I know that there is a bug Windows 2000 SP4 that JdeB posted a solution for.

The file association for the Open command is notepad.exe %1 though notepad.exe "%1" should also work.

SciTE always worked, by the way.

Edited by CyberSlug
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Posted

I just tried on another WinXP SP2 (English language) computer, and it worked for me. :think:  What version of Windows do you have?  I know that there is a bug Windows 2000 SP4 that JdeB posted a solution for.

The file association for the Open command is notepad.exe %1 though notepad.exe "%1" should also work.

SciTE always worked, by the way.

<{POST_SNAPBACK}>

I've WinXP SP1a english. But the OS is not the problem: On a 'fresh' AutoIT3 install, the "shell-open" value of the "Au3Script" regkey is: C:\Program Files\AutoIt3\AutoIt3.exe "%1" %*

Regards,

-Sven

  • Administrators
Posted

I've WinXP SP1a english.  But the OS is not the problem:  On a 'fresh' AutoIT3 install, the "shell-open"  value of the "Au3Script" regkey is:  C:\Program Files\AutoIt3\AutoIt3.exe "%1" %*

Regards,

-Sven

Shouldn't be. I changed it last week. If you do an "upgrade" install it won't be changed though, have to do a clean install.


 

Posted

The only thing "open the script" does is run it, you'd need to copy it if you wanted to mess with it

somebody correct me if i'm mistaken

<{POST_SNAPBACK}>

Seems to me that if my default editor is Notepad, and I wanted to mess with it, that I should be able to use the Save As feature to save it to another location and edit it. It's a convenience thing really... The point is that the method that AutoIt uses to open the file in Notepad somehow breaks Notepad's ability to save the file under a new name. I understand that I cannot simply edit and save, but Save As should work!
Posted

Did you try the version I posted above?

<{POST_SNAPBACK}>

It doesn't do anything when I use your compiled .chm :lmao:

I'll just deal with it. The only reason I brought it up in the first place was to let you guys know that there was a problem.

<Ctrl-A> <Ctrl-C> <Ctrl-N> <Ctrl-V> Done. It would save about 2 seconds if you could fix it though! o:)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...