Search found 1357 matches

by Masonjar13
17 Jun 2020, 17:57
Forum: General Discussion
Topic: Good coders gone wild!
Replies: 8
Views: 6216

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: 4249

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: 39
Views: 15724

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: 2384

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: 197
Views: 110077

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: 6216

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: 39
Views: 15724

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: 39
Views: 15724

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: 649

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: 2720

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: 859

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: 2720

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: 859

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: 12
Views: 3515

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...
by Masonjar13
04 Jan 2020, 22:15
Forum: Ask For Help
Topic: Hot string # problem Topic is solved
Replies: 2
Views: 355

Re: Hot string # problem Topic is solved

Code: Select all

:*?T:###::#ifwinactive
:*?:###::+3ifwinactive
By default, hotstrings are interpreted like send. Modifiers are able to be used. T doesn't use modifiers, just sends raw, so that's what I would recommend using here.
by Masonjar13
26 Nov 2019, 14:30
Forum: Ask For Help
Topic: How do you convert a list (eg "1,2,3,4") into an array?
Replies: 2
Views: 262

Re: How do you convert a list (eg "1,2,3,4") into an array?

strSplit

Code: Select all

x:="1,2,3,4,99,33"
array:=strSplit(x,",")
by Masonjar13
16 Oct 2019, 12:52
Forum: Ask For Help
Topic: Wait for window, then send a cancel command
Replies: 9
Views: 694

Re: Wait for window, then send a cancel command

ControlClick the x or cancel control. If there isn't a control, you can try sending it at exact (client-based) coordinates. I have several persistent windows such as this, and giving them the interaction they expect usually gives positive results. It has for me, anyways.
by Masonjar13
09 Oct 2019, 18:40
Forum: Ask For Help
Topic: some kind of bug causing some errors?
Replies: 4
Views: 709

Re: some kind of bug causing some errors?

I'm going to assume you didn't write these then? With that many questions, I would direct you to the tutorial. That should clear up most of your questions, and probably better than I could explain here.
by Masonjar13
08 Oct 2019, 22:24
Forum: Ask For Help
Topic: How to open a webpage with InPrivate?
Replies: 2
Views: 537

Re: How to open a webpage with InPrivate?

This pretty much is exactly what knoxastic is doing, but in a more isolated manner. Unfortunately flashes the window though, I've never been able to get around that. https://github.com/Masonjar13/AHK-Library/blob/master/Lib/IEObj.ahk If you don't feel like dissecting it, here's an example to use the...
by Masonjar13
08 Oct 2019, 22:13
Forum: Ask For Help
Topic: Looking for a fancy way to close a script when iTunes does.
Replies: 3
Views: 527

Re: Looking for a fancy way to close a script when iTunes does.

I believe the core of your issue is that you're using iTunes. ;) I'll never miss an opportunity to bash Apple. For funsies. Assuming that it will work okay (but not close the script) if you return in the callback, using a timer should work. Bit dirty, but I don't see another proper way, unless you m...

Go to advanced search