Search found 28 matches

by Shanghei
03 Nov 2021, 10:16
Forum: Ask for Help (v1)
Topic: Regex to ignore command if multiple characters exist
Replies: 3
Views: 254

Re: Regex to ignore command if multiple characters exist

mikeyww wrote:
03 Nov 2021, 10:07
You can post your script here to get specific feedback about it.

Code: Select all

ClipBoard =
Send, ^c
Clipwait, 0.5
RegExMatch(ClipBoard, "\$(\S*[A-Z])", F)
ClipBoard := F1
Click,51,96
sleep, 10
Send {Ctrl Down}
Send {v}
Send {Ctrl up}
Return
[Mod edit: [code][/code] tags added.]
by Shanghei
03 Nov 2021, 10:02
Forum: Ask for Help (v1)
Topic: Regex to ignore command if multiple characters exist
Replies: 3
Views: 254

Regex to ignore command if multiple characters exist

Hello, good morning. I have a regex to copy characters proceeding the $ character. So if I copy an entire sentence and in that sentence $HELLO existed, it would only copy HELLO to clipboard. I was wondering if there was a way to modify it so that if two exist, for for example $HELLO and $GOODBYE it ...
by Shanghei
03 Nov 2021, 10:02
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1092
Views: 589470

Re: FindText - Capture screen image into text and then find it Topic is solved

Hello, I have find text setup to trigger if a certain word is posted, I was wondering if there was a way to setup a script to copy the word immediately following the trigger word. So for example, lets say i have findtext setup to find the world "Hello" and the phrase Hello world comes up I want the...
by Shanghei
19 Oct 2021, 09:38
Forum: Ask for Help (v1)
Topic: Regex to only copy a word after a specific word?
Replies: 2
Views: 593

Regex to only copy a word after a specific word?

Hello all would appreciate the help on this one. I was wondering if there was a way through regex or some other way to copy any word that follows a specific word. So for example lets say i copy a whole sentence, and in that sentence and the word Hello (case sensitive) world comes up, it will only co...
by Shanghei
19 Oct 2021, 09:31
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1092
Views: 589470

Re: FindText - Capture screen image into text and then find it Topic is solved

Hello, I have find text setup to trigger if a certain word is posted, I was wondering if there was a way to setup a script to copy the word immediately following the trigger word. So for example, lets say i have findtext setup to find the world "Hello" and the phrase Hello world comes up I want the ...
by Shanghei
25 Jun 2021, 08:13
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1092
Views: 589470

Re: FindText - Capture screen image into text and then find it Topic is solved

@Shanghei You can do this: :D 1. Search multiple words with subtle differences at one time Text := "|<hello>*149$30.k02A0k02A0k02A0y7WASl8GAll8GAVlDmAVl82AVl83All7VaSU" Text .= "|<hello>*149$30.U0680U0680U0680yDa8SWMa8XWEq9VWTq9VWE69VW828WW73ASU" 2. Set the appropriate fault tolerance instead of th...
by Shanghei
24 Jun 2021, 14:27
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1092
Views: 589470

Re: FindText - Capture screen image into text and then find it Topic is solved

I am having an issue with findtext, if I have it watching for a specific keyword I capture, for the example lets say the keyword is "hello" and it was the first word in the sentence when I captured it. It will then only find that word if it is the first word in the sentence going forward. it will fi...
by Shanghei
16 Jun 2021, 19:03
Forum: Ask for Help (v1)
Topic: Regex to only copy sequential capitalized words Topic is solved
Replies: 12
Views: 655

Re: Regex to only copy sequential capitalized words Topic is solved

Thanks for the quick reply, i tried the above, but if there is a word with more thatn 3 letters first, it copies that but the first four letters of that word. I want it to skip those all together. So with the script ALERT BUY the outcome is ALER, whereas I just want BUY to be copied. You're welcome...
by Shanghei
16 Jun 2021, 17:05
Forum: Ask for Help (v1)
Topic: Regex to only copy sequential capitalized words Topic is solved
Replies: 12
Views: 655

Re: Regex to only copy sequential capitalized words Topic is solved

