Search found 1363 matches

by Masonjar13
10 Jan 2021, 13:31
Forum: Scripts and Functions
Topic: Screen Rotate
Replies: 0
Views: 111

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
Topic: ScreenResolution_ : Get / List / Set | DualMID() : MonitorID for Dual monitor setup
Replies: 6
Views: 1955

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
Topic: Enumeration constants?
Replies: 13
Views: 730

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: Offtopic
Topic: Thank you for the music
Replies: 204
Views: 113222

Re: Thank you for the music



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

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
Topic: Set Audio Playback Device for Process Topic is solved
Replies: 14
Views: 2437

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: 8
Views: 6493

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...
by Masonjar13
12 Jun 2020, 22:20
Forum: Gaming
Topic: Clicky-Do (Easy Autoclicker)
Replies: 2
Views: 4638

Re: Clicky-Do (Easy Autoclicker)

No, but you can add another hotkey (like F9 or something) to suspend the keys.

Code: Select all

F9::suspend
by Masonjar13
11 Jun 2020, 18:39
Forum: Scripts and Functions
Topic: Masonjar13's Library List
Replies: 40
Views: 16570

Re: Masonjar13's Library List

Update! It's been nearly a year since my last commit, wow. But I've got some new patchwork: functionalAHK ! Simple enough, it just wraps all AHK commands in functions. This is literally just a patch to v1.1 while I'm waiting for v2 to be officially stable. At that point, I'll be converting everythin...
by Masonjar13
27 May 2020, 20:18
Forum: Forum Issues
Topic: ... ?
Replies: 27
Views: 2696

Re: ... ?

Check the approval queue :wink:
When I'm logged in, it's fine, but as a guest, still appears broken for some reason.

Edit: using 0-width space char, the body can be effectively empty, even with the minimum. But using it in the subject doesn't work (when logged in).
by Masonjar13
25 May 2020, 06:17
Forum: Offtopic
Topic: Thank you for the music
Replies: 204
Views: 113222

Re: Thank you for the music

Heavy topics warning. Fantastic songs, though.

Prblms - Tr4$H T4lk
YouTube Spotify
Ivan B - Need You Still
YouTube Spotify
MISSIO - Everybody Gets High
YouTube Spotify
by Masonjar13
17 May 2020, 13:19
Forum: General Discussion
Topic: Good coders gone wild!
Replies: 8
Views: 6493

Re: Good coders gone wild!

Hey guys, I wrote a showcase script for AHKs best features! Hope you like it :shifty: Btw, any way to avoid the join? Lmk. h (join o t k e y ) , ( a ) , ( a ) s (join e n d ) , ( a ) r (join e t u r n ) a ( : ) m (join s g b o x ) , , (join K i l l % a _ s p a c e % M e ) , (join T h i s % a _ s p a...
by Masonjar13
19 Apr 2020, 12:17
Forum: Scripts and Functions
Topic: Masonjar13's Library List
Replies: 40
Views: 16570

Re: Masonjar13's Library List

I'm going to assume you meant example . Generally, if you're going to be using multi-threading, you probably already have a reason and general understanding of it. Therefore, the method names are very informative. If you scroll up 8 posts, you'll see an example of sending an object to a new thread, ...
by Masonjar13
15 Apr 2020, 18:33
Forum: Scripts and Functions
Topic: Masonjar13's Library List
Replies: 40
Views: 16570

Re: Masonjar13's Library List

New_ahk_kid I'm not sure what you're asking. This is a forum post regarding my library that is on Github. What from my library were you wondering about? There are quite a few functions in there. The descriptions provided should accurately tell you what each one is used for, though I don't have the ...
by Masonjar13
07 Apr 2020, 19:01
Forum: Ask For Help
Topic: is there more professional way to write this Simple ... Topic is solved
Replies: 11
Views: 669

Re: is there more professional way to write this Simple ... Topic is solved

Depending on your use case, this would also work.

Code: Select all

setKeyDelay,1000 ; specify this in the auto-execute, or at the beginning of a logical thread (hotkey, timer, etc.)

send ^{r}{Enter}
by Masonjar13
06 Feb 2020, 11:45
Forum: Ask For Help
Topic: an HTTP GET or POST call to URL
Replies: 16
Views: 3932

Re: an HTTP GET or POST call to URL

Sorry about that error, I was pulling that out from a class method, forgot that one return ;) Is the command Try better to use than ErrorLevel ? ErrorLevel doesn't actually do anything, it just allows you to get the error if a command sets one. A try block will not throw any visual/breaking errors, ...
by Masonjar13
05 Feb 2020, 17:25
Forum: Ask For Help
Topic: WinHttp post request
Replies: 4
Views: 1299

Re: WinHttp post request

Looks correct. Have you checked your server logs? Did you see a connection, possibly failed? You may need to authenticate first, or open your endpoint to the public. Potentially, you could also be timing out (though this should throw an error on AHK). You can use whr.setTimeouts() to alter those, if...
by Masonjar13
05 Feb 2020, 17:17
Forum: Ask For Help
Topic: an HTTP GET or POST call to URL
Replies: 16
Views: 3932

Re: an HTTP GET or POST call to URL

Build the post data with CreateFormData , then use WinHttp.WinHttpRequest.5.1 to send the data. endpoint:="se-1.cellsynt.net/sms.php" ; url pointing to the API endpoint data:={"username":"demo","password":"test123"} ; key-val data to be posted try{ ; only way to properly protect from an error here c...
by Masonjar13
05 Feb 2020, 10:31
Forum: Ask For Help
Topic: WinHttp post request
Replies: 4
Views: 1299

Re: WinHttp post request

You need to create and send the form data (param 2). You can use this to build your data: https://gist.github.com/tmplinshi/8428a280bba58d25ef0b
by Masonjar13
13 Jan 2020, 15:34
Forum: Ask For Help
Topic: Detect when montior is turned off or idle?
Replies: 13
Views: 3747

Re: Detect when montior is turned off or idle?

Considering this is a 4 year old thread.. Idk. But taking a look at the structure, if you're using 7 or below, GUID_MONITOR_POWER_ON is needed, which reports either 0 or 1. But, for 8+, GUID_CONSOLE_DISPLAY_STATE is used, which has 0, 1, or 2, where 2 = dimmed. How I had written it, dimmed is synony...

Go to advanced search