1.1.17-19 - COM stuff, Format, StdIn/StdOut, bug-fixes, etc.

Community news and information about new or upcoming versions of AutoHotkey
lexikos
Posts: 6984
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

1.1.17-19 - COM stuff, Format, StdIn/StdOut, bug-fixes, etc.

27 Dec 2014, 00:43

1.1.17.00

New features:

Added Format().
Added support for passing AutoHotkey objects to COM APIs as IDispatch.
Added support for VT_BYREF in ComObject wrappers. Use obj[] to access the referenced value.

FileOpen() can now be used to read from stdin or write to stdout or stderr by passing "*" or "**" as the filename. AutoHotkey.exe * can be used to execute script text piped from another process instead of read from file. For an example, see ExecScript().

Bug-fixes:
Fixed blue-screening on XP SP2.
Fixed owned ComObjArrays to be returned by value, not by pointer. That is, a copy of the array is returned instead of a pointer to an array which is about to be deleted.
Changed the URL in the sample script which is created when you first run AutoHotkey.
Fixed sc15D to map to vk5D/AppsKey (Send, GetKeyName, etc.).
Fixed Edit controls to not treat AltGr+A as Ctrl+A.
Fixed static class vars to not act as a target for labels which immediately precede the class.

1.1.17.01

Fixed COM event handlers not receiving the final object parameter (broken by v1.1.17.00).

1.1.18.00

Improved IDispatch implementation for AutoHotkey objects:
  • X.Y in VBScript and C# now returns X.Y if it is NOT a Func object; previously, it attempted to call X.Y() regardless of type.
  • X(Y) in VBScript, JScript and C# now returns X[Y] unless X is a Func object, in which case it is called as before.
  • X[Y] in C# now returns X[Y] if X is NOT a Func object; previously, it attempted to call X[Y]() regardless of type.
  • X.Y() in C# now returns X.Y if it is NOT a Func object, due to ambiguity in the C# dispatch implementation.
  • Unhandled exceptions are now converted to IDispatch exceptions.
Added support for creating new properties in JavaScript/IE DOM objects

Fixed FileAppend, %VarContainingClipboardAll%, File causing crashes.

1.1.19.00

Added a name for Func.Call(). Func.() still works but is deprecated.

Fixed some issues with X.Y and X.Y(Z) in VBScript/JScript/C#:
  • If X.__Call contained a function name, it was being returned instead of called.
  • When X.Y(Z) returned a value, Z was ignored. Now it acts like X.Y[Z] when X.Y is not a function.
Fixed the Hotkey command ignoring the ~ (pass-through) prefix if Label was omitted.
Fixed the Hotkey command ignoring the $ (use-hook) prefix if the hotkey variant was already created without $.
Fixed %Fn%() syntax to work with JavaScript Function objects.
Fixed EXE manifest to disable UAC installer detection heuristics (broken by v1.1.17).

Improved the way threads are represented on the debugger's call stack.
  • The type of thread is shown instead of the label name, which is still available in the next stack entry. For hotkeys, the hotkey is shown instead.
  • The line number of the sub or function that the thread called is shown instead of the line the script was at before starting the thread.
1.1.19.01

Fixed Hotkey command crashing the program when trying to create new variants of existing hotkeys (broken by v1.1.19.00).
Made some minor optimizations to the Hotkey command and A_TimeIdle, relating to removal of Win9x support.

1.1.19.02

Removed the 16-color icons which were used on Win9x/Win2k.
Removed the separate tray icon resources.
Improved selection of icon size when loading icons from DLL/EXE files.
  • In short, prefer to downscale rather than upscale. This is especially helpful on systems with 125% or 150% DPI, where the system icon sizes are 20/40 or 24/48 instead of 16/32. If all of these sizes are present in the icon resource, this change makes no difference.
Fixed some issues with hotkey validation at load time.
  • Hotkeys which are never valid, like foo::, are now always treated as errors instead of giving a misleading warning about keyboard layout.
  • Hotkeys like ^!ä:: which are inactive because of the current keyboard layout are now allowed to have a same-line action, and the label is registered correctly (e.g. as "^!ä" and not as "^!ä:"). If the /iLib command line switch is used, the warning is suppressed.
  • Remappings which are inactive because of the current keyboard layout now show two warnings instead of an unrecoverable error.
  • If a Wheel hotkey is used as a prefix key, there is only one error message instead of two, and it respects /ErrorStdOut.
Fixed /iLib switch to write the file even if there's a syntax error.
Fixed return/break/continue/goto in try..finally.


Downloads
User avatar
TLM
Posts: 1582
Joined: 01 Oct 2013, 07:52
GitHub: TLMcode
Contact:

Re: 1.1.17 - COM stuff, Format(), StdIn/StdOut and bug-fixes

27 Dec 2014, 03:48

Feels like Christmas all over again, tytyty :D
Guest
Posts: 56
Joined: 17 Oct 2013, 02:32

Re: 1.1.17 - COM stuff, Format(), StdIn/StdOut and bug-fixes

27 Dec 2014, 04:09

Thanks. I think you may still need to upload the http://ahkscript.org/docs/AHKL_ChangeLog.htm and I also note "AU3_Spy.exe" has been replaced with fincs' script http://ahkscript.org/boards/viewtopic.php?f=13&t=1849 which I didn't see in the Changelog on GH which may be useful to add.

edit: changelog is now there
lexikos
Posts: 6984
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: 1.1.17 - COM stuff, Format(), StdIn/StdOut and bug-fixes

27 Dec 2014, 04:52

