Search found 73 matches

by ndiaz
22 Feb 2019, 12:31
Forum: Ask for Help (v1)
Topic: Help keeping a script running
Replies: 8
Views: 2294

Re: Help keeping a script running

Thank you, but the revised script still yields the same result: it runs only once, when I follow the steps so that the Information window will appear again, the script doesn't run a second time.
by ndiaz
22 Feb 2019, 10:44
Forum: Ask for Help (v1)
Topic: Help keeping a script running
Replies: 8
Views: 2294

Help keeping a script running

Hello, I have a script without a hotkey that waits for a window and then performs a series of steps. The problem I'm having is that I can't get it to reset and wait for the window again, so it only runs once. How can I get it to keep running so the steps will be executed whenever the window appears?...
by ndiaz
29 Nov 2018, 22:08
Forum: Ask for Help (v1)
Topic: Help making a script section conditional
Replies: 1
Views: 562

Help making a script section conditional

Hello, I have the following script: Loop { WinWait,Add Supported Language Pairs Send {Esc 2} WinWait,Information WinGetText, text Send {Esc} RegExMatch(text,"(?<=').*(?=')",TMname) ;Sleep 100 Send !u ;Sleep 100 Send {Down 6}{Enter} ;Sleep 100 Send %TMname% ;Sleep 100 Send {Enter} ;Sleep 100 WinWait,...
by ndiaz
18 Oct 2018, 13:52
Forum: Ask for Help (v1)
Topic: Getting on-top window to "follow" a color in the window underneath
Replies: 2
Views: 572

Re: Getting on-top window to "follow" a color in the window underneath

there are no images Mmmm, I thought I had attached them with the Attachments option, but I see now they weren't attached. I'm trying to figure out how to upload the images in the forum, but get messages saying that my png files are not supported and when I try to attach a zip file, it says the temp...
by ndiaz
18 Oct 2018, 12:44
Forum: Ask for Help (v1)
Topic: Getting on-top window to "follow" a color in the window underneath
Replies: 2
Views: 572

Getting on-top window to "follow" a color in the window underneath

I have a Notepad window always on top of another program where the active text area has a blue background. The active text area moves up and down the screen as you work, and I would like for the bottom of the Notepad window to always be just above the blue area, is that possible? I've attached a cou...
by ndiaz
18 Oct 2018, 12:29
Forum: Ask for Help (v1)
Topic: Send text to non-focus Notepad in one chunk
Replies: 6
Views: 1963

Re: Send text to non-focus Notepad in one chunk

Thank you! That worked perfectly.
by ndiaz
18 Oct 2018, 11:52
Forum: Ask for Help (v1)
Topic: Send text to non-focus Notepad in one chunk
Replies: 6
Views: 1963

Re: Send text to non-focus Notepad in one chunk

Thank you, Sendmode Input already appears at the top of my script file.
by ndiaz
18 Oct 2018, 11:30
Forum: Ask for Help (v1)
Topic: Send text to non-focus Notepad in one chunk
Replies: 6
Views: 1963

Re: Send text to non-focus Notepad in one chunk

Thank you! Unfortunately, using this code doesn't send the variable to Notepad at all. I'm wondering, can one do a "Ctrl+V" with ControlSend? I can't seem to make it work. Also, is ControlSend the only option to send a variable to an app that doesn't have focus? Regarding question 2, sorry if I wasn...
by ndiaz
18 Oct 2018, 09:33
Forum: Ask for Help (v1)
Topic: Send text to non-focus Notepad in one chunk
Replies: 6
Views: 1963

Send text to non-focus Notepad in one chunk

Hello, I was hoping to get help with two questions. Question 1 I've created a very basic script to send a variable to Notepad without giving Notepad focus. The script is working fine, but the text is typed out one letter at a time (I'm using ControlSend) and I would like to have it all appear at onc...
by ndiaz
04 Dec 2017, 15:38
Forum: Ask for Help (v1)
Topic: How to account for changing ClassNN info
Replies: 15
Views: 4116

Re: How to account for changing ClassNN info

Thank you jeeswg!
by ndiaz
28 Nov 2017, 21:08
Forum: Ask for Help (v1)
Topic: Help optimizing multiple string replacements in clipboard text
Replies: 16
Views: 3537

Re: Help optimizing multiple string replacements in clipboard text

