Search found 73 matches

by ndiaz
20 Nov 2017, 11:58
Forum: Ask for Help (v1)
Topic: Smart paste script
Replies: 0
Views: 366

Smart paste script

Hello, I have a question for experienced and veteran AHK users: Is there a script to emulate the smart paste function found in Word, where spacing is automatically adjusted, deleting or adding necessary spaces, depending on where the text is pasted? If there isn't one that I could use, where should ...
by ndiaz
17 Nov 2017, 16:41
Forum: Ask for Help (v1)
Topic: How to account for changing ClassNN info
Replies: 15
Views: 4245

Re: How to account for changing ClassNN info

Yes, thank you very much, this has been very informative.

Thank you for taking the time to provide all this info.
by ndiaz
17 Nov 2017, 15:56
Forum: Ask for Help (v1)
Topic: How to account for changing ClassNN info
Replies: 15
Views: 4245

Re: How to account for changing ClassNN info

Oh sorry, some more text in other message boxes:

English (United States)

Spanish (Mexico)
English (United States)
by ndiaz
17 Nov 2017, 15:54
Forum: Ask for Help (v1)
Topic: How to account for changing ClassNN info
Replies: 15
Views: 4245

Re: How to account for changing ClassNN info

Thank you for your patience in guiding me through this. I ran the script and get the following:

WindowsForms10.COMBOBOX.app.0.29531c8_r9_ad1
by ndiaz
17 Nov 2017, 15:27
Forum: Ask for Help (v1)
Topic: How to account for changing ClassNN info
Replies: 15
Views: 4245

Re: How to account for changing ClassNN info

14 definitely sounds like a lot. Here's a screenshot of the program, with an arrow pointing to the Dropdown list I need to access. 2017-11-17_131730.png Getting the text in the ComboBox: I tried the script, but pressing q only gives me an empty message box. Does that mean it's not possible to get th...
by ndiaz
17 Nov 2017, 15:03
Forum: Ask for Help (v1)
Topic: How to account for changing ClassNN info
Replies: 15
Views: 4245

Re: How to account for changing ClassNN info

Thank you so much, in case it helps clarify things further, here's some more info from Window Spy: Window Title, Class and Process: SDL Trados Studio ahk_class WindowsForms10.Window.8.app.0.29531c8_r9_ad1 ahk_exe SDLTradosStudio.exe Control Under Mouse Position: ClassNN: WindowsForms10.COMBOBOX.app....
by ndiaz
17 Nov 2017, 14:44
Forum: Ask for Help (v1)
Topic: How to account for changing ClassNN info
Replies: 15
Views: 4245

Re: How to account for changing ClassNN info

Thank you! Two versions of the same control are:

On my desktop: WindowsForms10.COMBOBOX.app.0.29531c8_r9_ad14
On my laptop: WindowsForms10.COMBOBOX.app.0.201d787_r9_ad11

I'm afraid you code is way over my head, being just a newbie with AHK. How could I incorporate that into my script?
by ndiaz
17 Nov 2017, 13:14
Forum: Ask for Help (v1)
Topic: How to account for changing ClassNN info
Replies: 15
Views: 4245

Re: How to account for changing ClassNN info

Thank you, I had seen that but I haven't understood how it might apply in this case. If I use SetTitleMatchMode, 2, will it also apply to the COMBOBOX control, or only to the Window title?
by ndiaz
17 Nov 2017, 12:59
Forum: Ask for Help (v1)
Topic: How to account for changing ClassNN info
Replies: 15
Views: 4245

How to account for changing ClassNN info

Hello, The program I'm using (SDL Trados Studio) doesn't always use the same ClassNN for controls, so for example, a script that I write on my desktop computer won't work on my laptop, and a colleague has mentioned that control names may even change on the same computer after closing and restarting ...
by ndiaz
11 Nov 2017, 23:20
Forum: Ask for Help (v1)
Topic: Typing certain text before opening a window with a shortcut
Replies: 2
Views: 1010

Re: Typing certain text before opening a window with a shortcut

Thank you Barney, that sends "GOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACKGOBACK", etc. multiple times and never actually opens the Find and Replace window . I think I've found the solution: adding a $ in front of the hotkey, like this:

$^h::
Send GOBACK
Send ^h
return
by ndiaz
11 Nov 2017, 20:50
Forum: Ask for Help (v1)
Topic: Typing certain text before opening a window with a shortcut
Replies: 2
Views: 1010

