|
From: Nick S. <nic...@gm...> - 2008-01-08 04:35:39
|
Oh, You still need to watsup.winGuiAuto._sendNotifyMessage(hwnd, win32con.LBN_SELCHANGE) to finish "clicking" on the listbox item. Nick On Jan 8, 2008 3:04 PM, Nick Seow <nic...@gm...> wrote: > (Sending to the user list as well, since the devel list seems to be > inactive... Is this project maintained?) > > Hi, > > I was trying to set items in a ListBox today, but the current > selectListBoxItem() function seems to be incorrect (at least, on the > version of Windows XP I'm using... do the meaning of these Windows > messages change between versions?) > > It does: > win32gui.SendMessage(hwnd, win32con.LB_SETCURSEL, item, 0) > _sendNotifyMessage(hwnd, win32con.LBN_SELCHANGE) > > Whereas via trial and error it seems that the following works: > > win32gui.SendMessage(hwnd, win32con.LB_SETCURSEL, onOrOff, item) > > Where "item" is the index of the listbox item you want to change, and > onOrOff is 1 or 0. > > Is this a known issue? Any chance of it being fixed? > > Thanks, > > Nick > |