Search found 62 matches

by samt
19 Mar 2024, 16:46
Forum: Ask for Help (v1)
Topic: Skrommel's 2005 DimInactive--Move dark cover to non-primary monitor Topic is solved
Replies: 5
Views: 237

Re: Skrommel's 2005 DimInactive--Move dark cover to non-primary monitor Topic is solved

Then try: SysGet, C, Monitor, 2 ; Center Monitor 2 must always be visible Loop, Parse,% "XL,YU,XW,YH", CSV SysGet, %A_LoopField%,% 75 + A_Index XR:= XL + XW, YD:= YU + YH ; bounding rectangle of all display monitors Gui, +Owner +AlwaysOnTop -Disabled -SysMenu -Caption Gui, Color, Black Gui, Show, x...
by samt
13 Mar 2024, 15:49
Forum: Ask for Help (v1)
Topic: Skrommel's 2005 DimInactive--Move dark cover to non-primary monitor Topic is solved
Replies: 5
Views: 237

Re: Skrommel's 2005 DimInactive--Move dark cover to non-primary monitor Topic is solved

Hallo, try: Loop, Parse,% "XL,YU,XW,YH", CSV SysGet, %A_LoopField%,% 75 + A_Index XR:= XL + XW, YD:= YU + YH ; bounding rectangle of all display monitors Gui, +Owner +AlwaysOnTop -Disabled -SysMenu -Caption Gui, Color, Black Gui, Show, x%XL% y%YU% w%XW% h%YH% NA, Black WinSet, ExStyle, ^0x20, Black...
by samt
13 Mar 2024, 01:11
Forum: Ask for Help (v1)
Topic: Skrommel's 2005 DimInactive--Move dark cover to non-primary monitor Topic is solved
Replies: 5
Views: 237

Skrommel's 2005 DimInactive--Move dark cover to non-primary monitor Topic is solved

https://www.autohotkey.com/board/topic/4263-diminactive-dim-all-inactive-windows/ This works well for the primary monitor on my Windows 10. It auto dims the primary monitor when it becomes inactive. I'm trying to make the script fully dim the far left monitor whenever it's inactive, while the center...
by samt
06 Dec 2023, 20:34
Forum: Ask for Help (v1)
Topic: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved
Replies: 9
Views: 700

Re: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved

Close to perfect, but my Xbutton1 still loses its functionality as my "back" function if I just press the button. I've tried lots of different code now but can never get the "back" functionality of the button to remain while being able to hold it and move scroll wheel up to send !{PgUp}. Oops. I fo...
by samt
05 Dec 2023, 17:06
Forum: Ask for Help (v1)
Topic: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved
Replies: 9
Views: 700

Re: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved

Untested, but it seems like it should be more like this: XButton1:: KeyWait, XButton1, T0.50 if !ErrorLevel Send, XButton1 return #If GetKeyState("XButton1", "P") WheelUp::Send, !{PgUp} Close to perfect, but my Xbutton1 still loses its functionality as my "back" function if I just press the button....
by samt
03 Dec 2023, 19:42
Forum: Ask for Help (v1)
Topic: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved
Replies: 9
Views: 700

Re: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved

Not quite right.. "back" functionality doesnt work if I just press Xbutton1. I want to be able to send a !{PgUp} command each time mouse wheel up occurs, all while holding down Xbutton1. Currently only lets me send 1 command of !{PgUp} each time I press and hold Xbutton1 and move mouse wheel up. Xbu...
by samt
03 Dec 2023, 19:03
Forum: Ask for Help (v1)
Topic: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved
Replies: 9
Views: 700

Re: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved

actually I think I might have it...gonna post in a bit. Doesn't need nested 'if' I think
by samt
03 Dec 2023, 18:59
Forum: Ask for Help (v1)
Topic: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved
Replies: 9
Views: 700

Re: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved

Seems like I need a nested 'if' statement but I haven't been able to get it to work
by samt
03 Dec 2023, 18:53
Forum: Ask for Help (v1)
Topic: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved
Replies: 9
Views: 700

Re: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved

