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