07-21-2009, 04:36 PM
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)
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)
