 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
adamrgolf
Joined: 28 Dec 2006 Posts: 332
|
Posted: Tue Mar 18, 2008 9:14 am Post subject: ListView item change notificatino bug? |
|
|
I posted this in the help forum a few hours ago -- then I started wondering if it could be a bug?
http://www.autohotkey.com/forum/viewtopic.php?t=29814
I used "ControlGet, OutputVar, List ..." to get the information I needed instead.
To try this out, use this code or similar:
| Code: | #SingleInstance,Force
Gui,Add,ListView,gLV AltSubmit,Col1|Col2
Gui,Show
LV_Add("","Click","Me")
LV_Add("","Then Click","Me")
LV_ModifyCol()
Return
LV:
If A_GuiEvent = I
msgbox % ErrorLevel
Return
Return |
The help doc states: "If the user selects a new row, at least two such notifications are received: one for the de-selection of the previous row, and one for the selection of the new row."
However, after the first SF (Selected and Focused), every notification after that when switching between rows is just a single "s" for de-select.
Edit: It also reads that using the Critical command will help ensure the script not miss a notification, however it doesn't seem to help in this case. |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 753 Location: London, UK
|
Posted: Tue Mar 18, 2008 10:32 am Post subject: |
|
|
Chaging to a tooltip improves the reliability and then adding critical works every time. At least in my tests anyway.
| Code: | #SingleInstance,Force
Gui,Add,ListView,gLV AltSubmit,Col1|Col2
Gui,Show
LV_Add("","Click","Me")
LV_Add("","Then Click","Me")
LV_ModifyCol()
Return
LV:
critical
If A_GuiEvent = I
tooltip % ErrorLevel
Return
Return |
_________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
adamrgolf
Joined: 28 Dec 2006 Posts: 332
|
Posted: Tue Mar 18, 2008 2:48 pm Post subject: |
|
|
| True, this does improve reliability, but only a bit. I never got to try out this feature in previous versions, but I wonder if something has broken, because it doesn't seem like it should function so differently from the description. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|