Problem To Find String Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
snowmind
Posts: 124
Joined: 12 Nov 2015, 15:18

Problem To Find String

13 Aug 2019, 15:16

Hii :crazy:

Assuming I need to get the 2 lines below the word "Description" how can I do?

Variable content:
*************************************************************************************************************************
Name:
Jonho Smith

Phone 1:
42342342

Phone 2:
12313232

City:
NY

Description:
Installation failure

Erro - 101XX
*************************************************************************************************************************

The way I did, it takes only the first bottom line

Code: Select all

RegExMatch(clipboard, "Justificativa\s?:`r`n(.*)", match)
Var := match1
MsgBox % Var
GEV
Posts: 1005
Joined: 25 Feb 2014, 00:50

Re: Problem To Find String  Topic is solved

13 Aug 2019, 16:02

Code: Select all

clipboard = 
(
Name:
Jonho Smith

Phone 1:
42342342

Phone 2:
12313232

City:
NY

Description:
Installation failure

Erro - 101XX
)
ClipWait 1
Description := StrSplit(clipboard,"`nDescription:`n").2

MsgBox, % Description
snowmind
Posts: 124
Joined: 12 Nov 2015, 15:18

Re: Problem To Find String

13 Aug 2019, 22:49

GEV wrote:
13 Aug 2019, 16:02

Code: Select all

clipboard = 
(
Name:
Jonho Smith

Phone 1:
42342342

Phone 2:
12313232

City:
NY

Description:
Installation failure

Erro - 101XX
)
ClipWait 1
Description := StrSplit(clipboard,"`nDescription:`n").2

MsgBox, % Description
Thanks a lot :beer:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], peter_ahk, Spawnova and 347 guests