Search found 1336 matches

by Masonjar13
12 Sep 2019, 18:56
Forum: Gaming
Topic: When color found - Sends discord message Topic is solved
Replies: 3
Views: 145

Re: When color found - Sends discord message Topic is solved

Two things. First, yeah, posting the script should be the first thing you do, so people know what you're doing and can figure out how to help you. Second, what you've described breaks Discords TOS, which makes you subject to being banned by them. Thought I'd give you a fair warning.
by Masonjar13
05 Aug 2019, 08:30
Forum: Ask For Help
Topic: AHK Not working and keeps breaking
Replies: 6
Views: 481

Re: AHK Not working and keeps breaking

Perhaps I should expand a bit on that. Using ScriptUp, which runs H due to L not having multi-threading, #ifxxx crashes the thread on exiting, therefore I've personally deprecated it (this has nothing to do with my implementation, I've checked). It's also extremely limited, but as you said, does wor...
by Masonjar13
04 Aug 2019, 19:12
Forum: Ask For Help
Topic: Activate keys only in inactive window. Topic is solved
Replies: 9
Views: 631

Re: Activate keys only in inactive window. Topic is solved

The reason it doesn't work when pressed quickly is because it's getting the active window again, which would be the mudlet window. If you use critical , it should buffer (or ignore) the second activation, rather than interrupt the currently running instance. If it doesn't, then consider using the ho...
by Masonjar13
04 Aug 2019, 13:17
Forum: Ask For Help
Topic: AHK Not working and keeps breaking
Replies: 6
Views: 481

Re: AHK Not working and keeps breaking

SOTE is correct that you should look at yourself first, as a general rule for life, really. You're describing issues with your implementation (likely permissions), not AHK. The biggest issue people have is not running as administrator. For most of AHK to work properly, it needs admin privileges. Sec...
by Masonjar13
24 Jul 2019, 17:15
Forum: Ask For Help
Topic: Check color, while send .....keys if Check <= Xms) break
Replies: 2
Views: 213

Re: Check color, while send .....keys if Check <= Xms) break

SetTimer is what you'll want to use here. setTimer,sendThings,1998 setTimer,pixelCheck,1000 return sendThings: send 1 sleep 1998 ... send 0 return pixelCheck: if(pixelGetColor(872,53)!=0xFFB60E) ; integers/hex-integers do not need quotes, as they don't need to be strings ; other checks and such ret...
by Masonjar13
24 Jul 2019, 17:03
Forum: Ask For Help
Topic: Ctrl Double_press keys without effecting normal Ctrl press
Replies: 2
Views: 168

Re: Ctrl Double_press keys without effecting normal Ctrl press

Not entirely sure what the issue here is. If you simply abstain from doing anything, it will work as normal. For the if, you could simply return, but the better option would be to inverse the check (see if ErrorLevel isn't /if the timeout didn't happen). ~^s:: KeyWait, s ; wait for z to be released ...
by Masonjar13
24 Jul 2019, 16:45
Forum: Ask For Help
Topic: Best way to initiate a script
Replies: 5
Views: 209

Re: Best way to initiate a script

Sounds like a privilege issue. In the shortcut you have, make sure it's set to run as administrator. Windows 10 doesn't allow rebinds/hotkeys without admin.
by Masonjar13
16 Jul 2019, 20:31
Forum: Ask For Help
Topic: Copy a Link (Last 3 Numbers)
Replies: 1
Views: 190

Re: Copy a Link (Last 3 Numbers)

Well first, post any written code you have. I can only assume you're talking about the address bar in a browser. Pretty simple; major browsers all have a hotkey to select the address bar. So, send that, then send ^c. AHK has a clipboard var, which you can then use substr to get the last 3 characters...
by Masonjar13
03 Jul 2019, 23:55
Forum: Ask For Help
Topic: Scroll / Screenshot Auto Hot Key
Replies: 2
Views: 168

Re: Scroll / Screenshot Auto Hot Key

Using AHK for such a purpose seems fairly silly. Browser extensions will work much better: https://addons.mozilla.org/en-US/firefox/addon/fireshot/
by Masonjar13
16 May 2019, 19:37
Forum: Ask For Help
Topic: Help with ImageSearch Topic is solved
Replies: 16
Views: 996

Re: Help with ImageSearch Topic is solved

