Search found 32 matches

by LeFunk
08 Oct 2020, 23:12
Forum: Ask For Help
Topic: Replacing English quotes with German quotes Topic is solved
Replies: 2
Views: 119

Re: Replacing English quotes with German quotes Topic is solved

Thank you very much, it works a treat!
by LeFunk
08 Oct 2020, 06:58
Forum: Ask For Help
Topic: Replacing English quotes with German quotes Topic is solved
Replies: 2
Views: 119

Replacing English quotes with German quotes Topic is solved

Hi all,

I’m trying to replace English quotes ("word") with German ones („word“),
and it can probably be done with a RegExReplace, but I really can’t figure out how.

Thanks in advance!
by LeFunk
07 Oct 2020, 15:24
Forum: Ask For Help
Topic: ControlGetFocus - how to get control value? Topic is solved
Replies: 1
Views: 54

ControlGetFocus - how to get control value? Topic is solved

Hello, I’m trying to get the value of an active control, but I don’t quite understand how: SetTitleMatchMode, 2 ^g:: ControlGetFocus, MyControlName, Notepad ControlGetText, TheContent, %MyControlName%, Notepad MsgBox, The content is %TheContent% Return Works in Notepad, but SetTitleMatchMode, 2 ^g::...
by LeFunk
07 Oct 2020, 07:11
Forum: Scripts and Functions
Topic: Using Google Translate to automate text translation
Replies: 129
Views: 29952

Re: Using Google Translate to automate text translation

Is there a way to replace some parts of the translation?
For example, I’d like to replace hyphens with en-dashes, something like:

clipboard := StrReplace(clipboard,"-","–")

But it doesn’t seem to have any effect, wherever I might try adding it?
by LeFunk
04 Oct 2020, 09:03
Forum: Ask For Help
Topic: Simple control boxes loop
Replies: 1
Views: 46

Simple control boxes loop

I’m trying to create a simple script that loops through input control boxes, but I can’t get it to work: The idea is to compare, if the new control’s class name is different than the old one, then continue. If they are the same (reached back to the beginning), then stop: ControlGetFocus, positionA, ...
by LeFunk
16 Jul 2020, 15:42
Forum: Ask For Help
Topic: Replace comma between digits Topic is solved
Replies: 2
Views: 622

Re: Replace comma between digits Topic is solved

Thank you!
This is absolutely brilliant.
by LeFunk
16 Jul 2020, 15:21
Forum: Ask For Help
Topic: Replace comma between digits Topic is solved
Replies: 2
Views: 622

Replace comma between digits Topic is solved

Hi, I’m trying to remove decimal commas from a sentence and replace periods with commas. The test sentence that I’m using is: The Moon's mean radius is 1,737.5 kilometers, and the Moon has lots of craters. So far I’ve tried: clipboard := RegExReplace(clipboard,"\D") - gives empty result, with texts,...
by LeFunk
19 Oct 2018, 01:02
Forum: Ask For Help
Topic: From Notepad to Word .doc and back Topic is solved
Replies: 7
Views: 1449

Re: From Notepad to Word .doc and back Topic is solved

Thank you, that's exactly what I tried to do, awesome code! An interesting idea to use Word to spell check in other applications. Here is my take on it. OnExit, Word_Shutdown #F12:: Clipboard := "" Send ^c ClipWait if !IsObject(wdApp) wdApp := ComObjCreate("Word.Application") if !IsObject(wdDoc) wdD...
by LeFunk
18 Oct 2018, 11:05
Forum: Ask For Help
Topic: From Notepad to Word .doc and back Topic is solved
Replies: 7
Views: 1449

Re: From Notepad to Word .doc and back Topic is solved

Can you explain what you are trying to achieve using Word? What purpose is the macro fulfilling? There might be a way to do everything in AutoHotkey without the use of Word. Sorry I didn't answer your original request. I just thought I would see if you can provide more information in the case we ca...
by LeFunk
16 Oct 2018, 07:49
Forum: Ask For Help
Topic: From Notepad to Word .doc and back Topic is solved
Replies: 7
Views: 1449

From Notepad to Word .doc and back Topic is solved

I'm trying to create a script that: - sends Notepad text to Word - applies a macro to the text - returns the text to Notepad Opening Word and creating a new document each time was slow, so I created a file test.doc and kept it open for the conversion. But now I can't send any text to it: ifwinactive...
by LeFunk
06 Oct 2018, 03:15
Forum: Ask For Help
Topic: Shift and plus as hotkey Topic is solved
Replies: 3
Views: 1589

Re: Shift and plus as hotkey Topic is solved

Thank you, I got it now! It's a good explanation.
by LeFunk
05 Oct 2018, 13:24
Forum: Ask For Help
Topic: Shift and plus as hotkey Topic is solved
Replies: 3
Views: 1589

Shift and plus as hotkey Topic is solved

I'm trying to use shift and plus together as a hotkey that sends a plus sign, but this doesn't work:

Code: Select all

++::+
Adding & between them or writing out {plus} didn't help. Is it even possible?
Thanks in advance.
by LeFunk
02 Oct 2018, 13:38
Forum: Ask For Help
Topic: Storing CapsLock state of Notepad Topic is solved
Replies: 2
Views: 629

Re: Storing CapsLock state of Notepad Topic is solved

Great! Swift like clockwork, thanks!
by LeFunk
02 Oct 2018, 08:45
Forum: Ask For Help
Topic: Storing CapsLock state of Notepad Topic is solved
Replies: 2
Views: 629

Storing CapsLock state of Notepad Topic is solved

I'm trying to write a script that remembers CapsLock state in Notepad, but deactivates CapsLock when I activate another window (Firefox, for example). When I return to Notepad, it should restore the CapsLock state (up, if it was up in Notepad; down, if it was down). Somehow the script that I wrote i...
by LeFunk
01 Oct 2018, 08:00
Forum: Ask For Help
Topic: Remembering CapsLock state
Replies: 0
Views: 467

Remembering CapsLock state

I'm trying to write a script that remembers CapsLock state in Notepad, but deactivates CapsLock when I activate another window (Firefox, for example). When I return to Notepad, it should restore the CapsLock state (up, if it was up in Notepad, down, if it was down). Somehow the script that I wrote i...
by LeFunk
01 Oct 2018, 07:58
Forum: Ask For Help
Topic: Remembering CapsLock state
Replies: 0
Views: 451

Remembering CapsLock state

I'm trying to write a script that remembers CapsLock state in Notepad, but deactivates CapsLock when I activate another window (Firefox, for example). When I return to Notepad, it should restore the CapsLock state (up, if it was up in Notepad, down, if it was down). Somehow the script that I wrote i...
by LeFunk
01 Oct 2018, 07:53
Forum: Ask For Help
Topic: Remember CapsLock state in Notepad
Replies: 0
Views: 485

Remember CapsLock state in Notepad

I'm trying to write a script that remembers CapsLock state in Notepad, but deactivates CapsLock when I activate another window (Firefox, for example). When I return to Notepad, it should restore the CapsLock state (up, if it was up in Notepad, down, if it was down). Somehow the script that I wrote i...
by LeFunk
30 Oct 2016, 06:40
Forum: Ask For Help
Topic: InStr find second occurrence
Replies: 4
Views: 1259

Re: InStr find second occurrence

Yeah, I misunderstood the documentation.
by LeFunk
30 Oct 2016, 02:59
Forum: Ask For Help
Topic: Capitalize first letter after dash and space
Replies: 2
Views: 1214

Re: Capitalize first letter after dash and space

Thank you, everything works!
Didn't think about the "1" / "!" thing, good point.

Go to advanced search