Search found 139 matches

by Guill
18 Aug 2023, 08:07
Forum: Ask for Help (v1)
Topic: Help - Make this script faster in Notepad
Replies: 1
Views: 195

Help - Make this script faster in Notepad

I would like to make the following code work much faster in Notepad, perhaps with FileRead/Append/ and with Regular Expressions. Somebody could help me? Thank you very much in advance. Loop { Gosub configTXT If (Clipboard = "§") { Break } If GetKeyState("Esc", "P") Break } Return configTXT: Pause:: ...
by Guill
26 May 2022, 22:27
Forum: Ask for Help (v1)
Topic: How to adapt this Simple script to RegEx format Topic is solved
Replies: 4
Views: 572

Re: How to adapt this Simple script to RegEx format Topic is solved

Thank you very much!
mikeyww wrote:
26 May 2022, 21:27

Code: Select all

F3::
str := RegExReplace(Clipboard, "m`a)-(\h*)$", "$1") ; Delete trailing hyphen
str := RegExReplace(str, "\R")                      ; Delete line break
SendInput {Text}%str%
Return
by Guill
26 May 2022, 21:13
Forum: Ask for Help (v1)
Topic: How to adapt this Simple script to RegEx format Topic is solved
Replies: 4
Views: 572

Re: How to adapt this Simple script to RegEx format Topic is solved

Thank you, but I have two problems with this option: 1 How could I configure StringReplace to say delete "carriage return"? "`r`n" doesn't work when I try it. 2 How could I say, for example, "delete the "-" that is only at the end of the line (and not everyone)? The principal problem that I have is ...
by Guill
26 May 2022, 19:13
Forum: Ask for Help (v1)
Topic: How to adapt this Simple script to RegEx format Topic is solved
Replies: 4
Views: 572

How to adapt this Simple script to RegEx format Topic is solved

