Posts: 160
Threads: 43
Joined: Sep 2007
im trying to make the macro auto find a name on the list in my yahoo and then open there i.m but when there names are further down the list it wont open them there names are all in alphabetic order im wondering is there a better way of doing this heres what i have
using accsessable object witch dont realy work
Acc a=acc("Yahoo im searching for here" "LISTITEM" "Yahoo! Messenger" "id=101" "" 0x1001)
a.DoDefaultAction
Posts: 12,140
Threads: 142
Joined: Dec 2002
Quote:when there names are further down the list
Ie you have to scroll the list to see them? If acc does not find the object, check 'Search invisible objects' in 'Find accessible object' dialog, Options. If finds but does not click, you need to scroll the item into view, but I don't know how to. Maybe try Select at first. It is in 'Accessible object actions' dialog.
Posts: 160
Threads: 43
Joined: Sep 2007
Gintaras Wrote:Quote:when there names are further down the list
Ie you have to scroll the list to see them? If acc does not find the object, check 'Search invisible objects' in 'Find accessible object' dialog, Options. If finds but does not click, you need to scroll the item into view, but I don't know how to. Maybe try Select at first. It is in 'Accessible object actions' dialog.
YES THATS EXSACTLY THE PROBLEM TY ILL TRY IT
Posts: 576
Threads: 97
Joined: Aug 2007
Hello,
I think this might help you, is this what you are looking for it to do? Test it on a name at the bottom of ur list. Please Tell me if this helps!
Change str y to what ever name on the list you want to find, and it is not case sensitive!
Code:
str y = "Honey dew"
act id(101 "Yahoo!")
Acc a=acc(y "LISTITEM" "Yahoo! Messenger" "SysListView32" "" 0x1011)
a.Select(SELFLAG_TAKESELECTION)
BlockInput(0)
'Y
BlockInput(1)
Posts: 160
Threads: 43
Joined: Sep 2007
QM_Expert Wrote:Hello,
I think this might help you, is this what you are looking for it to do? Test it on a name at the bottom of ur list. Please Tell me if this helps!
Change str y to what ever name on the list you want to find, and it is not case sensitive!
Code:
str y = "Honey dew"
act id(101 "Yahoo!")
Acc a=acc(y "LISTITEM" "Yahoo! Messenger" "SysListView32" "" 0x1011)
a.Select(SELFLAG_TAKESELECTION)
BlockInput(0)
'Y
BlockInput(1)
yes thats perfect tyvm
Posts: 576
Threads: 97
Joined: Aug 2007
YW, lXlXlXlXlXlXl glad to be helpfull