Not sure how to go about doing this. Xbutton 1 is my back button, but when I make it part of a hotkey where I press it with another keyboard button, the "back" feature of the button goes away . That shouldn’t happen if you use one of the standard modifier keys and specify your hotkey(s) like this (...
by samt
03 Dec 2023, 01:49
Forum: Ask for Help (v1)
Topic: Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved
Replies: 9
Views: 700

Hold down Xbutton 1 while move scroll wheel up to send !PgDn Topic is solved

Not sure how to go about doing this. Xbutton 1 is my back button, but when I make it part of a hotkey where I press it with another keyboard button, the "back" feature of the button goes away . So maybe making it only work as an ahk hotkey if it's pressed and held down for more than 0.4s, and user m...
by samt
29 Nov 2023, 18:32
Forum: Scripts and Functions (v2)
Topic: tigerlily's Screen Dimmer [a122] - Multi-Monitor Screen Dimmer for Developers, Students, Gamers & Digital Nomads
Replies: 53
Views: 16875

Re: tigerlily's Screen Dimmer [a122] - Multi-Monitor Screen Dimmer for Developers, Students, Gamers & Digital Nomads

I've tried running in using V2, but get some error box pop up: Error: Missing comma Text:GetPhysicalMonitorsFromHMONITOR(hMonitor, PhysicalMonitorArraySize, ByRef PHYSIC… Line: 1067 File: ****************** The program will exit. ...trying to fix an error brings up another error. At least the .exe w...
by samt
29 Nov 2023, 16:47
Forum: Scripts and Functions (v2)
Topic: tigerlily's Screen Dimmer [a122] - Multi-Monitor Screen Dimmer for Developers, Students, Gamers & Digital Nomads
Replies: 53
Views: 16875

Re: tigerlily's Screen Dimmer [a122] - Multi-Monitor Screen Dimmer for Developers, Students, Gamers & Digital Nomads

Old thread but thought I'd try to reply.. Does the code work as an .ahk file? I cannot get it to run, keep getting some error after error. The .exe file works and actually can reduce screen brightness. No hotkey support it seems. Is there any other free screen dimmer that actually dims the screens b...
by samt
01 Mar 2023, 22:09
Forum: Ask for Help (v1)
Topic: Detect clickable link in Chrome
Replies: 50
Views: 16300

Re: Detect clickable link in Chrome

teadrinker wrote:
01 Mar 2023, 21:38
The complete text is "Re: Detect clickable link in Chrome".
It seems to work. I tried it on some other sites but it doesn't seem to work..
Anyways, I'll pause trying for now. Not sure what's going on, but got some other stuff to do. Thanks for the help!
by samt
01 Mar 2023, 21:20
Forum: Ask for Help (v1)
Topic: Detect clickable link in Chrome
Replies: 50
Views: 16300

Re: Detect clickable link in Chrome

teadrinker wrote:
01 Mar 2023, 21:09
For me this correctly works on this page: linkText := "samt"
You're right, that works. I noticed it seems to lead to a different link than when you click on it manually.
Try this:

Code: Select all

linkText := "Re: Detect clickable link"
It all leads to one link and doesn't work
by samt
01 Mar 2023, 20:53
Forum: Ask for Help (v1)
Topic: Detect clickable link in Chrome
Replies: 50
Views: 16300

Re: Detect clickable link in Chrome

if the word/phrase exists twice or more in that window, the script wont click on it No, in this case the script should click on the first link it finds. Interesting. Not sure why it doesn't work for me if there's 2 of the same words. Trying it this AHK forum and it doesn't click anything if that wo...
by samt
01 Mar 2023, 20:36
Forum: Ask for Help (v1)
Topic: Detect clickable link in Chrome
Replies: 50
Views: 16300

Re: Detect clickable link in Chrome

Try replacing links[i].click(); with window.location = links[i].href; I actually got it to work with the original, and the replacement too. I know why it wasn't working, I think: It seems to only work when that particular string only occurs once in current viewing window. The words I was looking fo...
by samt
01 Mar 2023, 20:06
Forum: Ask for Help (v1)
Topic: Detect clickable link in Chrome
Replies: 50
Views: 16300

Re: Detect clickable link in Chrome

If using accsessible, it's easier to get acc-object of Chrome address bar and run javascript from it, which searches for a link with specified text and clicks it. SetBatchLines, -1 linkText := "05 May 2020, 06:43" js = ( (() => { const links = document.links; for (let i = 0; i < links.length; i++) ...
by samt
01 Mar 2023, 18:43
Forum: Ask for Help (v1)
Topic: use Control to delete desktop notification?
Replies: 0
Views: 176

use Control to delete desktop notification?

I use this script (first script from top, by Malcev) https://www.autohotkey.com/boards/viewtopic.php?f=76&t=76103&hilit=desktop+notification to detect desktop notifications and their content. I use if statements to do certain things based on the content of the notification. I'd like to be able to DE...
by samt
28 Feb 2023, 11:01
Forum: Ask for Help (v1)
Topic: Extract the 7 words before every '$' that appears and the 7 words after it (or until period) Topic is solved
Replies: 6
Views: 609

Re: Extract the 7 words before every '$' that appears and the 7 words after it (or until period) Topic is solved

Based on your post, I'm a bit confused about what you need, so I will leave the changes to you. The Max line in the script adjusts for a preceding dot (period) by excluding it (and preceding text), so you can always modify that if needed. When I indicated that you had not run your original script, ...

Go to advanced search