Search found 70 matches

by Nixcalo
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: 89

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?
by Nixcalo
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: 78500

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 ...
by Nixcalo
25 Jul 2020, 03:44
Forum: Ask For Help
Topic: Function to retain capitalization with RegexReplace
Replies: 2
Views: 493

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...
by Nixcalo
25 Jul 2020, 03:05
Forum: Ask For Help
Topic: Function to retain capitalization with RegexReplace
Replies: 2
Views: 493

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...
by Nixcalo
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: 1348

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!
by Nixcalo
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: 1348

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!
by Nixcalo
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: 1348

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...
by Nixcalo
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: 1348

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!
by Nixcalo
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: 1348

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...
by Nixcalo
19 Jul 2020, 01:46
Forum: Ask For Help
Topic: Help to enhance Listlines command
Replies: 2
Views: 1838

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!
by Nixcalo
19 Jul 2020, 00:04
Forum: Ask For Help
Topic: Help to enhance Listlines command
Replies: 2
Views: 1838

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...
by Nixcalo
02 Jul 2020, 12:51
Forum: Ask For Help
Topic: Speed up this script for DeepL translation
Replies: 0
Views: 530

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...
by Nixcalo
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: 3956

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.
by Nixcalo
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: 2498

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...
by Nixcalo
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: 2498

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:...
by Nixcalo
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: 2498

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...
by Nixcalo
28 Jun 2020, 12:41
Forum: Ask For Help
Topic: Check if text is selected
Replies: 6
Views: 3019

Re: Check if text is selected

How is the Lexicos script adapted to any selected text in any program/page/application (no Gui's involved)?
by Nixcalo
27 Jun 2020, 21:38
Forum: Ask For Help
Topic: Random behavior in script. How do you know where Sleep commands are necessary?
Replies: 8
Views: 3956

Re: Random behavior in script. How do you know where Sleep commands are necessary?

Ok, I'll change my reasoning. Windows 10 is random and does weird things. :P :P :P :P Sure you can't argue with that! But it's certainly weird that the fact of not waiting for a Clipboard to fill does such weird things. Three consecutive attempts did three different things, each weirder than the las...
by Nixcalo
27 Jun 2020, 20:58
Forum: Ask For Help
Topic: Random behavior in script. How do you know where Sleep commands are necessary?
Replies: 8
Views: 3956

Re: Random behavior in script. How do you know where Sleep commands are necessary?

Ah Boiler, I wish you were right. But the fact remains that adding a ClipWait, .2 after a Send, ^x command changed the behaviour of my script drastically, to the point that the script stopped writing Chinese letters or pasting commands instead of executing them. The script was simple enough: This us...
by Nixcalo
27 Jun 2020, 19:17
Forum: Ask For Help
Topic: Random behavior in script. How do you know where Sleep commands are necessary?
Replies: 8
Views: 3956

Random behavior in script. How do you know where Sleep commands are necessary?

Hi everyone! I have a script that has a random behaviour, where it should not. I suppose it's due to the fact that the script is too fast in some cases. I don't really know how Autohotkey processes the script from one line to another and whether it's supposed to wait for one line to be completed in ...

Go to advanced search