Finding strings on a webpage

Get help with using AutoHotkey and its commands and hotkeys
Posts: 16
Joined: 31 Mar 2017, 04:11

Finding strings on a webpage

03 Apr 2017, 17:11


I need to be able to find 3 different texts on a webpage and make them variables.

The strings are as follows: a 8 digit line that always starts with "11", a 10 digit line that always begins with either "39" or "59" and a 6 digit line that always starts with "13".

When I was looking for a solution I found this topic : ... clipboard/

Code: Select all

clip = %clipboard%
JBLen :=	8
if	pos :=	Instr(clip,"11-")
	MsgBox, 4160, , Job code is -  %JobStr%
else	MsgBox, 4112, , Did not find job string
It doesn't work on the Sharepoint forms I'm using to copy the lines from, even though the ^c highlights them so I know they're not ommitted. I was trying with unique line beginnings and length and nothing. Is there a similar way to that presented on the script or do I have to use ImageSearch? (The texts are always in the same locations on the form).

Thank you in advance for any assistance.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], densch, Odlanir, omareg94, toni and 62 guests