| View previous topic :: View next topic |
| Author |
Message |
SamuelPlentz
Joined: 26 Jul 2006 Posts: 8
|
Posted: Mon Dec 04, 2006 11:03 am Post subject: |
|
|
| Goyyah wrote: | | Code: | LV_ModifyCol(1,"60 Integer"), LV_ModifyCol(2,"60 Integer"), LV_ModifyCol(3,"36 Center")
LV_ModifyCol(4,"36 Integer"), LV_ModifyCol(4,"36 Center"), LV_ModifyCol(6,"100") |
|
There are 2 ModifyCols on column 4. One should be for column 5. _________________ www.SamuelPlentz.de.vu |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5721
|
Posted: Mon Dec 04, 2006 11:07 am Post subject: |
|
|
| SamuelPlentz wrote: | | There are 2 ModifyCols on column 4. One should be for column 5. |
Thanks!  _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5721
|
Posted: Tue Dec 05, 2006 5:55 pm Post subject: |
|
|
Dear Mr.Chris,
I never knew about ternary operator before it was included in AHK. I find it very useful and convenient.
Many thanks.  _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Dec 15, 2006 7:38 pm Post subject: |
|
|
NOTE: Although this release has been extensively tested, several low-level enhancements were made. If you have any mission-critical scripts, it is recommended that you retest them and/or wait a few weeks for any bugs to get fixed.
Here are the changes for v1.0.46.01:
Fixed comma-separated declaration initializers such as "local x = 1, y = 2" to work even when immediately below an if/else/loop statement.
Fixed comma-separated expressions so when the leftmost item is an assignment, it will occur before the others rather than after. [thanks Laszlo]
Changed and fixed function-calls so that any changes they make to dynamic variable names, environment variables, and built-in variables (such as Clipboard) are always visible to subsequent parts of the expression that called them.
Changed: When a multi-statement comma is followed immediately by a variable and an equal sign, that equal sign is automatically treated as a := assignment. For example, all of the following are assignments: x:=1, y=2, a=b=c
Changed comma-separated expressions to produce the following effects: 1) the leftmost /= operator becomes true divide rather than EnvDiv; 2) blank values are not treated as zero in math expressions (thus they yield blank results).
Improved the performance of expressions by 5 to 20% (depending on type).
Improved the new assignment operators such as .= to support the Clipboard variable (even in comma-separated expressions).
Improved the .= operator so that it doesn't require a space to its left.
Improved GUI controls to accept static variables as their associated variables (formerly only globals were allowed).
Added option HwndOutputVar to "Gui Add", which stores a control's HWND in OutputVar. [thanks Corrupt & Toralf] |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Sun Dec 17, 2006 10:51 pm Post subject: |
|
|
Thanks a lot for the HwndOutputVar. It will help me a lot. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun Dec 17, 2006 11:21 pm Post subject: |
|
|
You're welcome.
In today's v1.0.46.02, environment variables have been fixed to work properly as input variables in various commands such as StringLen and StringReplace (broken by 1.0.44.14). [thanks Camarade_Tux] |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Dec 19, 2006 1:56 am Post subject: |
|
|
| In today's v1.0.46.03, ListView's floating point sorting has been fixed to produce the correct ordering. [thanks oldbrother/Goyyah/Laszlo] |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5721
|
Posted: Tue Dec 19, 2006 8:27 am Post subject: |
|
|
| Chris wrote: | | ListView's floating point sorting has been fixed to produce the correct ordering. |
Thanks for the wonderful support.  _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Fri Dec 22, 2006 10:30 am Post subject: |
|
|
Hi Skan (DeveloperFormerlyKnownAsGoyyah)  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Jan 02, 2007 1:16 pm Post subject: |
|
|
| In v1.0.46.04, the inability to pass the result of an assignment (:=) to a ByRef parameter has been fixed. [thanks Titan] |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5721
|
Posted: Tue Jan 02, 2007 3:33 pm Post subject: |
|
|
Nice.. Thanks Mr.Chris.
| Code: | HexColorCode := toHex( X := chr(127) chr(127) chr(127) )
MsgBox, % HexColorCode
toHex(ByRef b, l = 0) { ; Titan
f := A_FormatInteger, p := &b - 1
SetFormat, Integer, h
Loop, % l ? l : VarSetCapacity(b)
h .= *++p ; unaries rox ur sox!!
SetFormat, Integer, %f%
Return, RegExReplace(RegExReplace(h, "0x(.)(?=0x|$)", "0$1"), "0x")
} ; http://www.autohotkey.com/forum/viewtopic.php?p=97593#97593 |
_________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 3959 Location: Pittsburgh
|
Posted: Tue Jan 02, 2007 4:52 pm Post subject: |
|
|
The above example does not work if the parameter is assigned a literal string, or an expression containing a literal string. | Code: | | HexColorCode := toHex( X := " " ) |
AHK gives the following error:
---------------------------
xxx.ahk
---------------------------
Error: Caller must pass a variable to this ByRef parameter.
Specifically: X := " " )
Line#
003: SetBatchLines,-1
---> 005: HexColorCode := toHex( X := " " )
006: MsgBox,HexColorCode
008: {
009: f := A_FormatInteger, p := &b - 1
010: SetFormat,Integer,h
011: Loop,l ? l : VarSetCapacity(b)
012: h .= *++p
013: SetFormat,Integer,%f%
The program will exit.
---------------------------
OK
--------------------------- |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Wed Jan 03, 2007 2:00 am Post subject: |
|
|
| Thanks. I should probably just remove all the syntax checking for ByRef parameters. Without it, runtime errors will be displayed instead, which seems acceptable. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2391
|
Posted: Wed Jan 03, 2007 6:20 am Post subject: |
|
|
| toralf wrote: | | Thanks a lot for the HwndOutputVar. It will help me a lot. | Yes, thanks Chris . That will come in very handy. Sorry for the delayed response - I haven't had much time available for coding lately . |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu Jan 04, 2007 6:37 pm Post subject: |
|
|
Here are the changes for v1.0.46.05:
Fixed the Input command to allow named end keys like {F9} to work even when the shift key is being held down (broken by v1.0.45). [thanks Halweg]
Fixed inability of "Gui Show" to focus the GUI window when the tray menu is used both to reload the script and to show the GUI window. [thanks Rnon]
Fixed inability to pass some types of assignments (:=) to a ByRef parameter. [thanks Laszlo] |
|
| Back to top |
|
 |
|