Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selected item storage and use later again?
#1
Hi,

Is it possible to find a selected listbox-item in an html document and later use this info for mouse-actions

For example

I selected an item, it stores this and later i can click this item again?

Thx
#2
What web browser?

Is it like combobox or like listbox?

Example with listbox in Firefox.
Macro Macro1951
Code:
Copy      Help
;find selected item and save its name
int w1=win("Firefox" "Mozilla*WindowClass" "" 0x4)
Acc a1.Find(w1 "LISTITEM" "" "state=2 2" 0x3000 3)
str name=a1.Name
rset name "selected item" "\test"
Macro Macro1952
Code:
Copy      Help
;get saved item name and find the item
str name
rget name "selected item" "\test"
int w1=win("Firefox" "Mozilla*WindowClass" "" 0x4)
Acc a1.Find(w1 "LISTITEM" name "" 0x3000 3)
a1.Mouse(1)


Forum Jump:


Users browsing this thread: 1 Guest(s)