Search found 1376 matches
- 26 Sep 2022, 01:25
- Forum: Ask for Help (v1)
- Topic: Change the volume of specific application
- Replies: 28
- Views: 9113
Re: Change the volume of specific application
Hey! Since this is still getting new posts, figured I'd post an update. There was an error in the setWindowVol function that caused non-relative values to be floored (e.g. setWindowVol("ahk_exe chrome.ahk", "50") or anything less than 100 would result in 0, while 100 would result in 100). See this p...
- 20 Nov 2021, 22:38
- Forum: Off-topic Discussion
- Topic: Dropbox screws us again
- Replies: 10
- Views: 4765
Re: Dropbox screws us again
@BoBo I do, I use the free version, and no I don't use their api. I have an AHK script that watches a sync'd folder and I upload command files from my phone to automate while I'm away from home. Didn't know there was an api actually, I'll look into that!
- 29 Oct 2021, 00:03
- Forum: Ask for Help (v1)
- Topic: How to auto close cmd after it has finished executing?
- Replies: 3
- Views: 1913
Re: How to auto close cmd after it has finished executing?
Assuming you're typing this out, just add & exit to the end of the command.
- 22 Oct 2021, 14:17
- Forum: Ask for Help (v1)
- Topic: code that will replace the number layout
- Replies: 8
- Views: 968
- 15 Oct 2021, 01:41
- Forum: Ask for Help (v1)
- Topic: Can't Get Script To Randomize Keystroke
- Replies: 2
- Views: 410
Re: Can't Get Script To Randomize Keystroke
The random command is working, but you're not using the output of it, which would be the variable rand . #Persistent SetTimer, PressTheKey, 4000 Return PressTheKey: Send, {e} Random, rand, 4000, 5000 SetTimer, PressTheKey,% rand Return Esc::ExitApp You can use % followed by a space to force express...
- 31 Jul 2021, 13:58
- Forum: Ask for Help (v1)
- Topic: Change the volume of specific application
- Replies: 28
- Views: 9113
Re: Change the volume of specific application
Looks like a syntax error. Use the Spotify example submeg just posted, works fine.
- 30 Jul 2021, 21:37
- Forum: Ask for Help (v1)
- Topic: Change the volume of specific application
- Replies: 28
- Views: 9113
Re: Change the volume of specific application
Is there a way to modify the volume of a program that is not active, without using the name of the application? For example, Spotify's name changes as the song changes, but the class and the process ID would stay the same. Is it possible to use a different identifier? Yep, in the example from my se...
- 30 Jul 2021, 19:54
- Forum: Ask for Help (v1)
- Topic: Change the volume of specific application
- Replies: 28
- Views: 9113
Re: Change the volume of specific application
I tried the code as I posted it, in a separate script, using !a as you did, worked fine for me. Right-click the script > Run as administrator. Edit: again, it doesn't alter the master volume. The mixer doesn't show process volume percentage, you can only determine that by looking at it (or you can u...
- 30 Jul 2021, 18:09
- Forum: Ask for Help (v1)
- Topic: Change the volume of specific application
- Replies: 28
- Views: 9113
Re: Change the volume of specific application
The script works, but it sadly only works when the window is focused so i can't really toggle the volume when im focusing other window.. is there any way to toggle the volume anytime even if i'm focusin other applications/windows? I answered this in my last message, you'll need to give it a valid W...
- 29 Jul 2021, 23:42
- Forum: Ask for Help (v1)
- Topic: Change the volume of specific application
- Replies: 28
- Views: 9113
Re: Change the volume of specific application
Take the second script and run it; it has VA and SetWindowVol() included. It'll swap the volume buttons to work on the active window instead. If you want to be specific with the window, see WinTitle to figure out what you want, then put it in the first parameter. Something like Volume_Up::setWindowV...
- 28 Jul 2021, 16:57
- Forum: Ask for Help (v1)
- Topic: Change the volume of specific application
- Replies: 28
- Views: 9113
Re: Change the volume of specific application
You'll need VA library , then you can use SetWindowVol() . #include <setWindowVol> Volume_Up::setWindowVol(,"+15") Volume_Down::setWindowVol(,"-15") If you don't want to use the libraries, here's an everything-included version. Volume_Up::setWindowVol(,"+15") Volume_Down::setWindowVol(,"-15") setWin...
- 29 Mar 2021, 19:22
- Forum: Ask for Help (v1)
- Topic: Is it possible for comparing string("=") ? Topic is solved
- Replies: 3
- Views: 500
Re: Is it possible for comparing string("=") ? Topic is solved
Tested, it opens the "yes" msgbox. The code is fine, maybe you forgot to save and reload?
To HotKeyIt's reply, if() works fine, believe it or not (in v1.1)
To HotKeyIt's reply, if() works fine, believe it or not (in v1.1)
- 03 Feb 2021, 02:27
- Forum: Scripts and Functions (v1)
- Topic: Taskbar Auto-hide Won't Unhide Fix
- Replies: 0
- Views: 462
Taskbar Auto-hide Won't Unhide Fix
I've never used the taskbar auto-hide in the past, because it just doesn't work with some maximized windows. A well known bug , but it seems no one really knows the specific cause. Well anyway, I wanted more screen space, so I had to come up with a solution. I thought, why don't I emulate how the sy...
- 10 Jan 2021, 13:31
- Forum: Scripts and Functions (v1)
- Topic: Screen Rotate
- Replies: 0
- Views: 771
Screen Rotate
A friend asked me to bring this functionality back, so I did. Big thanks to @SKAN since I stole his code. (https://www.autohotkey.com/boards/viewtopic.php?t=77664)
Code:
https://github.com/Masonjar13/RotateScreen
Code:
https://github.com/Masonjar13/RotateScreen
- 02 Jan 2021, 19:53
- Forum: Scripts and Functions (v1)
- Topic: ScreenResolution_ : Get / List / Set | DualMID() : MonitorID for Dual monitor setup
- Replies: 6
- Views: 3489
Re: ScreenResolution_ : Get / List / Set | DualMID() : MonitorID for Dual monitor setup
Hey SKAN! Appreciate the code, but also, wow is it hard to read/edit lol. With some help from Discord, made a _Set that also changes orientation. (Name was too long imo, so I shortened it.) screenRes_Set(WxHaF, Disp:=0, orient:=0) { ; v0.90 By SKAN on D36I/D36M @ tiny.cc/screenresolution ; edited or...
- 03 Dec 2020, 12:45
- Forum: Ask for Help (v1)
- Topic: Enumeration constants?
- Replies: 13
- Views: 1450
Re: Enumeration constants?
AHK does not have literal constants. The best idea would be to create a class to house these variables, then use methods. It would likely also be much better to use an associative array (aka dict or just an object) for these times instead. Much easier for iterating through.
- 30 Nov 2020, 21:33
- Forum: Off-topic Discussion
- Topic: Thank you for the music
- Replies: 312
- Views: 228043
- 30 Nov 2020, 21:23
- Forum: Scripts and Functions (v1)
- Topic: Masonjar13's Library List
- Replies: 40
- Views: 22507
Re: Masonjar13's Library List
Hey hey, got a big update coming! Huge refactoring to create more consistent syntax, as well as documentation in each file. Not going to include the classes, I'll do that later, as it's taking an age just to do the functions. I'll also be putting some new functions up in the near future that I've al...
- 13 Nov 2020, 14:50
- Forum: Ask for Help (v1)
- Topic: Set Audio Playback Device for Process Topic is solved
- Replies: 14
- Views: 3746
Re: Set Audio Playback Device for Process Topic is solved
komrad , the whole point of this is to hide the window, so of course you wouldn't see it. If you want a window, this class is not for you. In Windows 10, they added native functionality. Open up explorer and go to ms-settings:apps-volume , you can change everything in there. This is what I use now,...
- 17 Jun 2020, 17:57
- Forum: General Discussion
- Topic: Good coders gone wild!
- Replies: 13
- Views: 10181
Re: Good coders gone wild!
Hey everyone, just wanted to share this new loop I designed! I call it RegLoad. Ha, get it? c: x:="hkcu\Software\ahkdumb",y:="Hello, AHK.." regRead,a,% x if errorlevel{ regWrite,reg_sz,% x,,% a:=1 run,notepad winWait,ahk_exe notepad.exe }else if !a{ exitApp } send,% subStr(y,a,1) if (a=strLen(y)){ r...