Search found 136 matches

by Maestr0
30 May 2023, 00:42
Forum: Scripts and Functions (v1)
Topic: [ Class + ( Editor Tool ) ] Custom Gui Image Button
Replies: 44
Views: 12301

Re: [ Class + ( Editor Tool ) ] Custom Gui Image Button

gregster wrote:
29 May 2023, 16:05
Thanks for your feedback. I'll refrain trying to help without researching the exact question and testing the result.
by Maestr0
22 Aug 2022, 10:51
Forum: Scripts and Functions (v1)
Topic: Get monitor that mouse is in
Replies: 36
Views: 13984

Re: Get monitor that mouse is in

Thanks, @Maestr0, for sharing your code. It was exactly what I needed and I've been trying to do something similar for a long time. no worries, glad it's of use! I've found an issue with the code a while ago, and that's to do with scaling. If you have a different scaling of your monitor than 100%, ...
by Maestr0
25 Feb 2022, 16:17
Forum: Scripts and Functions (v1)
Topic: A subroutine to switch to the next background (Windows 10)
Replies: 11
Views: 5127

Re: A subroutine to switch to the next background (Windows 10)

iseahound wrote:
25 Feb 2022, 15:58
👍 Thanks
np, we're all in this together. Just report here or in Discord if you run into issues :)
by Maestr0
24 Feb 2022, 22:11
Forum: Scripts and Functions (v1)
Topic: A subroutine to switch to the next background (Windows 10)
Replies: 11
Views: 5127

Re: A subroutine to switch to the next background (Windows 10)

This code looks like a fragment to me. Would we just embed this code in code to make it fire off when we (for instance) use Win+n ? My code is complete. Here's an example of how you might bind the dllcall method to win-n (untested) #n::next_bg() next_bg() { try if ((pDesktopWallpaper := ComObjCreat...
by Maestr0
05 Jan 2022, 08:52
Forum: Ask for Help (v1)
Topic: Determine if user uses DPI scale >100% Topic is solved
Replies: 9
Views: 4757

Re: Determine if user uses DPI scale >100% Topic is solved

Thx a lot @iPhilip ! It works ! Great! :) I've run into an issue that I think originates with DPI-scaling. I have two monitors but they have different scaling (150% for my main: 1, 100% for my secondary: 2). Your code outputs the following: --------------------------- 1. 65537 144 144 144 2. 65539 ...
by Maestr0
05 Jan 2022, 08:45
Forum: Ask for Help (v1)
Topic: WinMove misbehaving with multiple, different-DPI monitors
Replies: 2
Views: 1060

Re: WinMove misbehaving with multiple, different-DPI monitors

Update: I worked around this by overriding DPI scaling in the Autohotkey exe compatibility settings. I'm running into the same issues (my main monitor is 4k and I have the scaling set to 150%, whereas my other monitor is set to 100%). I'd prefer fixing it without having to mess with the compatibili...
by Maestr0
04 Jan 2022, 16:36
Forum: Ask for Help (v1)
Topic: Gui timer flickering
Replies: 17
Views: 5170

Re: Gui timer flickering

@joedf I think this should be in the docs like under the GuiControl page as a note for flicker prevention :) You should check this out, it goes above and beyond the flicker reduction that those can do for you. https://www.autohotkey.com/boards/viewtopic.php?f=6&t=77668 The only issue is that it can...
by Maestr0
04 Jan 2022, 16:35
Forum: Scripts and Functions (v1)
Topic: Reduce Flicker dramatically (Double Buffer)
Replies: 30
Views: 14420

Re: Reduce Flicker dramatically (Double Buffer)

Awesome! This one line makes all the difference, thanks for sharing!
by Maestr0
06 Oct 2021, 13:57
Forum: Ask for Help (v1)
Topic: How to create a password generator?
Replies: 14
Views: 1666

Re: How to create a password generator?

