I have two programs, quite different but both using listviews, in which the user can select a listview item and stuff happens to that line. In one program, I'm using a GUIGetMsg() loop. The user can select a line and then click a button, or rightclick on it, and stuff happens. This works (truncated code snippet from a much larger script, but you should be able to get the idea): While 1 $guimsg = GUIGetMsg() $begin = TimerInit() Switch $guimsg Case $GUI_EVENT_SECONDARYUP ContinueC