Search found 8 matches

by edu-hilario
11 Apr 2022, 08:19
Forum: Scripts and Functions (v1)
Topic: AutoHotkey shortcut to like songs on Spotify
Replies: 12
Views: 4343

Re: AutoHotkey shortcut to like songs on Spotify

Update #1 — Code refactor

Using the search bar as a starting point is faster and more secure than using the Alt menu.

Code: Select all

DetectHiddenWindows, On
WinActivate, ahk_exe spotify.exe
WinWait, ahk_exe spotify.exe
Sleep 100
Send ^l
Sleep 100
Loop, 14 {
    Send {Tab}
}
Return
by edu-hilario
31 Mar 2022, 10:34
Forum: Scripts and Functions (v1)
Topic: AutoHotkey shortcut to like songs on Spotify
Replies: 12
Views: 4343

AutoHotkey shortcut to like songs on Spotify

FINALLY! Months after I desisted of creating a shortcut to like the current song on Spotify Desktop I finally made it work. I detects if Spotify is in another desktop, jumps to the last page on the stack and tabs to the position of the like button. I'm so happy right now!!! :D !SC00D:: DetectHidden...
by edu-hilario
26 Aug 2021, 11:44
Forum: Ask for Help (v1)
Topic: Hotkeys stops to work after a while
Replies: 6
Views: 1085

Re: Hotkeys stops to work after a while

swagfag wrote:
26 Aug 2021, 11:43
suspend and unsuspend the script. keep doing this every time the hooks get overridden...
No, you're not understanding: I've tried it all.

This is what is maddening, refreshing the script doens't solve the problem.
by edu-hilario
26 Aug 2021, 11:29
Forum: Ask for Help (v1)
Topic: Hotkeys stops to work after a while
Replies: 6
Views: 1085

Re: Hotkeys stops to work after a while

Some Web browsers have their own hotkeys or may use keyboard hooks, etc. that could conflict with AHK. So, I think my problem is distilled to this quote. How do I circumvent this? Because it makes sense that have shortcuts apps such as Firefox and Figma would conflict with my custom shortcuts, but ...
by edu-hilario
24 Aug 2021, 10:04
Forum: Ask for Help (v1)
Topic: Hotkeys stops to work after a while
Replies: 6
Views: 1085

Hotkeys stops to work after a while

So, I have been having this problem since I started using AHK a month ago. My hotkeys stops working with specific programs, such as Firefox and Figma, for a few moments, and then come back alive again. It's maddening not knowing what is causing this. I've added multiple headers in the hopes that thi...
by edu-hilario
31 Jul 2021, 22:03
Forum: Ask for Help (v1)
Topic: Problem with a CapsLock (ShiftLock-ish) hotkey
Replies: 2
Views: 290

Re: Problem with a CapsLock (ShiftLock-ish) hotkey

;CapsLock on RShift #ifWinActive ~$RShift:: KeyWait, RShift If (A_ThisHotkey = A_PriorHotkey) && (A_TimeSincePriorHotkey < 400) SetCapsLockState, % ((GetKeyState("CapsLock", "T") = 1) ? "Off" : "AlwaysOn") Return Just solved it! Thanks to the user @Moo on AHK's Discord for helping me. The solution ...
by edu-hilario
31 Jul 2021, 14:53
Forum: Ask for Help (v1)
Topic: Problem with a CapsLock (ShiftLock-ish) hotkey
Replies: 2
Views: 290

Problem with a CapsLock (ShiftLock-ish) hotkey

~$RShift:: KeyWait, RShift If (A_ThisHotkey = A_PriorHotkey) && (A_TimeSincePriorHotkey < 400) SetCapsLockState, % ((GetKeyState("CapsLock", "T") = 1) ? "Off" : "On") Return So, I've been using this hotkey to activate CapsLock for a while now, since I removed the physical key and replace it with Co...
by edu-hilario
30 Jul 2021, 15:21
Forum: Scripts and Functions (v1)
Topic: Activate Dolby Atmos for Headphones with AHK
Replies: 0
Views: 518

Activate Dolby Atmos for Headphones with AHK

I've been doing this one manually for a long time. Decided to create a hotkey to activate it (that's everytime the system boots). ;[Enter your hotkey here]:: Run, control mmsys.cpl sounds WinWaitActive, Sound ;Or the corresponding on your language WinActivate, Sound ;Or the corresponding on your lan...

Go to advanced search