It appears this is for a website, correct? I would use ImageSearch only as a last resort. Primarily, I would suggest JavaScript injection, dropping AHK entirely. Alternatively, there are many ways to connect to browsers in AHK: IE COM, Chrome.ahk (library by GeekDude), Selenium.. you could even use ...
by Masonjar13
23 Apr 2019, 14:46
Forum: Ask For Help
Topic: How to STOP music (if playing) Topic is solved
Replies: 4
Views: 462

Re: How to STOP music (if playing) Topic is solved

I'd like to post this as an alternative. It uses the Spotify API, which affects your entire Spotify account. Meaning, it can pause/play/change music/volume/etc. on any device that your account is currently streaming to.
by Masonjar13
13 Apr 2019, 14:12
Forum: Ask For Help
Topic: problem with variable
Replies: 22
Views: 1168

Re: problem with variable

Topic locked due to being wildly off-topic. AutoN, please be aware of several things. Topic threads don't often stay 100% to the question (obviously, it's a discussion after all) and extra information may be provided by either party. Also note that none of the mods, or any other users, are paid to d...
by Masonjar13
13 Apr 2019, 13:07
Forum: Ask For Help
Topic: problem with variable
Replies: 22
Views: 1168

Re: problem with variable

How about you drop the attitude? We're trying to help you understand what you're doing incorrectly. As-is, your code works just fine. However, it's not being inverted, because you removed the inversion statement (!). To have ^!+t alternate having Space work, here is your whole code.. variable := 0 ;...
by Masonjar13
13 Apr 2019, 12:46
Forum: Ask For Help
Topic: problem with variable
Replies: 22
Views: 1168

Re: problem with variable

Comparisons are always done with = . This would [probably] keep setting variable to 1 when triggering the hotkey, which would make it always true. By using := here, it's performing an assignment rather than comparison. Another reason why assignments should always be := , to make a discerning differe...
by Masonjar13
13 Apr 2019, 12:36
Forum: Ask For Help
Topic: problem with variable
Replies: 22
Views: 1168

Re: problem with variable

Both = and := are valid. The difference is that := requires an expressive statement. Since you're assigning an integer, this is valid. = interprets it all as a string, which also works. So, both are correct. if is a control statement, while #if is a directive. Directive affect hotkeys and hotstrings...
by Masonjar13
10 Apr 2019, 19:51
Forum: Ask For Help
Topic: Generating Windows key combinations
Replies: 1
Views: 197

Re: Generating Windows key combinations

Since that's the only one not working, you can just replace it with directly locking: ^+!l::dllCall("LockWorkStation")
by Masonjar13
27 Mar 2019, 15:44
Forum: Ask For Help
Topic: trying to prevent a function from running more than once at a time
Replies: 22
Views: 1636

Re: trying to prevent a function from running more than once at a time

You can disable hotkeys.

Code: Select all

F1::
hotkey,% a_thisHotkey,off

Loop, 5
    Send 0123456789{enter}
hotkey,% a_thisHotkey,on
return
DRocks wrote:This thing really needs sleep times
SetKeyDelay
by Masonjar13
22 Mar 2019, 17:54
Forum: Editors
Topic: Script editor recommendation.
Replies: 5
Views: 1129

Re: Script editor recommendation.

If you want an all-in-one package deal, AHK Studio for sure. If you prefer a barebones environment (like myself), Notepad++ is a good option. Sublime is very similar to N++. Those who have a background with C/C++ are likely to be familiar with Microsoft Visual Studio, where VSCode (Visual Studio Cod...
by Masonjar13
22 Mar 2019, 11:59
Forum: Scripts and Functions
Topic: ScriptUp - Many scripts, One process
Replies: 36
Views: 6680

Re: ScriptUp - Many scripts, One process

Hey, glad you like it! I have spent quite a lot of time (about 3 years) on this, so if even a few people are using, that's awesome. :thumbup: I've actually noted this limitation on the Github readme. SetWorkingDir will be overridden. They will take on the working directory of the worker script, whic...
by Masonjar13
21 Mar 2019, 21:36
Forum: Ask For Help
Topic: Help me bind my xbox button to a multi key function.
Replies: 1
Views: 242

Re: Help me bind my xbox button to a multi key function.

You can indeed, but it requires additional software. At least, I haven't found a way to do so that is purely AHK. Also, it's for the 360 controller, which may or may not work with the One controller, you'll have to test it out. First, download the file called button_on_360_guide.exe , as well as the...

Go to advanced search