Sometimes you can do a replacement that you know will correct some things incorrectly, but follow that with a replacement that fixes the wrong corrections. However, since I've been using RegEx, I tend not to need to do that. Cheers. Good point! That happens all the time when doing Spanish replaceme...
by ndiaz
28 Nov 2017, 20:54
Forum: Ask for Help (v1)
Topic: Help optimizing multiple string replacements in clipboard text
Replies: 16
Views: 3537

Re: Help optimizing multiple string replacements in clipboard text

Thank you for the additional code for the Regex replacement and thank you for the advice regarding the replacement of saved files, I think I'll stay away from that. The potential for creating a mess outweighs the benefits of saving kestrokes in my use case. Thank you again for your incredible patien...
by ndiaz
28 Nov 2017, 20:39
Forum: Ask for Help (v1)
Topic: Help optimizing multiple string replacements in clipboard text
Replies: 16
Views: 3537

Re: Help optimizing multiple string replacements in clipboard text

It seems that I've managed to add a step that solves the problem. The program has a "Delete to Next Tag" shortcut, so instead of doing a Select All+Copy, I'm doing a "Delete to Next Tag-Undo (which leaves the text selected)-Copy". This works well also in segments with no tags. The only difference is...
by ndiaz
28 Nov 2017, 20:27
Forum: Ask for Help (v1)
Topic: Help optimizing multiple string replacements in clipboard text
Replies: 16
Views: 3537

Re: Help optimizing multiple string replacements in clipboard text

Certainly! I created a simple document with some tags that looks like this: hw tags.png In Notepad++, the relevant part of the file looks like this: <target><g id="2"><mrk mtype="seg" mid="1">Hello <g id="5">World</g><g id="8">!</g></mrk></g></target> And the Clipboard Viewer shows the plain text un...
by ndiaz
28 Nov 2017, 19:21
Forum: Ask for Help (v1)
Topic: Help optimizing multiple string replacements in clipboard text
Replies: 16
Views: 3537

Re: Help optimizing multiple string replacements in clipboard text

Thank you for confirming that it wouldn't be an easy fix jeeswg. Just to provide some context, I'm a freelance translator and this is a CAT (computer assisted translation) program widely used in the translation industry. I like your second point. The program does have a Find/Replace dialog, and that...
by ndiaz
28 Nov 2017, 18:47
Forum: Ask for Help (v1)
Topic: Help optimizing multiple string replacements in clipboard text
Replies: 16
Views: 3537

Re: Help optimizing multiple string replacements in clipboard text

PS Please ignore the incorrectly removed space before the word "organization", that's due to my mistake in leaving an extra space in the script before the word "organisation".
by ndiaz
28 Nov 2017, 18:46
Forum: Ask for Help (v1)
Topic: Help optimizing multiple string replacements in clipboard text
Replies: 16
Views: 3537

Re: Help optimizing multiple string replacements in clipboard text

Thank you for taking the time to explain that jeeswg. I have now added your code to my very basic script to test in my actual use case, for now manually adding some of the replacements that I need to make while I learn about continuations. I now have this: #r:: ClipSaved := ClipboardAll Clipboard = ...
by ndiaz
28 Nov 2017, 17:59
Forum: Ask for Help (v1)
Topic: Help optimizing multiple string replacements in clipboard text
Replies: 16
Views: 3537

Re: Help optimizing multiple string replacements in clipboard text

1. Is there a way to automatically get the script to go and check my Excel list and take all the replacements from there? This would allow me to grow the Excel list without having to worry about the script. Let's guess, yes. Being a semi-noob I'd save that file in CSV-format bc AHK offers several c...
by ndiaz
28 Nov 2017, 17:58
Forum: Ask for Help (v1)
Topic: Help optimizing multiple string replacements in clipboard text
Replies: 16
Views: 3537

Re: Help optimizing multiple string replacements in clipboard text

Thank you jeeswg! I just tested your code and it works great. That is a huge help, and certainly something that is lightyears beyond my current skills. I will read up on continuation sections for sure. I also need to learn the difference between StringReplace and StrReplace, have added that to my li...
by ndiaz
28 Nov 2017, 17:08
Forum: Ask for Help (v1)
Topic: Help optimizing multiple string replacements in clipboard text
Replies: 16
Views: 3537

Help optimizing multiple string replacements in clipboard text

Hello, I need to do the following: 1. Select text and send it to the clipboard 2. Run a multiple replacement operation on this text 3. Paste the modified text back onto my program As an example, let's say that I have the following text: The organisation takes 5 / 6 hours to respond to each request. ...

Go to advanced search