Search found 1376 matches

by Masonjar13
26 Sep 2022, 01:25
Forum: Ask for Help (v1)
Topic: Change the volume of specific application
Replies: 28
Views: 8350

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...
by Masonjar13
20 Nov 2021, 22:38
Forum: Off-topic Discussion
Topic: Dropbox screws us again
Replies: 10
Views: 4632

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!
by Masonjar13
29 Oct 2021, 00:03
Forum: Ask for Help (v1)
Topic: How to auto close cmd after it has finished executing?
Replies: 3
Views: 1653

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.
by Masonjar13
22 Oct 2021, 14:17
Forum: Ask for Help (v1)
Topic: code that will replace the number layout
Replies: 8
Views: 935

Re: code that will replace the number layout

Magija wrote:
22 Oct 2021, 13:49
in my opinion, the script you write does not perform such a function
Correct and incorrect are not opinions. Their script does work as you asked. What is it that you have an issue with?
by Masonjar13
15 Oct 2021, 01:41
Forum: Ask for Help (v1)
Topic: Can't Get Script To Randomize Keystroke
Replies: 2
Views: 392

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...
by Masonjar13
31 Jul 2021, 13:58
Forum: Ask for Help (v1)
Topic: Change the volume of specific application
Replies: 28
Views: 8350

Re: Change the volume of specific application

Looks like a syntax error. Use the Spotify example submeg just posted, works fine.
by Masonjar13
30 Jul 2021, 21:37
Forum: Ask for Help (v1)
Topic: Change the volume of specific application
Replies: 28
Views: 8350

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...
by Masonjar13
30 Jul 2021, 19:54
Forum: Ask for Help (v1)
Topic: Change the volume of specific application
Replies: 28
Views: 8350

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...
by Masonjar13
30 Jul 2021, 18:09
Forum: Ask for Help (v1)
Topic: Change the volume of specific application
Replies: 28
Views: 8350

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...
by Masonjar13
29 Jul 2021, 23:42
Forum: Ask for Help (v1)
Topic: Change the volume of specific application
Replies: 28
Views: 8350

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...
by Masonjar13
28 Jul 2021, 16:57
Forum: Ask for Help (v1)
Topic: Change the volume of specific application
Replies: 28
Views: 8350

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...
by Masonjar13
29 Mar 2021, 19:22
Forum: Ask for Help (v1)
Topic: Is it possible for comparing string("=") ? Topic is solved
Replies: 3
Views: 460

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)
by Masonjar13
03 Feb 2021, 02:27
Forum: Scripts and Functions (v1)
Topic: Taskbar Auto-hide Won't Unhide Fix
Replies: 0
Views: 449

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...
by Masonjar13
10 Jan 2021, 13:31
Forum: Scripts and Functions (v1)
Topic: Screen Rotate
Replies: 0
Views: 737

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
by Masonjar13
02 Jan 2021, 19:53
Forum: Scripts and Functions (v1)
Topic: ScreenResolution_ : Get / List / Set | DualMID() : MonitorID for Dual monitor setup
Replies: 6
Views: 3424

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...
by Masonjar13
03 Dec 2020, 12:45
Forum: Ask for Help (v1)
Topic: Enumeration constants?
Replies: 13
Views: 1397

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.
by Masonjar13
30 Nov 2020, 21:33
Forum: Off-topic Discussion
Topic: Thank you for the music
Replies: 305
Views: 223174

Re: Thank you for the music



by Masonjar13
30 Nov 2020, 21:23
Forum: Scripts and Functions (v1)
Topic: Masonjar13's Library List
Replies: 40
Views: 22094

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...
by Masonjar13
13 Nov 2020, 14:50
Forum: Ask for Help (v1)
Topic: Set Audio Playback Device for Process Topic is solved
Replies: 14
Views: 3645

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,...
by Masonjar13
17 Jun 2020, 17:57
Forum: General Discussion
Topic: Good coders gone wild!
Replies: 13
Views: 9932

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...

Go to advanced search