Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
int n=SendMessage(w1 LVM_FINDITEM 0 0)???
#1
I was taking a look around @ some posts... & I found something some things that work for SendMessage...
usually only a few things work when I try to use SendMessage... for example...


Macro
Code:
Copy      Help
int w1=id(822"this is parent that contains SysListView32");;id(822) is the child of parent...
int n=SendMessage(w1 LVM_GETITEMCOUNT 0 0)
out n;;this 'outs' the total # of items in the SysListView32...
;;I really like this... but would like to try the following, but am not sure how!!!

;;FOLLOWING: -

int o=SendMessage(w1 LVM_FINDITEM 0 0)
out o;;Nothing happens...
;;I would like to use LVM_FINDITEM... to find a certain item in SysListView...

int o=SendMessage(w1 LVM_FINDITEM "981452 *" 0);;NOT SURE HOW IT COULD BE DONE.

;;to tell the truth... a lot of SendMessage remarks I donnot understand how to use. I would sure like to.

Here is where I am getting & testing a lot of my SendMessage Remarks:
http://www.vbcode.com/Asp/showsn.asp?theID=11797

But it does not tell how to make them work in QM Sad

PLEASE HELP W/ THIS ONE @ LEAST...
THANKS!!! - Scottie
#2
If the control is in other process, LVFINDINFO variable must be in shared memory. But much easier is to use acc instead.
#3
Find Specific Item (SysListView 32)

Using acc, you may sometimes be required to combine two strings depending on what you are searching for. Using "from." have one string variable = whatever the common text is. To acquire the other text simply use a text input box and assign that text to the other variable.

str+ remember
str commontext item
commontext = "whatever text is always the same"
item = ""

top
inp- item "Enter Item here.[]Press enter when you are ready to search list." "List Search" item
if(len(item)<>7)
,item = ""
,goto top
else
,memory.from("commontext item)
,Acc a=acc(memory "LISTITEM" win("Window Name" "Class") "id=822" "" 0x1011 0 0 "" 1)
,a.Select(SELFLAG_TAKESELECTION)


Forum Jump:


Users browsing this thread: 1 Guest(s)