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.
Search found 61 matches
- 21 Mar 2024, 12:50
- Forum: Scripts and Functions (v2)
- Topic: HotGestures - Customize and recognize mouse gestures
- Replies: 8
- Views: 1508
- 06 Mar 2024, 01:19
- Forum: Ask for Help (v1)
- Topic: Activating the Last Active Window Topic is solved
- Replies: 16
- Views: 3486
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: 22707
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: 16408
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: 18679
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: 1302
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: 3217
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: 3217
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: 1302
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: 3217
#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: 1302
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: 10818
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....
- 27 Apr 2018, 17:14
- Forum: Scripts and Functions (v1)
- Topic: Spotify PostMessage Library
- Replies: 22
- Views: 10818
Re: Spotify PostMessage Library
Hi jeeswig. With Spotify's recent update they've somehow managed to hide the top level window from Acc_Viewer.
Is there a way to get the view Show Acc Structure button to show all parents in addition to children?
Is there a way to get the view Show Acc Structure button to show all parents in addition to children?
- 26 Apr 2018, 11:26
- Forum: Ask for Help (v1)
- Topic: What gotcha am I missing with this approach to importing via the "Libraries of Functions" auto-include?
- Replies: 2
- Views: 916
Re: What gotcha am I missing with this approach to importing via the "Libraries of Functions" auto-include?
Thanks for the extra detail on library includes Masonjar13. It should be detailed that well in the docs. :) However, it is a pretty big problem for continuity. Lets say someone looks at your code for the first time, or you look back at some old code using this method. When you set Test, there isn't ...
- 25 Apr 2018, 21:52
- Forum: Ask for Help (v1)
- Topic: What gotcha am I missing with this approach to importing via the "Libraries of Functions" auto-include?
- Replies: 2
- Views: 916
What gotcha am I missing with this approach to importing via the "Libraries of Functions" auto-include?
I've always organized my code into separate files and used #include statements (require specific paths) or MyFIle_myFunction syntax (clunky) for auto-included lib files. Today I decided I wanted to make it simpler. After reading the Library of Functions documentation more closely I found the followi...
- 25 Apr 2018, 20:25
- Forum: General Discussion
- Topic: A Github organisation for ahkscript
- Replies: 245
- Views: 185505
Re: A Github organisation for ahkscript
Hi jeodf. Please invite me.
Thanks!
Thanks!
- 27 Feb 2018, 13:24
- Forum: Ask for Help (v1)
- Topic: [solved] How to detect Calculator on Windows 10
- Replies: 25
- Views: 16408
Re: [solved] How to detect Calculator on Windows 10
Sorry to bump an old post but I was messing around with this today and came up with a simpler solution. Maybe multiple criteria in WinExist is new since this post was created? This works without the WinGetActiveProcessName function. DetectCalculator() { calc_id := WinExist("Calculator ahk_class Appl...
- 26 Feb 2018, 16:07
- Forum: Ask for Help (v1)
- Topic: Standard Lib files don't run Auto Execute section when loaded?
- Replies: 6
- Views: 1441
Re: Standard Lib files don't run Auto Execute section when loaded?
Sweet! Glad to know this is documented in more places jeeswg. For further completeness, I didn't really like the look of Browser_exists in my code. In the end I went with a third option... instantiating a global Browser class when Browser.ahk is executed. global Browser = New BrowserClass Class Brow...
- 26 Feb 2018, 13:42
- Forum: Ask for Help (v1)
- Topic: Standard Lib files don't run Auto Execute section when loaded?
- Replies: 6
- Views: 1441
Re: Standard Lib files don't run Auto Execute section when loaded?
I couldn't let this go and googled around some more. Eventually found a way that works pretty well. It's outlined by Lexikos here: Static init functions (was: Goto Eof) For completeness here's the code. I'm assuming this works because of static variable hoisting. init_Browser() { static _ := init_Br...
- 26 Feb 2018, 13:17
- Forum: Ask for Help (v1)
- Topic: Standard Lib files don't run Auto Execute section when loaded?
- Replies: 6
- Views: 1441
Re: Standard Lib files don't run Auto Execute section when loaded?
Hi Xtra! Thanks! I ended up with almost the same concept. Was hoping there was something a little cleaner... but it works! :-D Browser_winExist() { LoadBrowserAppGroup() return WinExist("ahk_group BrowserApps") } Browser_isActive() { LoadBrowserAppGroup() return WinActive("ahk_group BrowserApps") } ...