Typing certain text before opening a window with a shortcut

Ctrl+H opens the Find and Replace window in a program I'm using. After running a Replace All operation, the cursor is left at the very last replacement, but I want it to go back to its starting position. I plan on doing this with a simple trick: inserting GOBACK at my current cursor position before ...
by ndiaz
11 Nov 2017, 20:41
Forum: Ask for Help (v1)
Topic: Clicking another button when a button is clicked
Replies: 2
Views: 831

Re: Clicking another button when a button is clicked

Problem solved! I've used MouseGetPos.
by ndiaz
11 Nov 2017, 20:25
Forum: Ask for Help (v1)
Topic: Clicking another button when a button is clicked
Replies: 2
Views: 831

Re: Clicking another button when a button is clicked

I've managed to make this work with a hotkey, as below: F5:: Controlclick, Find &Next, Find and Replace Sleep 1000 Controlclick, R&eplace All, Find and Replace return Now my question is, how do I adapt this so it will be triggered when I left click on the Replace All button? I think I need to create...
by ndiaz
11 Nov 2017, 19:37
Forum: Ask for Help (v1)
Topic: Clicking another button when a button is clicked
Replies: 2
Views: 831

Clicking another button when a button is clicked

I have a program with the following behavior: When Replace All is clicked, nothing happens unless Find Next is clicked first, after which Replace All needs to be clicked again. What I'd like to do is: Whenever I click Replace All, I'd like Find Next to be clicked, a short pause, and then Replace All...
by ndiaz
05 Aug 2017, 12:31
Forum: Ask for Help (v1)
Topic: Checking if selected string has a trailing space
Replies: 16
Views: 2962

Re: Checking if selected string has a trailing space

So here's my attempt to perform these steps: 1. Cut selection to clipboard 2. Insert desired tag pair (this would be the manual step, the script would have to bypass it somehow) 3. Move the cursor back inside the tag pair, paste the selection (which would preserve the trailing spaces, if any) and mo...
by ndiaz
05 Aug 2017, 10:48
Forum: Ask for Help (v1)
Topic: Checking if selected string has a trailing space
Replies: 16
Views: 2962

Re: Checking if selected string has a trailing space

Thank you jeeswg, this is a program used by translators and the tags need to be added dynamically during translation. There's no way of knowing ahead of time where they should be placed, as they need to be applied to the translated text and always depend on the position of the tags in the source tex...
by ndiaz
05 Aug 2017, 10:28
Forum: Ask for Help (v1)
Topic: Checking if selected string has a trailing space
Replies: 16
Views: 2962

Re: Checking if selected string has a trailing space

Thank you for that! I just tested it and it works perfectly, but as you have rightly pointed out, this is only good for tags that can be applied sequentially, which is not always the case. So I would like to explore your suggestion to still interact manually with Ctrl-Alt-Right and letting AHK autom...
by ndiaz
05 Aug 2017, 00:24
Forum: Ask for Help (v1)
Topic: Checking if selected string has a trailing space
Replies: 16
Views: 2962

Re: Checking if selected string has a trailing space

Perhaps a short video will help explain it better: https://youtu.be/qbYV9-C53JM

There may be a simpler way of approaching the whole thing that I'm not seeing.
by ndiaz
04 Aug 2017, 22:56
Forum: Ask for Help (v1)
Topic: Checking if selected string has a trailing space
Replies: 16
Views: 2962

Re: Checking if selected string has a trailing space

Thank you for the explanation. I'm working on fixing the brackets now. The reason I need multiple expressions is because the way the program works is that when there are multiple tag pairs in the same segment (sentence), the first tag pair is applied after pressing Ctrl+Alt+Right, but then to cycle ...
by ndiaz
04 Aug 2017, 21:57
Forum: Ask for Help (v1)
Topic: Checking if selected string has a trailing space
Replies: 16
Views: 2962

Re: Checking if selected string has a trailing space

The following is working as intended: !8:: Send ^c Sleep 200 RegExMatch(clipboard,"\s+$",output) If output ; If var's contents are blank or 0, it is considered false. Otherwise, it is true, i.e., a trailing space is found Send ^!{Right}{Esc}{Right}{Left}%output%{Right}{Del} ;sequence of actions for...

Go to advanced search