Finding strings on a webpage

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
duzymichal
Posts: 16
Joined: 31 Mar 2017, 04:11

Finding strings on a webpage

03 Apr 2017, 17:11

Hi

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 : https://autohotkey.com/board/topic/8033 ... clipboard/

Code: Select all

^F9::
Send,^a
Send,^c
ClipWait,2
clip = %clipboard%
JBLen :=	8
if	pos :=	Instr(clip,"11-")
{
	StringMid,JobStr,clip,pos,JBLen
	MsgBox, 4160, , Job code is -  %JobStr%
}
else	MsgBox, 4112, , Did not find job string
return
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 (v1)”

Who is online

Users browsing this forum: sachinme and 358 guests