Search found 24 matches

by hpta
06 Apr 2023, 07:17
Forum: Scripts and Functions (v2)
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 12
Views: 3734

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

According to README.md I installed Intereception driver and extracted the "AHK v2" folder from .zip file on https://github.com/evilC/AutoHotInterception/releases/tag/v0.9.0

When I try to run Monitor.ahk it shows this:
image.png
image.png (20.78 KiB) Viewed 3528 times
Please could take a look at this?
by hpta
09 Sep 2022, 03:30
Forum: AutoHotkey Development
Topic: Will v2 ever hit the stable state?
Replies: 61
Views: 15553

Re: Will v2 ever hit the stable state?

But the main problem that I concerned about is the libraries, v2 can't include library written with v1 syntax while I don't have sufficient skill or time to convert those myself I think in some cases you can deal with it like this in your v2 script: shell := ComObjCreate("WScript.Shell") exec := sh...
by hpta
22 Feb 2022, 16:08
Forum: Ask for Help (v2)
Topic: default editor for ahk v2
Replies: 10
Views: 1933

Re: default editor for ahk v2

boiler , vmech Thank you for your patience and help. There had to be something wrong in the registry.... I searched through it, deleted everything constaining "ahk" or "autohotkey" (except for a couple of random cryptic strings probably not related to autohotkey), then installed v1, edited HKEY_CLA...
by hpta
22 Feb 2022, 11:53
Forum: Ask for Help (v2)
Topic: default editor for ahk v2
Replies: 10
Views: 1933

Re: default editor for ahk v2

I finally tried to do it by installing v1 to program files, then replacing binaries there with ahk v2 beta files. This is what I have in the Program Files folder image.png (v2 beta files are highlighted in yellow) But the "Edit Script" settings simply doesn't work with v2 beta. If I run a script wit...
by hpta
13 Feb 2022, 05:23
Forum: Ask for Help (v2)
Topic: default editor for ahk v2
Replies: 10
Views: 1933

Re: default editor for ahk v2

boiler I tried to set it up like you, but it still doesn't make a difference image.png Another thing to consider is that I don't have Autohotkey installed. I use just v2 beta which is located somewhere on my PC (not in Program Files) I created the structure of AutoHotkeyScript keys in regedit manua...
by hpta
12 Feb 2022, 21:23
Forum: Ask for Help (v2)
Topic: default editor for ahk v2
Replies: 10
Views: 1933

default editor for ahk v2

Please, how can I set the default editor for ahk scripts? I tried this: image.png (with restart) After right click on a running script icon->Edit script - the script is still opened in Notepad. Btw the example code doesn't work for ahk v2 - different syntax... https://lexikos.github.io/v2/docs/comma...
by hpta
26 Aug 2021, 09:13
Forum: Announcements
Topic: AutoHotkey v2.0-beta.1
Replies: 47
Views: 26427

Re: AutoHotkey v2.0-beta.1

For AHK V2, I have developed a vscode extension... https://github.com/thqby/vscode-autohotkey2-lsp This looks like something i've been looking for :-) quick questions: Is it possible to set the help text to English? like in this case image.png And after opening this in VS code this message is shown...
by hpta
02 Aug 2021, 03:36
Forum: Scripts and Functions (v2)
Topic: Window Spy for AHKv2 - 2021/07/09 - beta.1
Replies: 25
Views: 28199

Re: Window Spy for AHKv2 - 2021/07/09 - beta.1

Please correct me if I'm wrong. Regarding mouse coords - the windows spy v2 is showing for example Window: 1812, 526 (default) Client: 1804, 518 (recommended) If I run (beta v2) a new script with just msgbox A_CoordModeMouse it returns Client So I think Windows Spy should show (default) next to the ...
by hpta
27 Jul 2021, 16:47
Forum: Ask for Help (v2)
Topic: GUI - do something when dragging a button
Replies: 10
Views: 1479

Re: GUI - do something when dragging a button