Here is how you can specify each type, and get random arrangements. F3::Send % newPass(2, 5, 3) "`n" newPass(lower, upper := 0, digits := 0) { Static set := [[97, 122], [65, 90], [48, 57]] str := [] For type, qty in [lower, upper, digits] ; Loop through the three types of characters Loop, %qty% { ;...
by Maestr0
23 Aug 2020, 03:01
Forum: Ask for Help (v1)
Topic: IniWrite and IniRead not working for 2nd gui.
Replies: 2
Views: 1442

Re: IniWrite and IniRead not working for 2nd gui.

here is some code that gives you an idea of how you could troubleshoot your issue and how information from different GUIs work. I think your issue might be in the variable your second GUI outputs to, but I can't tell because you didn't supply that code. gosub gui1 gosub gui2 msgbox should be empty `...
by Maestr0
16 Aug 2020, 04:16
Forum: Ask for Help (v1)
Topic: how to create this text "REC" in a GUI
Replies: 16
Views: 4154

Re: how to create this text in a GUI

Thanks @Maestr0 ! You might want to use it in the bottom right corner of your screen using: gui, show, % ((toggle := !toggle) ? "NoActivate" : "hide") . "x1500 y875" ;1920x1080 screen Also play with with DPIscale or -DPIscale and the space between "[" and "REC" depending on the font and the font si...
by Maestr0
24 Jul 2020, 16:07
Forum: Ask for Help (v1)
Topic: how to create this text "REC" in a GUI
Replies: 16
Views: 4154

Re: how to create this text in a GUI

With transparency and on-off flashing. Change font coloring to white (or any other color): gui, +LastFound -Caption -Border +E0x08000000 +alwaysontop DPIScale ; +E0x08000000 to be set in conjunction with NoActivate gui, Color, 808081 WinSet, TransColor, 808081 gui, Font,s75 Bold, arial gui, Add, Te...
by Maestr0
24 Jul 2020, 06:50
Forum: Ask for Help (v1)
Topic: WinGet WindowList.ahk - Not showing fullscreen windows
Replies: 5
Views: 2242

Re: WinGet WindowList.ahk - Not showing fullscreen windows

I get this. Fullscreen apps are visible in this list since it's not filtering out any fullscreen windows, but again that also means it's not filtering out other things, like invisible windows that are supposed to be hidden and do not appear in the taskbar. Basically I just need it to show a list of...
by Maestr0
23 Jul 2020, 13:06
Forum: Ask for Help (v1)
Topic: WinGet WindowList.ahk - Not showing fullscreen windows
Replies: 5
Views: 2242

Re: WinGet WindowList.ahk - Not showing fullscreen windows

What do you see when you do this: WinGet, id, List,,, Program Manager Loop, %id% { this_id := id%A_Index% WinGetClass, this_class, ahk_id %this_id% WinGetTitle, this_title, ahk_id %this_id% list .= A_Index " of " id " ahk_id " this_id " ahk_class " this_class " " this_title "`n" } msgbox % list
by Maestr0
20 Jul 2020, 12:06
Forum: Ask for Help (v1)
Topic: AHK Script stopped working - SOLVED!! THANK YOU!
Replies: 5
Views: 21079

Re: AHK Script stopped working

SOLVED - THANK YOU! Both solutions worked! In the first moving the program and the file to desktop, I can pass the latter over the first and works fine. The second solution was the lack of the file association, which for some reason AHK did not make automatically (as always it has before) and I did...
by Maestr0
19 Jul 2020, 14:06
Forum: Scripts and Functions (v1)
Topic: Get monitor that mouse is in
Replies: 36
Views: 13984

Re: Get monitor that mouse is in

I meant the situations you described yourself when window is very big or is mostly outside of display(s). Even if you haven't heard of that or didn't happen to you it doesn't mean it hasn't happened or wouldn't happen in the future. The idea is to cover all the bases in advance. But it's just an id...
by Maestr0
19 Jul 2020, 13:47
Forum: Scripts and Functions (v1)
Topic: Get monitor that mouse is in
Replies: 36
Views: 13984

Re: Get monitor that mouse is in

Drugwash wrote:
19 Jul 2020, 13:38
Have you tested the APIs I mentioned in such corner cases and compared results to AHK's built-in functions' results?
No, I've never heard of anyone having the issue you mentioned, nor have I had it myself.
by Maestr0
19 Jul 2020, 13:24
Forum: Scripts and Functions (v1)
Topic: Get monitor that mouse is in
Replies: 36
Views: 13984

Re: Get monitor that mouse is in

I'm saying that, logically, where the window is should be where the most of it lies. So if a window is 98% in monitor 2 but its top-left point is in monitor 1, the result should be 2, not 1. Maybe in some special case one would want the other result, so if a custom function would be built for this ...
by Maestr0
19 Jul 2020, 12:24
Forum: Ask for Help (v1)
Topic: Script often overflow and not finish. Topic is solved
Replies: 3
Views: 2062

Re: Script often overflow and not finish. Topic is solved

Hello, thanks for answering. When I run sometimes produces Overflow (CPU saturated) & other times not stop and continues even closed. The function is: when clicking with the Left Mouse Button also click with the Right Mouse Button (always zooming). It is this script exclusively, there are other way...

Go to advanced search