Search found 25 matches

by panhartstuff
19 Feb 2023, 00:37
Forum: Ask for Help (v1)
Topic: LCtrl modifiers not working for AltTab
Replies: 1
Views: 292

LCtrl modifiers not working for AltTab

The following keys works for me:

Code: Select all

RAlt & j::AltTab
RAlt & k::ShiftAltTab
But it doesn't work if I use LCtrl:

Code: Select all

LCtrl & j::AltTab
LCtrl & k::ShiftAltTab
Anything I'm doing wrong?
by panhartstuff
10 Mar 2021, 11:36
Forum: Ask for Help (v1)
Topic: Variadic arguments doesn't work inside a class
Replies: 1
Views: 208

Variadic arguments doesn't work inside a class

fn(args*) { msgbox % Format("foo: {} bar: {}", args.foo, args.bar) } class Cls { fn(args*) { msgbox % Format("foo: {} bar: {}", args.foo, args.bar) } } F1:: fn({foo: "lorem", bar: "ipsum"}*) ; works Cls.fn({foo: "lorem", bar: "ipsum"}*) ; doesn't work return For some reason variadic arguments just ...
by panhartstuff
09 Mar 2021, 12:59
Forum: Ask for Help (v1)
Topic: OOP - Calling methods from inside a class Topic is solved
Replies: 6
Views: 426

Re: OOP - Calling methods from inside a class Topic is solved

Oh wow can't believe I didn't notice that, thanks. Now I feel stupid :x .
by panhartstuff
09 Mar 2021, 12:50
Forum: Ask for Help (v1)
Topic: OOP - Calling methods from inside a class Topic is solved
Replies: 6
Views: 426

OOP - Calling methods from inside a class Topic is solved

class Test { foo() { msgbox "foobar" } bar() { this.foo() } } F1:: test = new Test() test.bar() ; nothing happens return How do you access another method from inside a class? This should be simple, but I just can't get it to work. Are there any detailed and user-friendly documentation/tutorials of ...
by panhartstuff
11 Apr 2020, 18:50
Forum: Ask for Help (v1)
Topic: Good library for memory reading/writing?
Replies: 0
Views: 435

Good library for memory reading/writing?

Any good libraries for memory reading/writing in AHK?
I found https://github.com/Kalamity/classMemory but it hasn't been updated in 2 years so I'm a bit nervous writing on something that is not very future-proofed.
by panhartstuff
13 Dec 2019, 11:38
Forum: Scripts and Functions (v1)
Topic: convert coordinates between Client/Screen/Window modes
Replies: 10
Views: 8722

Re: convert coordinates between Client/Screen/Window modes

What are the ByRef vPosX2, ByRef vPosY2 variables?
by panhartstuff
01 Jan 2019, 21:32
Forum: Ask for Help (v1)
Topic: Disabling the Win key without disabling other hotkeys Topic is solved
Replies: 4
Views: 1320

Re: Disabling the Win key without disabling other hotkeys Topic is solved

Damn nice, didn't know about that at all! Thanks for the help, it works perfectly!
by panhartstuff
01 Jan 2019, 17:23
Forum: Ask for Help (v1)
Topic: Disabling the Win key without disabling other hotkeys Topic is solved
Replies: 4
Views: 1320

Re: Disabling the Win key without disabling other hotkeys Topic is solved

Thanks, but it doesn't really work very consistently. I usually tap my shortcuts really fast, so 0.5 is usually too slow. After some testing, it seems that I tap my shortcuts at the average of 0.06 seconds. But if I set the timeout to that length, it'd be just as fast as how I'd accidentally tap the...
by panhartstuff
01 Jan 2019, 14:21
Forum: Ask for Help (v1)
Topic: Disabling the Win key without disabling other hotkeys Topic is solved
Replies: 4
Views: 1320

Disabling the Win key without disabling other hotkeys Topic is solved

I want to disable the Win key, but I also have several Win+* hotkeys. Is there a way to disable it without having all the other hotkeys to stop working? I tried the below, but it disables not only the Win key, but also my other hotkeys. LWin:: Return RWin:: Return This code also have the same effect...
by panhartstuff
01 Jan 2019, 14:19
Forum: Tutorials (v1)
Topic: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)
Replies: 43
Views: 68484

Re: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)

@jeeswg
Thanks for the help man! Yeah working with AHK + OBS is just a nightmare, OBS is just so bizarrely resistant to AHK fiddling.
by panhartstuff
21 Dec 2018, 10:28
Forum: Tutorials (v1)
Topic: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)
Replies: 43
Views: 68484

Re: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)