Thank you, TheArkive. Well, then I'll probably stick with global OnMessage and do it like this. I think it's a usable approach. G := Gui() button := G.Add("Button", "vbutton", "Drag me somewhere") OnMessage 0x0201, WM_LBUTTONDOWN, -1 ; WM_LBUTTONDOWN(wParam, lParam, msg, hwnd) { X := lParam & 0xFFFF...
by hpta
27 Jul 2021, 14:55
Forum: Ask for Help (v2)
Topic: GUI - do something when dragging a button
Replies: 10
Views: 1479

Re: GUI - do something when dragging a button

Try button.OnEvent("Click",LButtonDown) instead of OnCommand. This works but the LButtonDown is called later, after LButton goes up - which is not what I want. To explain my goal: Gui with buttons I can "drag and drop" (visual effect of dragging doesn't necessarily have to be there) over a window (...
by hpta
27 Jul 2021, 13:58
Forum: Ask for Help (v2)
Topic: GUI - do something when dragging a button
Replies: 10
Views: 1479

Re: GUI - do something when dragging a button

You're right. There's no error if LButtonDown is has a header like this LButtonDown(*) { But neither the message box in it fires up if the button is pressed. What I tried to do is this: G := Gui() button := G.Add("Button", "vbutton", "Drag me somewhere") button.OnCommand(0x0201, LButtonDown) ; docum...
by hpta
27 Jul 2021, 06:53
Forum: Ask for Help (v2)
Topic: GUI - do something when dragging a button
Replies: 10
Views: 1479

GUI - do something when dragging a button

I want this short code to get working. G := Gui() button := G.Add("Button", "vbutton", "Drag me somewhere") button.OnCommand(0x0201, LButtonDown) ; invalid callback function LButtonDown() { msgbox "LButtonDown" ; waiting here for LButtonUp ; then getMousePos and do something } G.Show() I know you ca...
by hpta
27 Jul 2021, 05:19
Forum: Ask for Help (v2)
Topic: spread an array in function parameters? Topic is solved
Replies: 4
Views: 1185

Re: spread an array in function parameters? Topic is solved

Thanks! I really got stuck on this.
by hpta
26 Jul 2021, 22:12
Forum: Ask for Help (v2)
Topic: spread an array in function parameters? Topic is solved
Replies: 4
Views: 1185

spread an array in function parameters? Topic is solved

Is it possible in the following example to do something like? (preferably in a simple way) this.f.Call(this.params.spread()) instead of this.f.Call(this.params[1], this.params[2], this.params[3]) class F_obj { f := "" params := "" __New(f, params*) { this.f := f this.params := params } Call() { ; th...
by hpta
09 Jun 2021, 06:46
Forum: Ask for Help (v2)
Topic: a136 does the "Run as Administrator" example work?
Replies: 2
Views: 822

Re: a136 does the "Run as Administrator" example work?

Ok, I figured it out. If I leave out

Code: Select all

        if A_IsCompiled
            Run '*RunAs "' A_ScriptFullPath '" /restart'
        else
in the try block, it works.
I guess something has changed with A_IsCompiled in a136.
by hpta
28 May 2021, 04:40
Forum: Ask for Help (v2)
Topic: a136 does the "Run as Administrator" example work?
Replies: 2
Views: 822

a136 does the "Run as Administrator" example work?

here https://lexikos.github.io/v2/docs/commands/Run.htm#RunAs full_command_line := DllCall("GetCommandLine", "str") if not (A_IsAdmin or RegExMatch(full_command_line, " /restart(?!\S)")) { try { if A_IsCompiled Run '*RunAs "' A_ScriptFullPath '" /restart' else Run '*RunAs "' A_AhkPath '" /restart "'...
by hpta
12 Apr 2021, 03:50
Forum: Suggestions on Documentation Improvements
Topic: a131 - try, catch syntax in examples Topic is solved
Replies: 3
Views: 2240

Re: a131 - try, catch syntax in examples Topic is solved

ok :-) , i just went to the first example after encountering errors in my script, then read the text in the announcement.
by hpta
12 Apr 2021, 03:22
Forum: Suggestions on Documentation Improvements
Topic: a131 - try, catch syntax in examples Topic is solved
Replies: 3
Views: 2240

a131 - try, catch syntax in examples Topic is solved

in a131 announcment https://www.autohotkey.com/boards/viewtopic.php?f=37&t=2120&view=unread&sid=a5cd46bd9fd739e094b99f46c6b04b11#p393011 there is explanation about the new syntax. The change has not been included in the documentation yet e.g. here https lexikos.github.io /v2/docs/commands/Try.htm#ex...
by hpta
26 Oct 2020, 07:09
Forum: Suggestions on Documentation Improvements
Topic: documentation ahkv2 - clipboard vs A_Clipboard Topic is solved
Replies: 1
Views: 1222

documentation ahkv2 - clipboard vs A_Clipboard Topic is solved

On https://lexikos.github.io/v2/docs/commands/ClipWait.htm
please change clipboard to A_Clipboard in the example code.
I was confused for some time because of this (I've just started with a122)
by hpta
27 Sep 2019, 06:39
Forum: Ask for Help (v2)
Topic: How does Gui.Submit work now?
Replies: 10
Views: 3051

Re: How does Gui.Submit work now?

Thanks again, of course Flipeador did mention that, I'll try to read more carefully next time.

Go to advanced search