If Clipboard contains / in präzisieren

Stelle Fragen zur Programmierung mit Autohotkey

Moderator: jNizM

songoku
Posts: 73
Joined: 12 Apr 2018, 13:22

If Clipboard contains / in präzisieren

31 Aug 2018, 15:25

Habe folgendes Problem:

redford => soll nicht gefunden werden
red => soll gefunden werden
the rose is red => soll gefunden werden

Code: Select all

F2::
col = red,black,green
If Clipboard in %col%
{
msgbox, Ja
}
Else
{
MsgBox, Nein
}return

Arbeite ich mit If Clipboard inwird redford nicht gefunden aber auch "the rose is red" wird nicht gefunden.
Arbeite ich mit If Clipboard containswird alles gefunden, auch redford.

Danke und lieben Gruß
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: If Clipboard contains / in präzisieren

31 Aug 2018, 15:34

Code: Select all

text=
(
redford
red
the rose is red
)
Loop,Parse,text,`n,`r
	MsgBox % RegexMatch(A_LoopField,"i)\bred\b")

Return to “Ich brauche Hilfe”

Who is online

Users browsing this forum: No registered users and 84 guests