Search found 69 matches
- 06 Apr 2024, 22:23
- Forum: Scripts and Functions (v2)
- Topic: Handling single, double, triple, quadruple... infinite key presses_v2
- Replies: 1
- Views: 362
Re: Handling single, double, triple, quadruple... infinite key presses_v2
Thanks for posting this update rommmcek ! I'm finally getting around to updating my scripts to v2. I like how your version allows for hotkeys that include `Up`. However, your code is super succinct, and therefore, too complex for my feeble brain. 😀 Here's a version, more readable for me , and incorp...
- 04 Apr 2024, 15:24
- Forum: Scripts and Functions (v1)
- Topic: "outer" keyword - get a reference to the outer class (parent, super, root, inner)
- Replies: 27
- Views: 5394
Re: "outer" keyword - get a reference to the outer class (parent, super, root, inner)
Read up on the new structure of Classes. I get it now. Thanks!
- 04 Apr 2024, 00:35
- Forum: Scripts and Functions (v1)
- Topic: "outer" keyword - get a reference to the outer class (parent, super, root, inner)
- Replies: 27
- Views: 5394
Re: "outer" keyword - get a reference to the outer class (parent, super, root, inner)
Hi iseahound . I've been trying to get this to work with V2 without success. I get "Error: This variable has not been assigned a value." on the line If IsObject(outer) PS - I added code to fix a "can't compare numbers to strings" issue I was having with the version check. #Requires AutoHotkey v2.0 o...
- 03 Apr 2024, 23:36
- Forum: Scripts and Functions (v2)
- Topic: AutoCorrect for v2
- Replies: 101
- Views: 9167
Re: AutoCorrect for v2
Just wanted to pop in and say thanks for the awesome work!
- 03 Apr 2024, 22:50
- Forum: Ask for Help (v1)
- Topic: Activating the Last Active Window Topic is solved
- Replies: 17
- Views: 3622
Re: Activating the Last Active Window Topic is solved
Here's an AHK v2 version. #Requires AutoHotkey v2.0 ; Define your desired hotkey combination ^!t:: activateLastActiveWindow() activateLastActiveWindow() { oid := WinGetlist(, , "Find",) Loop oid.Length { this_ID := oid[A_Index] if WinActive("ahk_id " this_ID) || !isWindow(this_ID) continue WinActiva...
- 03 Apr 2024, 17:45
- Forum: Scripts and Functions (v2)
- Topic: Easy Window Dragging KDE style, corrected for multi monitor setup
- Replies: 2
- Views: 353
Re: Easy Window Dragging KDE style, corrected for multi monitor setup
This is awesome. Thanks!
I tried to figure out how to get Snap Windows in Windows 11 to work while dragging but had no lock.
https://support.microsoft.com/en-us/windows/snap-your-windows-885a9b1e-a983-a3b1-16cd-c531795e6241
I tried to figure out how to get Snap Windows in Windows 11 to work while dragging but had no lock.
https://support.microsoft.com/en-us/windows/snap-your-windows-885a9b1e-a983-a3b1-16cd-c531795e6241
- 02 Apr 2024, 20:38
- Forum: Scripts and Functions (v2)
- Topic: HotGestures - Customize and recognize mouse gestures
- Replies: 11
- Views: 1735
Re: HotGestures - Customize and recognize mouse gestures
Thanks @gregster. I should have just looked at the code.
Line 49 defines a valid hotkey as anything that can be called with GetKeyName, which is any single key, no combinations.
Code: Select all
if GetKeyName(keyName) == ""
throw Error("invalid key name", , keyName)
- 28 Mar 2024, 23:06
- Forum: Scripts and Functions (v2)
- Topic: HotGestures - Customize and recognize mouse gestures
- Replies: 11
- Views: 1735
Re: HotGestures - Customize and recognize mouse gestures
Is there an easy way to set a combo HotKey?
I tried `hgs.Hotkey("Control+RButton")` without success.
I tried `hgs.Hotkey("Control+RButton")` without success.
- 21 Mar 2024, 12:50
- Forum: Scripts and Functions (v2)
- Topic: HotGestures - Customize and recognize mouse gestures
- Replies: 11
- Views: 1735
Re: HotGestures - Customize and recognize mouse gestures
Thanks @Pingouin!
Some feedback.
I'm using it with triple monitors.
The gesture trail only shows when drawing on the primary monitor.
The discovered gesture message always shows on the primary monitor, not the monitor with the mouse.
Thanks again. This is a really cool piece of code.
Some feedback.
I'm using it with triple monitors.
The gesture trail only shows when drawing on the primary monitor.
The discovered gesture message always shows on the primary monitor, not the monitor with the mouse.
Thanks again. This is a really cool piece of code.
- 06 Mar 2024, 01:19
- Forum: Ask for Help (v1)
- Topic: Activating the Last Active Window Topic is solved
- Replies: 17
- Views: 3622
Re: Activating the Last Active Window Topic is solved
Since my reply was approved, I'll continue :D This method remained unreliable until I added a " DllCall("SetForegroundWindow", UInt, this_ID) ". Here's the improved method with some explanation (that I needed). Now it works every time for my needs: AltTab(){ Global list := "" WinGet, id, list,,,Fin...
- 26 Aug 2019, 18:14
- Forum: Scripts and Functions (v1)
- Topic: Clip() - Send and Retrieve Text using the Clipboard
- Replies: 26
- Views: 22779
Re: Clip() - Send and Retrieve Text using the Clipboard
Hi. I just wanted to say thank you!
I've been using Clip for 10 years and it's always been reliable. Love it!
I've been using Clip for 10 years and it's always been reliable. Love it!
- 19 Aug 2019, 19:51
- Forum: Ask for Help (v1)
- Topic: [solved] How to detect Calculator on Windows 10
- Replies: 25
- Views: 16475
Re: [solved] How to detect Calculator on Windows 10
It's definitely not easy to work with these type of apps.
For OneNote I've simply using this command.
It will open OneNote if it's closed and bring it to the foreground if it's minimized or in the background. Working with OneNote beyond that is pretty hard though.
For OneNote I've simply using this command.
Code: Select all
Run, % "onenote:"
- 03 Jun 2019, 20:56
- Forum: Ask for Help (v1)
- Topic: Sending email with AHK Topic is solved
- Replies: 32
- Views: 18705
Re: Sending email with AHK Topic is solved
If you want to send email without creating a file look into the .NET Framework Interop approach. Here's a link directly to a gmail solution here on the forums. For access to your gmail account you have to go to https://myaccount.google.com/security > App Passwords > Signing Into Google. From there, ...
- 30 Apr 2018, 11:33
- Forum: Ask for Help (v1)
- Topic: Is it possible to make nested properties? Topic is solved
- Replies: 4
- Views: 1306
Re: Is it possible to make nested properties? Topic is solved
Thanks again lexikos . I actually spent a few hours reading through the Pseudo-Properties Object docs and messing around with that exact approach last night. The docs for AHK are amazing. My goal is to start making my code reusable by others in intuitive ways. This forces me to more deeply understan...
- 30 Apr 2018, 09:50
- Forum: Ask for Help (v1)
- Topic: #Include file "test.ahk" cannot be opened. Topic is solved
- Replies: 6
- Views: 3227
Re: #Include file "test.ahk" cannot be opened. Topic is solved
#include <headername> is standard C++ syntax. Using #include libname for this purpose would be less standard, not more. ;) Ha! Makes sense. I've been writing React/ES6 Javascript and Python for the last year. I've never even looked at C++ code beyond perusing your AHK GitHub repo. :) #Include FileO...
- 29 Apr 2018, 19:49
- Forum: Ask for Help (v1)
- Topic: #Include file "test.ahk" cannot be opened. Topic is solved
- Replies: 6
- Views: 3227
Re: #Include file "test.ahk" cannot be opened. Topic is solved
Wow. I must have tried everything except literally putting the <> around the name.
Why can't AHK be more standard here?
It would be more obvious if you could just #Include filename.
Thanks Masonjar13
Why can't AHK be more standard here?
It would be more obvious if you could just #Include filename.
Thanks Masonjar13
- 29 Apr 2018, 18:19
- Forum: Ask for Help (v1)
- Topic: Is it possible to make nested properties? Topic is solved
- Replies: 4
- Views: 1306
Re: Is it possible to make nested properties? Topic is solved
Yeah... that makes sense now that I think about it. Thanks!
This is probably the correct way to do it huh?
This is probably the correct way to do it huh?
Code: Select all
Class Texty {
Class SelectedText {
Value[] {
Get {
Return Clip()
}
}
Length[] {
Get {
Return StrLen(this.Value)
}
}
}
}
- 29 Apr 2018, 18:04
- Forum: Ask for Help (v1)
- Topic: #Include file "test.ahk" cannot be opened. Topic is solved
- Replies: 6
- Views: 3227
#Include file "test.ahk" cannot be opened. Topic is solved
I have the following test file in Standard Lib . MsgBox, "hi from test.ahk" test_msg() { MsgBox, % "hi from test_msg()" } From another script, if I... - call test_msg I get the message box. I assume this means the Standard Lib functionality is working. - #Include c:/path/to/lib/test.ahk I get the me...
- 29 Apr 2018, 16:57
- Forum: Ask for Help (v1)
- Topic: Is it possible to make nested properties? Topic is solved
- Replies: 4
- Views: 1306
Is it possible to make nested properties? Topic is solved
I'd like to be able to call Texty.SelectedText and Texty.SelectedText.Length.
How
How
Code: Select all
Class Texty {
SelectedText[] {
Get {
Return Clip()
}
; not a valid getter/setter.
; Length[] {
; Get {
; Return StrLen(this.SelectedText)
; }
; }
}
}
- 28 Apr 2018, 01:03
- Forum: Scripts and Functions (v1)
- Topic: Spotify PostMessage Library
- Replies: 22
- Views: 10823
Re: Spotify PostMessage Library
Thanks for the reply. I ended up using the "V2" scripts provided by just me in this thread . He's done some amazing work there. :clap: With his tools I was able to get the path. But now I'm unable to get a handle on the object. None of the "FromPath" functions in any of the Acc scripts seem to work....