I have a web page, which is dynamically created and source code doesn't contain the words I am looking for.
I need to find one line out of this page containing a keyword which is "List", but at the same time "Listed" "Listing" and "Lists" should be acceptable. So I am searching for the line with word "List" in it and assign it to a variable for further processing.
So far my script looks like this:
Code: Select all
^+w::
sleep 1000
mousemove 350,350 ; blank space on all poages
sleep 50
mouseclick,L
sleep 50
send ^a
sleep 50
send ^c
clipwait
text=%clipboard%
needle=List
RegExMatch(text, needle, out)
msgbox %out%
return
Where am I going wrong ? I am pretty sure my regex is to blame but I am not very familiar with regex use in AHK