Search found 74 matches
- 17 Jan 2021, 01:17
- Forum: Ask For Help
- Topic: Multiple letter hotkey
- Replies: 4
- Views: 97
Re: Multiple letter hotkey
^+1:: Input, key2, L1T.7 keys := RegExReplace(A_ThisHotkey, "\D") key2 MsgBox, 64, Result, You typed:`n`n%keys% Return Thank you but I have a tiny problem with this... If I press ^+1 and then, say, another number, it's quite likely that I am still pressing control and shift. That is, I want to read...
- 16 Jan 2021, 21:57
- Forum: Ask For Help
- Topic: Multiple letter hotkey
- Replies: 4
- Views: 97
Multiple letter hotkey
Hi fellows! I have a problem that must be simple to solve, but I am struggling to find a solution and online searches have borne no fruit. Here's the thing. I am working on a text editor that insert tags with the Alt+digit combination. One occurrence that happens a lot is <TAG1>num<TAG1> (being num ...
- 03 Nov 2020, 09:48
- Forum: Ask For Help
- Topic: Can you avoid firing a hotkey when Control/Shift is used as well?
- Replies: 3
- Views: 69
Re: Can you avoid firing a hotkey when Control/Shift is used as well?
Oh my, you are absolutely correct. I am afraid I have two concurrent scripts.. Aren't I stupid?
So I guess that's the reason, but if I merge the scripts, I understand that they should now work correctly. Yuck what an idiot I am!
So I guess that's the reason, but if I merge the scripts, I understand that they should now work correctly. Yuck what an idiot I am!
- 03 Nov 2020, 09:26
- Forum: Ask For Help
- Topic: Can you avoid firing a hotkey when Control/Shift is used as well?
- Replies: 3
- Views: 69
Can you avoid firing a hotkey when Control/Shift is used as well?
Hi! I have the following problem. I have a script I want to fire when Lbutton is used, but ONLY if it's used by itself. If it's used in combination with other key (such as ^LButton, !LButton or +LButton, for example), I DO NOT WANT IT to fire. How can I do that? This is the particular script (courte...
- 09 Sep 2020, 09:35
- Forum: Ask For Help
- Topic: Script to detect if text was selected from left to right or from right to left?
- Replies: 1
- Views: 109
Script to detect if text was selected from left to right or from right to left?
I have the following need. Since I have a script that selects a text and does certain changes to it, I need a way for the script to differentiate whether the text was selected starting on the left and then moving the mouse (or keyboard) to the right, or viceversa.
Anybody has any idea?
Anybody has any idea?
- 26 Jul 2020, 07:53
- Forum: Scripts and Functions
- Topic: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
- Replies: 194
- Views: 80581
Re: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
HI GeekDude! I saw that your script now supported Unicode charactes. However, I have the EXE version and when I copy a script from Notepad++ ans paste it into CodeQuickTester, all Unicode characters are lost. Do you know why and whether there is a workaround/fix for it? Believe it or not, I use the ...
- 25 Jul 2020, 03:44
- Forum: Ask For Help
- Topic: Function to retain capitalization with RegexReplace
- Replies: 2
- Views: 500
Re: Function to retain capitalization with RegexReplace
I admit I had not seen that. I had searched the forum for other search words (keep capitalization, keep case, retain capitalization) and I had seen something about hotstrings but not this one. However, this does not allow for regular expressions which is what I need. Do you think I could just change...
- 25 Jul 2020, 03:05
- Forum: Ask For Help
- Topic: Function to retain capitalization with RegexReplace
- Replies: 2
- Views: 500
Function to retain capitalization with RegexReplace
Hi everyone! I use RegexReplace and StrReplace a lot. However, I find they lack a feature that is useful for me, and Microsft Word does something similar to what I need automatically (not exactly the same, though). RegexReplace is case-sensitive and allows for a lot of useful regular expressions whi...
- 25 Jul 2020, 00:43
- Forum: Ask For Help
- Topic: Setting (*UCP) option as default for Regular Expressions in AHK Topic is solved
- Replies: 9
- Views: 1377
Re: Setting (*UCP) option as default for Regular Expressions in AHK Topic is solved
Ah, I hadn't seen the typo shown by teadrinker. Anyway, both are awesome. Thank you!
- 24 Jul 2020, 16:12
- Forum: Ask For Help
- Topic: Setting (*UCP) option as default for Regular Expressions in AHK Topic is solved
- Replies: 9
- Views: 1377
Re: Setting (*UCP) option as default for Regular Expressions in AHK Topic is solved
Yep, teadrinker, that seems to do the trick. Thank you! However, I need to do some research and find out why one works and the other doesn't if I am to learn AHK properly!
- 24 Jul 2020, 11:54
- Forum: Ask For Help
- Topic: Setting (*UCP) option as default for Regular Expressions in AHK Topic is solved
- Replies: 9
- Views: 1377
Re: Setting (*UCP) option as default for Regular Expressions in AHK Topic is solved
Apparently, it's not working, I have to research why... but I have done the same change with RegexReplace and with RegexReplaceUCP and one works and the other does not...
- 24 Jul 2020, 07:11
- Forum: Ask For Help
- Topic: Setting (*UCP) option as default for Regular Expressions in AHK Topic is solved
- Replies: 9
- Views: 1377
Re: Setting (*UCP) option as default for Regular Expressions in AHK Topic is solved
Wow... I am speechless. I have to carefully analize what that script does, but thanks!
I think your allowing for options was just masterful. I would have never thought of that... and the usage of the ByRef parameter..
Awesome. Thanks!
I think your allowing for options was just masterful. I would have never thought of that... and the usage of the ByRef parameter..
Awesome. Thanks!
- 24 Jul 2020, 06:03
- Forum: Ask For Help
- Topic: Setting (*UCP) option as default for Regular Expressions in AHK Topic is solved
- Replies: 9
- Views: 1377
Setting (*UCP) option as default for Regular Expressions in AHK Topic is solved
Hi everyone! Do you know if there is a way to set regular expressions to use the entire Unicode character set for regex anchors? (i.e. \b, \B, \s, \w, etc.)? I know you can use (*UCP) as a parameter for each RegexReplace occurence, but don't know if you can set this as the default behaviour. Because...
- 19 Jul 2020, 01:46
- Forum: Ask For Help
- Topic: Help to enhance Listlines command
- Replies: 2
- Views: 1849
Re: Help to enhance Listlines command
Yep, I had not considered that. I will check it out because I know nothing about debuggers... Any specific recommendation?
Thanks for the info!
Thanks for the info!
- 19 Jul 2020, 00:04
- Forum: Ask For Help
- Topic: Help to enhance Listlines command
- Replies: 2
- Views: 1849
Help to enhance Listlines command
Hi everyone! I need help adapting the command Listlines (well, more accurately, its menu equivalent) to suit my needs. For a start, the "Lines more recently executed" shows too few lines. I need to see a larger number of lines .As things are now, the script is cut even with a small while loop so I c...
- 02 Jul 2020, 12:51
- Forum: Ask For Help
- Topic: Speed up this script for DeepL translation
- Replies: 0
- Views: 550
Speed up this script for DeepL translation
Hi everyone! This is a neat function for translating a sentence using DeepL. DeepLTranslate(Source,LangIn,LangOut) ; Translation via hidden IE instances { SetTitleMatchMode, 3 StringReplace, Source, Source, %A_Space%, `%20, All LangIn =en LangOut = es Base := "www.deepl.com/translator#" Path := Base...
- 29 Jun 2020, 10:56
- Forum: Ask For Help
- Topic: Random behavior in script. How do you know where Sleep commands are necessary?
- Replies: 8
- Views: 3991
Re: Random behavior in script. How do you know where Sleep commands are necessary?
Thank you boiler, for your feedback. Indeed, you are the voice of reason and experience.
- 28 Jun 2020, 23:02
- Forum: Ask For Help
- Topic: Modifiable (and working) MsgBox font size script won't accept expressions Topic is solved
- Replies: 7
- Views: 2538
Re: Modifiable (and working) MsgBox font size script won't accept expressions Topic is solved
Hi Boiler, I read the documentation extensively. However, I missed the fact that the % operator could be placed anywhere besides the beginning. All the examples I had seen of MsgBox always were of the kind MsgBox % "New width for object #". A_Index or similar. And I had never seen the % expression o...
- 28 Jun 2020, 22:20
- Forum: Ask For Help
- Topic: Modifiable (and working) MsgBox font size script won't accept expressions Topic is solved
- Replies: 7
- Views: 2538
Re: Modifiable (and working) MsgBox font size script won't accept expressions Topic is solved
Oh my, so the name of the window goes BEFORE the expression? You don't wanna know how long I have fought against that!! Thank you boiler! Awesome and quick, as always. As a tiny sidenote, please edit your code as you missed the final inverted comma in MsgBox, ,My MsgBox, % "Last letter of ClipBoard:...
- 28 Jun 2020, 21:44
- Forum: Ask For Help
- Topic: Modifiable (and working) MsgBox font size script won't accept expressions Topic is solved
- Replies: 7
- Views: 2538
Modifiable (and working) MsgBox font size script won't accept expressions Topic is solved
Hi fellows: I discovered a quite old thread that allowed font modification of an MsgBox command. I know many of you have advised towards using a Gui, but I was more interested in the MsgBox approach. I found an approach that worked (credits to majkinetor for creating such a smart script and boiler f...