v1.0.41 released: Context-sensitive hotkeys & hotstrings
#1
Posted 19 January 2006 - 10:41 PM
Fixed "Transform HTML", which was broken by v1.0.40.02. [thanks Rabiator]
Improved syntax to support One True Brace (OTB) style with IFs, ELSEs, functions, and normal loops.
Added built-in variable A_AhkPath, which contains the full path and name of AutoHotkey.exe (if available).
Added directives #IfWinActive/Exist to enable selected hotkeys and hotstrings for only the windows you specify.
#2
Posted 20 January 2006 - 07:30 AM
#3
Posted 20 January 2006 - 09:09 AM
I don't care much for the OTB, as I don't use this style of coding, but it is nice for those which cannot live without it...
I eagerly awaited the context sensitive hotkeys.
Indeed, there was workarounds like:
$F9::
appName = Create Folder
WinGetClass winClass, A
If winClass != ExploreWClass
{
; MsgBox 16, %appName%, Oops, wrong window...
Send {F9}
return
}
but it wasn't very nice, adding a lot of code and not being very readable.Your solution is nice, very well made (the idea of group of windows is excellent) and practical.
Congratulations, you are doing an excellent job on this software!
#4
Posted 20 January 2006 - 12:04 PM
#5
Posted 20 January 2006 - 01:30 PM
Hopefully the feature will get improved to support %Var% in parameters. Eventually, it may also allow duplicate hotkey labels as Evl suggested at http://www.autohotke...opic.php?t=7485
#6
Posted 20 January 2006 - 05:40 PM
I would like to see that. Thanks for this very usefull release.Hopefully the feature will get improved to support %Var% in parameters.
#7
BoBo
Posted 21 January 2006 - 03:16 PM
Kinda coincidenceImproved syntax to support One True Brace (OTB) style with IFs, ELSEs, functions, and normal loops.
Thx. 8)
#8
Posted 21 January 2006 - 10:25 PM
thanks,
beardboy
#9
Posted 21 January 2006 - 11:34 PM
#10
Posted 22 January 2006 - 02:37 AM
However, it might be of use that GroupAdd can add a series of ahk_id's or ahk_pid's to a group. You can then use that group with #IfWin. Also, you can keep adding more id's and pid's to such a group as long as you want -- and as long as the list doesn't get huge, performance shouldn't be affected much.
#11
Posted 22 January 2006 - 03:05 AM
thanks,
beardboy
#12
Posted 31 January 2006 - 10:17 PM
Fixed AltGr hotkeys that send AltGr characters such as "<^>!a::Send \" in German. [thanks AGU]
Fixed Gui +Disable/AlwaysOnTop to work even if other options are present on the same line. [thanks evl]
Improved syntax to support having a command on the same line as an open-brace. [thanks segfault]
The tentative plan for the next major release is to support duplicate hotkeys and hotstrings for easier context sensitivity with the #IfWin directives.
#13
Posted 31 January 2006 - 10:27 PM
Nice one however this does not apply to OTB. Is this intentional?Improved syntax to support having a command on the same line as an open-brace. [thanks segfault]
For example this works:
Loop, 3
{ MsgBox, %n%
n += 10
}But not this (OTB):Loop, 3 { MsgBox, %n%
n += 10
}
#14
Posted 31 January 2006 - 11:32 PM
It is also documented on the Block page under the OTB section: "However, open-braces of the One True Brace style do not support commands to their right."
#15
Posted 01 February 2006 - 08:28 AM
Ugly and impratical if you have to add a new command just before the first line of the block.
And with no clear advantage over the OTB style, ie. no gain of line. Well, at least, braces are aligned, I find this more readable than OTB.
But well, it is good to have flexibility and to please as much people as possible, as long this doesn't bloat the code. Which seems to be a true concern for Chris :-) I like that.




