Search found 9 matches

by DevinC
08 Oct 2019, 10:42
Forum: Ask For Help
Topic: Hotstrings suddenly not working for special characters
Replies: 3
Views: 410

Re: Hotstrings suddenly not working for special characters

Thanks that works. Thanks @gregster! That worked like a charm. For anybody else on the same boat: On Notepad++, I converted my AHK file to UTF-8-BOM. No need to save, but had to reload the script. This might have happened because I installed AHK into a brand new PC. Its encoding defaults might be di...
by DevinC
09 Aug 2019, 15:31
Forum: Ask For Help
Topic: Autohotkey for Mac
Replies: 27
Views: 36589

Re: Autohotkey for Mac

Sounds complicate. AHK is Windows centric so will leave it at that.
by DevinC
08 Aug 2019, 21:15
Forum: Ask For Help
Topic: Relocating web browser windows
Replies: 1
Views: 177

Relocating web browser windows

Hello, This is a consultation question to see if AHK is able to do the tasks required. I'm using multiple monitor setup, three in this case. With script binded to a hotkey on keyboard, is AHK able to locate and analyze all current web browser windows (e.g. Chrome) and send each window to its destina...
by DevinC
07 Apr 2019, 10:36
Forum: Ask For Help
Topic: Autohotkey for Mac
Replies: 27
Views: 36589

Re: Autohotkey for Mac

Is it possible to run the same AHK code written for Windows on a Mac by using a different software (e.g. Karabiner)?
by DevinC
17 Jan 2018, 17:28
Forum: Ask For Help
Topic: Relocate cursor position after hotstring replacement
Replies: 1
Views: 220

Relocate cursor position after hotstring replacement

Hello, I have created the hotstring : :*oR:fromto::{from: to:} When using the hotstring "fromto", it would replace as expected with cursor at end of string. Is it possible to re-define where the cursor should be after string replacement? For example, I'd the cursor to be relocated to start typing at...
by DevinC
14 Mar 2017, 15:32
Forum: Ask For Help
Topic: Telephone number parser
Replies: 7
Views: 1471

Re: Telephone number parser

Thanks kon. I've updated the code to:

f12::
;CurrentClip := ClipboardAll
Clipboard =
Send ^c
ClipWait
Clipboard := Trim(Clipboard)
Clipboard := RegExReplace(Clipboard, "^.*(\d{3})[^\d]*(\d{3})[^\d]*(\d{4})$", "$1.$2.$3", 1)
Sleep 25
Send ^v
Sleep 250
Clipboard := CurrentClip
Return
by DevinC
14 Mar 2017, 15:03
Forum: Ask For Help
Topic: Telephone number parser
Replies: 7
Views: 1471

Re: Telephone number parser

Thanks shadowpheonix for sharing. How can we improve the code to strip any leading and trailing space(s)? AHK can definitely do that... f12:: CurrentClip := ClipboardAll Clipboard = Send ^c ClipWait Clipboard := RegExReplace(Clipboard, "^.*(\d{3})[^\d]*(\d{3})[^\d]*(\d{4})$", "$1.$2.$3", 1) Sleep 25...
by DevinC
05 Sep 2016, 14:25
Forum: Ask For Help
Topic: Telephone number parser
Replies: 7
Views: 1471

Re: Telephone number parser

Thank you guys!
by DevinC
01 Sep 2016, 16:11
Forum: Ask For Help
Topic: Telephone number parser
Replies: 7
Views: 1471

Telephone number parser

Hello, There are many possible 10-digits phone number formats for North America. 1. +1 111 111 1111 2. +1-111-111-1111 3. +1 (111) 111-1111 4. 1 111 111 1111 5. 1-111-111-1111 6. 1-(111) 111-1111 7. 1111111111 8. 111.111.1111 9. 111-111-1111 etc. I'm looking for code that will parse the phone number...

Go to advanced search