Is there any modification I can make to that to only copy words that are 3 to 4 letters only? Yes, try ClipBoard = HA ETT TREVLIGT ÅR RegExMatch(ClipBoard, "(\p{Lu}{3,4})", M) MsgBox,% M ; On this pattern, M and M1 give the same output /* Output: ETT */ Edited: Posted a better example Thanks for th...
by Shanghei
16 Jun 2021, 16:22
Forum: Ask for Help (v1)
Topic: Regex to only copy sequential capitalized words Topic is solved
Replies: 12
Views: 655

Re: Regex to only copy sequential capitalized words Topic is solved

Is there any modification I can make to that to only copy words that are 3 to 4 letters only?
by Shanghei
16 Jun 2021, 12:18
Forum: Ask for Help (v1)
Topic: Regex to only copy sequential capitalized words Topic is solved
Replies: 12
Views: 655

Re: Regex to only copy sequential capitalized words Topic is solved

I see sorry I added it wrong to my ahk but got it to work now as you had it is correct
by Shanghei
16 Jun 2021, 11:32
Forum: Ask for Help (v1)
Topic: Regex to only copy sequential capitalized words Topic is solved
Replies: 12
Views: 655

Re: Regex to only copy sequential capitalized words Topic is solved

morning was just an example, i meant cap words in general
by Shanghei
16 Jun 2021, 11:10
Forum: Ask for Help (v1)
Topic: Regex to only copy sequential capitalized words Topic is solved
Replies: 12
Views: 655

Regex to only copy sequential capitalized words Topic is solved

Hello, seeking a regex to only copy sequential capitalized words in a sentence.

For example:

Good MORNING everyone. Have a good day.

So if I highlight the text above and copy, only MORNING is copied?

Thanks a bunch.
by Shanghei
10 Jun 2021, 20:01
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1092
Views: 589470

Re: FindText - Capture screen image into text and then find it Topic is solved

@feiyue
Quick question, I have added three different words I have monitored in my script and I want my script to execute only if all 3 words appear at same time. Any advice? Thank you!
by Shanghei
10 Jun 2021, 06:56
Forum: Ask for Help (v1)
Topic: Telegram Automation
Replies: 87
Views: 33090

Re: Telegram Automation

Hi, was wonderig if there was way to monitor a telegram chatroom im in for a certain keyword. and if the keyword matches, for example if someone says "hold" that it will trigger one of my scripts i usually run manually. thank you!
by Shanghei
09 Jun 2021, 12:52
Forum: Ask for Help (v1)
Topic: WinActivate doesn't work on multidisplay setup
Replies: 2
Views: 159

Re: WinActivate doesn't work on multidisplay setup

boiler wrote:
09 Jun 2021, 12:51
Have you tried activating the exact same window in each monitor? For example, use WinActivate on a Notepad window on monitor 1 to make sure that works, then move that very same window to monitor 2 and confirm that it won’t activate when it’s on that monitor.
yes
by Shanghei
09 Jun 2021, 12:33
Forum: Ask for Help (v1)
Topic: WinActivate doesn't work on multidisplay setup
Replies: 2
Views: 159

WinActivate doesn't work on multidisplay setup

Hi all, I have two monitors, and Winactivate works every time for the monitor marks as my primary, but if a program is on display 2 winactive doesnt work for it. Any tips?

Thanks everyone.
by Shanghei
08 Jun 2021, 14:47
Forum: Ask for Help (v1)
Topic: Copy specific line only from text
Replies: 1
Views: 170

Copy specific line only from text

Hello, was wondering if there was a way to copy a specific line of text that is highlighted, for exaple.

Code: Select all

"Hello everyone,

Hows is everyone doing

Have a good day."
So if I copy that entire sentence, I wish to copy only the second line being "how is everyone doing"

Thank you very much for help
by Shanghei
04 Jun 2021, 08:47
Forum: Ask for Help (v1)
Topic: Block mouse input when script is executing
Replies: 2
Views: 344

Block mouse input when script is executing

Hello all, I have a script that whe I press a hotkey, itll copy what I selected , move the mouse to another windows and paste what was copied there. While that is executing, if I happen to move my mouse just a little bit it will throw of the script. So was wondering, while that script was executing ...

Go to advanced search