Hey jeeswg, I'm trying to use your code from OBS start/stop switcher, but it doesn't seem to be working WinGet, hWnd, ID, OBS ahk_class Qt5QWindowIcon ControlGet, hCtl, Hwnd,, Qt5QWindowIcon10, % "ahk_id " hWnd vAccPath := "client.push_button2" oAcc := Acc_Get("Object", vAccPath, 0, "ahk_id " hCtl) ...
by panhartstuff
20 Dec 2018, 01:07
Forum: Ask for Help (v1)
Topic: WinWaitActive not working properly on Alt+Tab Topic is solved
Replies: 9
Views: 2196

Re: WinWaitActive not working properly on Alt+Tab Topic is solved

Thanks that cleared it up. I didn't know you could use WinExist to compare between a group and a handle like that.
by panhartstuff
19 Dec 2018, 23:46
Forum: Ask for Help (v1)
Topic: WinWaitActive not working properly on Alt+Tab Topic is solved
Replies: 9
Views: 2196

Re: WinWaitActive not working properly on Alt+Tab Topic is solved

Ok my head isn't really working right now, the script does work, but I still don't understand the logic of how checking the existence of the ahk_group will help check whether or not they're active. To clarify, that line basically checks whether any windows matches with any one of the ahk_class (in t...
by panhartstuff
19 Dec 2018, 23:11
Forum: Ask for Help (v1)
Topic: WinWaitActive not working properly on Alt+Tab Topic is solved
Replies: 9
Views: 2196

Re: WinWaitActive not working properly on Alt+Tab Topic is solved

Thank you so much, your code works perfectly! Your insights really helped clear things up. I guess there's some kind of empty "gap" between switching windows. I also noticed in Window Spy, there's sometimes a small period between switching windows where the Window info box becomes completely empty. ...
by panhartstuff
19 Dec 2018, 20:55
Forum: Ask for Help (v1)
Topic: WinWaitActive not working properly on Alt+Tab Topic is solved
Replies: 9
Views: 2196

Re: WinWaitActive not working properly on Alt+Tab Topic is solved

Sorry for bumping, would really appreciate some help on this
by panhartstuff
19 Dec 2018, 13:56
Forum: Ask for Help (v1)
Topic: WinWaitActive not working properly on Alt+Tab Topic is solved
Replies: 9
Views: 2196

Re: WinWaitActive not working properly on Alt+Tab Topic is solved

I looked through other forum posts, and it doesn't seem to be the case. From what I gather WinWaitActive ahk_group should wait until any one of the programs in the group is active. While WinWaitNotActive ahk_group should wait until none of the programs in the group are active. But the more I test th...
by panhartstuff
19 Dec 2018, 12:42
Forum: Ask for Help (v1)
Topic: WinWaitActive not working properly on Alt+Tab Topic is solved
Replies: 9
Views: 2196

WinWaitActive not working properly on Alt+Tab Topic is solved

Here's my code: GroupAdd, test, ahk_class Notepad GroupAdd, test, Task Switching ahk_class MultitaskingViewFrame WinWaitActive ahk_class Notepad WinWaitNotActive ahk_group test MsgBox, Test To replicate my issue, simply run the code, open/activate Notepad, then alt+tab away to any other program othe...
by panhartstuff
08 Nov 2018, 17:40
Forum: Ask for Help (v1)
Topic: Drop files into an application Topic is solved
Replies: 0
Views: 792

Drop files into an application Topic is solved

I'm trying to use a code by RHCP from this old forums. It's meant to simulate dropping files into an application https://autohotkey.com/board/topic/41467-make-ahk-drop-files-into-other-applications/page-2#entry638376 DropFiles( FileList, wTitle="", Ctrl="", X=0, Y=0, NCA=0 ) { characterSize := A_IsU...
by panhartstuff
02 Aug 2018, 07:46
Forum: Ask for Help (v1)
Topic: Adding increments to filename Topic is solved
Replies: 2
Views: 936

Re: Adding increments to filename Topic is solved

#SingleInstance, Force #NoEnv SetBatchLines, -1 OnExit, Exit ; Uncomment if Gdip.ahk is not in your standard library ; #Include, Gdip.ahk if (!pToken := Gdip_Startup()) { MsgBox, 48, Gdiplus error!, Gdiplus failed to start. Please ensure you have Gdiplus on your system. ExitApp } return loop { File...
by panhartstuff
02 Aug 2018, 06:54
Forum: Ask for Help (v1)
Topic: Adding increments to filename Topic is solved
Replies: 2
Views: 936

Adding increments to filename Topic is solved

https://autohotkey.com/boards/viewtopic.php?t=2237 I'm trying the code from the above thread #SingleInstance, Force #NoEnv SetBatchLines, -1 OnExit, Exit FileOut := A_Desktop "\MyNewFile.png" ; Uncomment if Gdip.ahk is not in your standard library ; #Include, Gdip.ahk if (!pToken := Gdip_Startup()) ...

Go to advanced search