Share this post

Link to post

Share on other sites

mikell 609

mikell 609

$str="some text"&@crlf&"John has won GUI45n with a score of 5!"&@crlf&"some other text"Msgbox(0,"",$str)$key="John has won"$res=StringRegExpReplace($str,'(?s).*'&$key&'\h*(\w+).*',"$1")Msgbox(0,"",$res)

Share this post

Link to post

Share on other sites

eKolin 0

eKolin 0

@JLogan3o13 Ok. The font size and colour would be exact as shown in the image.
It would search for that text in certain coordinates, let's pretend it's (100,200,200,300).
Like i said in my upper post, it's case sensitive, can contain numbers, letters, signs ":" and "/".
It would have to check the area every 10ms, if true then "send(Found)" AND repeat the loop after 1 minute (after sending the "found")

"John has won" and "with a score of 5!" Will always be the same, while GUI45n can be anything that's made of 6 letters. I need to respond it with send(/GUI45n), yes i additionaly need the slash. Hope that you guys will understand me despite how bad my grammar nd stuff is. I would be really greatful if someone would write this code for me

Share this post

Link to post

Share on other sites

Melba23 2,599

Melba23 2,599

That sounds very much like a game - have you read the Forum rules? What is this app that you are attempting to automate?

M23

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort---- Sort arrays on multiple columnsChooseFileFolder---- Single and multiple selections from specified path treeview listingDate_Time_Convert-- Easily convert date/time formats, including the language usedExtMsgBox--------- A highly customisable replacement for MsgBoxGUIExtender-------- Extend and retract multiple sections within a GUIGUIFrame---------- Subdivide GUIs into many adjustable framesGUIListViewEx------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx------ Check/clear parent and child checkboxes in a TreeViewMarquee----------- Scrolling tickertape GUIsNoFocusLines------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify------------- Small notifications on the edge of the displayScrollbars----------Automatically sized scrollbars with a single commandStringSize---------- Automatically size controls to fit textToast-------------- Small GUIs which pop out of the notification area

Share this post

Link to post

Share on other sites

JLogan3o13 1,151

JLogan3o13 1,151

@Skysnake you have been around long enough to know that when a Moderator weighs in with a question as to the legitimacy of a thread, that is not the time for you tocontinue posting. Wait until that question is answered by the OP.