Search found 59 matches

by Nixcalo
02 Jul 2020, 12:51
Forum: Ask For Help
Topic: Speed up this script for DeepL translation
Replies: 0
Views: 488

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: 3929

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: 2458

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: 2458

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: 2458

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: 2883

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: 3929

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: 3929

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: 3929

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 ...
by Nixcalo
14 Jun 2020, 23:33
Forum: Ask For Help
Topic: Read a string and perform different actions when certain subpatterns are found (must be easy but I am lost) Topic is solved
Replies: 7
Views: 1656

Re: Read a string and perform different actions when certain subpatterns are found (must be easy but I am lost) Topic is solved

I think your actual string does not work as it's not how my strings are prepared. The actual string I have is something like this (one of the many). Atención: 3<TAG1>Brillo<TAG1><TAG2>El operador puede aumentar o disminuir el brillo de la pantalla.<TAG2><TAG3> I performed a simple String:=StrReplace...
by Nixcalo
14 Jun 2020, 23:24
Forum: Ask For Help
Topic: Read a string and perform different actions when certain subpatterns are found (must be easy but I am lost) Topic is solved
Replies: 7
Views: 1656

Re: Read a string and perform different actions when certain subpatterns are found (must be easy but I am lost) Topic is solved

I am so tired at this moment that I am really struggling to see the difference between your string and my string and how you obtained yours from mine. I am THAT tired! But I will check out your code. I regret somewhat that I used a bit of a "prepared" string instead of an actual one and I am now str...
by Nixcalo
14 Jun 2020, 22:58
Forum: Ask For Help
Topic: Read a string and perform different actions when certain subpatterns are found (must be easy but I am lost) Topic is solved
Replies: 7
Views: 1656

Re: Read a string and perform different actions when certain subpatterns are found (must be easy but I am lost) Topic is solved

I am sorry but it's 6 am and my mind is not what it used to be. How would it be done? I am going to try on my own as well, but I am so dense at this time of the night I could be writing Chinese for what it's worth (and I don't speak a word of Chinese)
by Nixcalo
14 Jun 2020, 21:47
Forum: Ask For Help
Topic: Read a string and perform different actions when certain subpatterns are found (must be easy but I am lost) Topic is solved
Replies: 7
Views: 1656

Read a string and perform different actions when certain subpatterns are found (must be easy but I am lost) Topic is solved

I have been fighting with RegexReplace, RegexMatch and InSrt and the like for hours, and I am lost and depressed. Here are my needs. Let's consider I have a string, such as: String:="Atención: 3╚1>Brillo╚1>╚2>El operador puede aumentar o disminuir el brillo de la pantalla.╚2>╚3>" I need to take that...
by Nixcalo
13 Jun 2020, 00:53
Forum: Ask For Help
Topic: How to shorten a script to make several replacements in a string Topic is solved
Replies: 4
Views: 1911

How to shorten a script to make several replacements in a string Topic is solved

Hi everyone, I need to do something, and I can certainly do it, but the only way that occurs to me is something so cumbersome and stupid there must certainly be a better way. What I need is this. I have a string that can contain a lot of certain words. If such words are present in the string, I need...
by Nixcalo
13 Jun 2020, 00:34
Forum: Ask For Help
Topic: How to properly use RegexReplace/RegexMatch with several subpatterns Topic is solved
Replies: 2
Views: 794

Re: How to properly use RegexReplace/RegexMatch with several subpatterns Topic is solved

Amazing! Thank you! I have now discovered where my problem lay. I always thought that RegexMatch and RegexReplace would keep working until the whole string was processed, but it now seems that the process stops with the first occurrence! No wonder I had been hitting a wall! I have spent 2 entire day...
by Nixcalo
11 Jun 2020, 22:39
Forum: Ask For Help
Topic: How to properly use RegexReplace/RegexMatch with several subpatterns Topic is solved
Replies: 2
Views: 794

How to properly use RegexReplace/RegexMatch with several subpatterns Topic is solved

Hi everyone! I have a problem I have been fighting with for the whole night, and it's as follows. Suppose I have a variable made of a long string. I need to find some patterns within that long variable, and modify them. I have also tried RegexMatch apart from RegexReplace to try and capture the seve...
by Nixcalo
11 Jun 2020, 16:18
Forum: Ask For Help
Topic: I need to find out which specific special character is being copied into the clipboard
Replies: 11
Views: 633

Re: I need to find out which specific special character is being copied into the clipboard

Re ó I did include commented code, did you see it? No I had not. It works! You are awesomeeeee!!! Apparently I had seen some comments and discarded them. Damn! It's sometimes shameful when you are completely lost and someone helps you and makes you wonder how you could be so dumb (or how can there...
by Nixcalo
11 Jun 2020, 15:17
Forum: Ask For Help
Topic: I need to find out which specific special character is being copied into the clipboard
Replies: 11
Views: 633

Re: I need to find out which specific special character is being copied into the clipboard

I have been doing a lot of research and the code you posted does not work for me. However, the free ClipBoard utilities told me that perhaps the command If !WinClip.HasFormat(49351) is not correct. The one that is correct (for me, at least) is this one If !WinClip.HasFormat(49418) I have no idea why...
by Nixcalo
11 Jun 2020, 11:40
Forum: Ask For Help
Topic: I need to find out which specific special character is being copied into the clipboard
Replies: 11
Views: 633

Re: I need to find out which specific special character is being copied into the clipboard

Hi Bobo, I don't understand. I work on an Translation tool that works on an online browser. I don't need Word so I this article does not help. As I said, what I need is simple, what is not simple (for me!) is solving it. I have a string that comprises some plain text and some embedded tags, which on...
by Nixcalo
11 Jun 2020, 01:17
Forum: Ask For Help
Topic: I need to find out which specific special character is being copied into the clipboard
Replies: 11
Views: 633

Re: I need to find out which specific special character is being copied into the clipboard

I am at a loss on what to do. I have reading these posts for several days, and I am able to recover the text and extract it, but cannot modify it and then place it back while respecting the tags in the same position. In other words, I want to go from this Captura.JPG to this captura 2.JPG And I have...

Go to advanced search