Search found 126 matches

by Maestr0
23 Aug 2020, 03:01
Forum: Ask For Help
Topic: IniWrite and IniRead not working for 2nd gui.
Replies: 2
Views: 1218

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
Topic: how to create this text "REC" in a GUI
Replies: 16
Views: 2869

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
Topic: how to create this text "REC" in a GUI
Replies: 16
Views: 2869

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
Topic: WinGet WindowList.ahk - Not showing fullscreen windows
Replies: 5
Views: 1460

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
Topic: WinGet WindowList.ahk - Not showing fullscreen windows
Replies: 5
Views: 1460

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
Topic: AHK Script stopped working - SOLVED!! THANK YOU!
Replies: 4
Views: 1376

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
Topic: Get monitor that mouse is in
Replies: 33
Views: 7905

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
Topic: Get monitor that mouse is in
Replies: 33
Views: 7905

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
Topic: Get monitor that mouse is in
Replies: 33
Views: 7905

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
Topic: Script often overflow and not finish. Topic is solved
Replies: 3
Views: 1792

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...
by Maestr0
19 Jul 2020, 12:22
Forum: Scripts and Functions
Topic: Get monitor that mouse is in
Replies: 33
Views: 7905

Re: Get monitor that mouse is in

Maybe the safest way is to get active window's position+size in a RECT using GetWindowRect() and then call MonitorFromRect() . That's because contrary to what is suggested above the latter "retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangl...
by Maestr0
19 Jul 2020, 05:45
Forum: Ask For Help
Topic: Help with edit and v-label
Replies: 2
Views: 1205

Re: Help with edit and v-label

#InstallKeybdHook #UseHook gui, add, edit, x20 y30 w400 h20 vSlot1 gui, add, edit, x20 y70 w400 h20 vSlot2 gui, add, Button, x500 y30 w50 h20, OK Gui, Show, w600 h500, TEST return ButtonOK: gui, submit, NoHide return GuiClose: ExitApp $numpad1:: send %Slot1% $numpad2:: send %Slot2% Hi, I'm trying t...
by Maestr0
19 Jul 2020, 04:13
Forum: Scripts and Functions
Topic: Get monitor that mouse is in
Replies: 33
Views: 7905

Re: Get monitor that mouse is in

Hah, that's so funny, I was looking at this thread yesterday because I needed the function. Hi all, Can anyone help me convert the code from the first post in this thread so that it determines which monitor the active window is on? The code currently determines which monitor the mouse cursor is on. ...
by Maestr0
18 Jul 2020, 02:07
Forum: Ask For Help
Topic: How to disable the shift key? Topic is solved
Replies: 7
Views: 2080

Re: How to disable the shift key? Topic is solved

For some reason what you just said works. But now I'm just more confused. Why does LShift:: do something different than Shift:: ? Is there some explanation on the AHK website, or can you give one? I do still want to capitalize letters, but that part of my script I got working already. Anyway thanks...
by Maestr0
17 Jul 2020, 09:18
Forum: Ask For Help
Topic: How to disable the shift key? Topic is solved
Replies: 7
Views: 2080

Re: How to disable the shift key? Topic is solved

All the ~ prefix does, is
when the hotkey fires, its key's native function will not be blocked
, so that's not what you are looking for.

Code: Select all

LShift::return
should completely disable the shift-key, but your current description is completely different, you don't want to do capitalization anymore?
by Maestr0
17 Jul 2020, 07:01
Forum: Ask For Help
Topic: How to disable the shift key? Topic is solved
Replies: 7
Views: 2080

Re: Why doesn't this disable the Shift key? Topic is solved

This doesn't seem to do anything. For some reason, I can't make it so that the shift key won't capitalize letters if I'm holding it down, even regardless of the tilde (~). Does anyone have another solution? However, I need to have the tilde (~) before shift::, because I found out that the script on...
by Maestr0
16 Jul 2020, 16:00
Forum: Ask For Help
Topic: How to disable the shift key? Topic is solved
Replies: 7
Views: 2080

Re: Why doesn't this disable the Shift key? Topic is solved

try this:

Code: Select all

Shift::
	toggle := !toggle
	if toggle
		settimer, timer_shift
	else
		settimer, timer_shift, off
return

timer_shift:
	Send, {Shift up}
return
by Maestr0
16 Jul 2020, 01:27
Forum: Ask For Help
Topic: Script often overflow and not finish. Topic is solved
Replies: 3
Views: 1792

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

:ugeek: Hello, I have a problem with a script, it continues and sometimes force restart the PC and other times produce overflow. .... any expert please, Thanks. SendMode Input ~LButton::RButton return End::ExitApp Thanks :oops: Hi there! I don't understand the problem. Can you explain in different ...
by Maestr0
16 Jul 2020, 01:24
Forum: Ask For Help
Topic: Question about time interval script
Replies: 10
Views: 3983

Re: Question about time interval script

... Thank you for the help and for the explanation of the code! This works well. The only thing not working for me is the reset every 3 seconds but i think i can do the rest myself. You're welcome! Weird that the reset isn't working for you, it was working for me when I tested it. How are you testi...
by Maestr0
15 Jul 2020, 14:51
Forum: Ask For Help
Topic: Hold Alt while pressing F4
Replies: 6
Views: 2010

Re: Hold Alt while pressing F4

recyclingeek wrote:
15 Jul 2020, 14:01
How does it keep getting interfered with?
the amount of the Alt f4 to exit the program is random depending on which screen is the software on.
ah, you need an IfWinExist / WinActivate before sending the ALT-F4, I think

Go to advanced search