The changelog was already updated by my release script, before I posted. Your browser was probably giving you a cached copy.

AU3_Spy.exe isn't in the git repo, so obviously wouldn't appear in the commit history on GitHub. The changelog text is based on the commit history (though I edit it when it gets inserted into the documentation), so it doesn't mention Window Spy. Aside from that, I usually don't mention changes to the documentation, tools or installer in the changelog. Thanks for pointing it out.
toralf
Posts: 791
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: 1.1.17 - COM stuff, Format(), StdIn/StdOut and bug-fixes

27 Dec 2014, 13:35

Thanks a lot.
Do I understand it correctly that with the ExecScript() example real multitasking will be possible? That would be awesome. Again thanks a lot.
ciao
toralf
lexikos
Posts: 6984
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: 1.1.17 - COM stuff, Format(), StdIn/StdOut and bug-fixes

27 Dec 2014, 17:43

toralf wrote:Do I understand it correctly that with the ExecScript() example real multitasking will be possible?
:eh: No more than before. You can already multi-task by running separate scripts. This would just let those separate scripts come from memory rather than from file. That's hardly got anything to do with multitasking.
toralf
Posts: 791
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: 1.1.17 - COM stuff, Format(), StdIn/StdOut and bug-fixes

27 Dec 2014, 23:18

True but it would be now possible to combined the code in one script.
For some reason I previously had to compile the multitasking script, but I can't remember anymore why... :/
ciao
toralf
guest3456
Posts: 3123
Joined: 09 Oct 2013, 10:31

Re: 1.1.17 - COM stuff, Format(), StdIn/StdOut and bug-fixes

27 Dec 2014, 23:35

toralf wrote:True but it would be now possible to combined the code in one script.
That was possible before: FileAppend, Run, FileDelete

lexikos
Posts: 6984
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: 1.1.17 - COM stuff, Format(), StdIn/StdOut and bug-fixes

28 Dec 2014, 00:33

If the code is all in one script, there's no need for temporary files or stdin. You can just run the script again with /force or #SingleInstance Off and use command line arguments or inter-process communication to tell it what to do. You could even use stdin to communicate from parent to child process; I don't think that's possible if you use stdin to pass the script text.
lexikos
Posts: 6984
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: 1.1.17 - COM stuff, Format(), StdIn/StdOut and bug-fixes

29 Dec 2014, 20:28

v1.1.18.00: Top post updated - better compatibility with JavaScript, VBScript and C#, plus a ClipboardAll bug fix.
lexikos
Posts: 6984
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: 1.1.17-19 - COM stuff, Format, StdIn/StdOut, bug-fixes,

04 Jan 2015, 05:22

v1.1.19.00: Top post updated - Func.Call(), bug-fixes and more improvements to VBScript/JScript/C# support.
lexikos
Posts: 6984
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: 1.1.17-19 - COM stuff, Format, StdIn/StdOut, bug-fixes,

05 Jan 2015, 06:35

v1.1.19.01: Fixed a major bug in the Hotkey command (broken by v1.1.19.00).
lexikos
Posts: 6984
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: 1.1.17-19 - COM stuff, Format, StdIn/StdOut, bug-fixes,

24 Jan 2015, 19:23

1.1.19.02

Removed the 16-color icons which were used on Win9x/Win2k.
Removed the separate tray icon resources.
Improved selection of icon size when loading icons from DLL/EXE files.
  • In short, prefer to downscale rather than upscale. This is especially helpful on systems with 125% or 150% DPI, where the system icon sizes are 20/40 or 24/48 instead of 16/32. If all of these sizes are present in the icon resource, this change makes no difference.
Fixed some issues with hotkey validation at load time.
  • Hotkeys which are never valid, like foo::, are now always treated as errors instead of giving a misleading warning about keyboard layout.
  • Hotkeys like ^!ä:: which are inactive because of the current keyboard layout are now allowed to have a same-line action, and the label is registered correctly (e.g. as "^!ä" and not as "^!ä:"). If the /iLib command line switch is used, the warning is suppressed.
  • Remappings which are inactive because of the current keyboard layout now show two warnings instead of an unrecoverable error.
  • If a Wheel hotkey is used as a prefix key, there is only one error message instead of two, and it respects /ErrorStdOut.
Fixed /iLib switch to write the file even if there's a syntax error.
Fixed return/break/continue/goto in try..finally.

NOTE: Some improvements were made to the installer for v1.1.19.01 on 2015-01-12. If you have that version of the installer, it can download and install the new version for you, and even reload your scripts. In earlier versions of the installer, the "Download <current version>" option uses your web browser. Either way, this option can be accessed by starting "AutoHotkey Setup" from your Start menu or running Installer.ahk in your AutoHotkey directory.
lexikos
Posts: 6984
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: 1.1.17-19 - COM stuff, Format, StdIn/StdOut, bug-fixes,

11 Feb 2015, 01:44

1.1.19.03

Improved remapping to allow scXXX::Y when the current keyboard layout does not map scXXX to a VK code. However, Y must still exist on the current keyboard layout.

Fixed break n to work correctly when until is present, instead of terminating the thread.
Fixed ControlGetFocus disrupting the user's ability to double-click (thanks HotKeyIt).
Fixed ListView to not call the control's g-label for unsupported (and previously unknown) notifications such as LVN_GETEMPTYMARKUP.
Fixed #Include *i <X> to exit the program as intended if X has a syntax error.
Fixed for var in expression sometimes crashing the program when expression calls a script function.

Return to “Announcements”

Who is online

Users browsing this forum: No registered users and 2 guests