Hi guys, I have this script, which I use to remove line breaks from continuous text in Notepad (and when it encounters a ".", "!", etc., it does not remove the end, but continues on). It works, but I would like to know if I can make it do it faster using Regular Expressions or another method. Loop {...
by Guill
28 Jul 2021, 21:52
Forum: Ask for Help (v1)
Topic: key recorder? Topic is solved
Replies: 4
Views: 977

Re: key recorder? Topic is solved

You can add or replace with this TrayTip

Code: Select all

Traytip, THE KEY IS, %A_PriorKey%

by Guill
05 Feb 2021, 18:08
Forum: Ask for Help (v1)
Topic: AHK doesn't work in Everything (File Explorer) Topic is solved
Replies: 2
Views: 311

Re: AHK doesn't work in Everything (File Explorer) Topic is solved

Thanks Mikeyww.

mikeyww wrote:
05 Feb 2021, 17:45
The first line uses invalid syntax. Nonetheless, as far as I can tell, Everything is "not compatible", perhaps because it uses its own global keyboard shortcuts.
by Guill
05 Feb 2021, 17:34
Forum: Ask for Help (v1)
Topic: AHK doesn't work in Everything (File Explorer) Topic is solved
Replies: 2
Views: 311

AHK doesn't work in Everything (File Explorer) Topic is solved

Does anyone know why Autohotkey doesn't work in Everything (File Explorer)?
It worked in previous versions, but not the latest.
Can I do something to make it work?
I already tried:

#IfWinactivate ahk_exe Everything.exe
#If Winactive("Everything")
by Guill
25 Nov 2020, 14:42
Forum: Pedir Ayuda
Topic: Mover mouse a X coordenadas, hacer clic y volver
Replies: 2
Views: 2239

Re: Mover mouse a X coordenadas, hacer clic y volver

Si quieres que se mantenga presionado por dos segundos debería ser así: MouseGetPos X, Y ; DETECTA POSICIÓN INICIAL Click, Down, 1300, 0 ; MANTIENE EL MOUSE PRESIONADO EN LUGAR ESPECÍFICO Sleep 2000 ; ESPERA 2 SEGUNDOS Click, Up ; LIBERA EL MOUSE Mousemove, %X%, %Y% ; VUELVE EL MOUSE A LA POSICIÓN I...
by Guill
25 Nov 2020, 14:39
Forum: Pedir Ayuda
Topic: Mover mouse a X coordenadas, hacer clic y volver
Replies: 2
Views: 2239

Re: Mover mouse a X coordenadas, hacer clic y volver

Code: Select all

MouseGetPos X, Y ; DETECTA POSICIÓN INICIAL
Click, 1300, 0 ; CLICKEA EN LUGAR ESPECÍFICO
Sleep 2000 ; ESPERA 2 SEGUNDOS
Mousemove, %X%, %Y% ; VUELVE EL MOUSE A LA POSICIÓN INICIAL
Return
by Guill
23 Nov 2020, 22:54
Forum: Ask for Help (v1)
Topic: Help with an easy script: If Capslock is OFF, Turn On Topic is solved
Replies: 2
Views: 246

Help with an easy script: If Capslock is OFF, Turn On Topic is solved

Hi guys,

I need:

If Capslock is OFF
Turn On

Thanks in advance
by Guill
31 Jul 2020, 12:58
Forum: Ask for Help (v1)
Topic: AHK doesn't work in Device Manager (devmgmt.msc) Topic is solved
Replies: 1
Views: 1064

AHK doesn't work in Device Manager (devmgmt.msc) Topic is solved

Why AHK does not work in Device Manager window (devmgmt.msc)?

Is there any way it can work?
by Guill
24 Jul 2020, 20:01
Forum: Ask for Help (v1)
Topic: "GoTo a Label" from a Function Topic is solved
Replies: 2
Views: 1976

Re: "GoTo a Label" from a Function Topic is solved

Not only can you not goto a label from inside a function to outside, you wouldn’t want to go to that label because it’s an infinite loop and it would never return. Try using SetTimer to launch a subroutine to display your TrayTip every seven seconds by setting the period to 7000. Thank you very muc...
by Guill
24 Jul 2020, 17:18
Forum: Ask for Help (v1)
Topic: "GoTo a Label" from a Function Topic is solved
Replies: 2
Views: 1976

"GoTo a Label" from a Function Topic is solved

Hello guys, I would like to know if you can help me with the following problem: I have the following code so that, eventually, after pressing + f1, I temporarily change the function of Numpad0, but not to forget that this function is activated, I would like a Traytip to remind me of this every 7 sec...
by Guill
17 Apr 2020, 07:46
Forum: Ask for Help (v1)
Topic: Select a piece of text from a TXT file Topic is solved
Replies: 5
Views: 1034

Re: Select a piece of text from a TXT file Topic is solved

Thank you very mucth Boiler!

Very clear and didactic!
by Guill
16 Apr 2020, 21:31
Forum: Ask for Help (v1)
Topic: Select a piece of text from a TXT file Topic is solved
Replies: 5
Views: 1034

Select a piece of text from a TXT file Topic is solved

Hello guys I need the following: I want that AHK selects a segment from a certain start, to a certain end, of a TXT file in which I have certain email addresses, and which, at the same time, I modify frequently, And after selecting it, copy it to the Clipboard. The FileReadLine command doesn't work ...
by Guill
29 Jan 2020, 21:29
Forum: Ask for Help (v1)
Topic: Problem with command send using a string Topic is solved
Replies: 2
Views: 452

Problem with command send using a string Topic is solved

I need to automate this: Send this text "MouseGetPos X, Y Mousemove, %X%, %Y%" And after that, press "Up 3 times" I've tried this, but it doesn't work: Send, {Text} ( MouseGetPos X, Y Mousemove, %X%, %Y% ) Send {Up 3} Warning windows: "This variable has not been assigned a value --- > Send, {Text} M...
by Guill
09 Oct 2019, 21:58
Forum: Ask for Help (v1)
Topic: Edit an specific script with Notepad Topic is solved
Replies: 2
Views: 786

Re: Run any script with Notepad Topic is solved

gregster wrote:
09 Oct 2019, 21:43
Try to use the file path of the AHK script as a parameter for notepad.exe:

Code: Select all

^3::Run notepad.exe C:\My Documents\Script 322.ahk
Then Notepad will open it for editing.
Great!

Thank you very much
by Guill
09 Oct 2019, 21:31
Forum: Ask for Help (v1)
Topic: Edit an specific script with Notepad Topic is solved
Replies: 2
Views: 786

Edit an specific script with Notepad Topic is solved

First, greetings everyone. I am a newbie in AHK, and I have the following need: I have the ScitE4AutoHotkey program installed, because I usually open Ahk scripts with it. Anyway, occasionally I would like to open a particular script with Notepad. How could I reflect that? Example: ^ 3 :: Run edit C:...

Go to advanced search