New answers tagged

0 votes

How to return ListBox selected option when I click Submit button?

I believe achieving the desired outcome in the manner you propose is not feasible. When using the return statement within the function responsible for creating the Graphical User Interface (GUI), the ...
Dieisson Silva dos Santos's user avatar
1 vote

AhkV1: Is possible to create a class with constructor overloads?

You could implement one constructor that accepts both signatures and does the correct things depending on what is passed. You could also use variadic parameters (e.g., paramName*) to accept any ...
sytech's user avatar
  • 35.7k
2 votes
Accepted

AhkV1: Is possible to create a class with constructor overloads?

To my knowledge, there is no direct way to create a class with constructor overloads. A good indirect way that may work is the following: ; Define a struct to hold the properties of your "class&...
Steven Zinn's user avatar
1 vote
Accepted

struggling to follow the documentation, accessing a objects properties inside its method

It seems you're expecting this to be set to to the outer object without actually specifying it in in the parameter list as shown in the documentation you linked. The fix is easy, just add in the first ...
0x464e's user avatar
  • 6,417
0 votes

How to send click to minimized window with ahk library in python

In AutoHotkey, ControlClick is the method for doing this. In the Python ahk library, you can use ahk.control_click or use the click method of a Window object: from ahk import AHK ahk = AHK() win = ...
sytech's user avatar
  • 35.7k
0 votes

Long text replacement with % sign in it and finishing with commands

I found how to make my text replacement work. It turns out that both the symbols % and # Autohotkey was recognising as commands. To make Autohotkey ignore these symbols, the percentage sign needs to ...
Nenunathel's user avatar
0 votes
Accepted

Dynamic default key action

You want the $(docs) prefix. #Requires AutoHotkey 2 $1:: { static num := 1 SendInput(num++) if (num > 3) num := 1 }
0x464e's user avatar
  • 6,417
0 votes
Accepted

Need to remap [ Win + . to Alt + . ] using AutoHotkey

This works here: AHK v1 #Requires AutoHotkey v1.1 !.:: Send #. ; one-line hotkey AHK v2 #Requires AutoHotkey v2.0 !.:: Send "#." Try it first in a script with no other code and close ...
Relax's user avatar
  • 10.4k
0 votes

How to capture a small screenshot (cursor included) around mouse?, with AutoHotkey

CaptureScreen(picx ", " picy ", " picx2 ", " picy2, 1, "screen.png")
user23704875's user avatar
0 votes

AutoHotkey causing control key to get stuck

Use KeyWait if you use AutoHotKey v2. In AutoHotkey v2, there is a useful function KeyWait. It solves these stuck problems exclusively. Before I saw it I've tried Send "{Ctrl up}", waiting ...
ii Y's user avatar
  • 1

Top 50 recent answers are included