Search found 1327 matches

by Masonjar13
16 May 2019, 19:37
Forum: Ask For Help
Topic: Help with ImageSearch Topic is solved
Replies: 16
Views: 487

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

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

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

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

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

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

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

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

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

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

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...
by Masonjar13
20 Mar 2019, 14:45
Forum: Ask For Help
Topic: Auto fil username & password
Replies: 7
Views: 509

Re: Auto fil username & password

As another pre-made option, I also have PIN, simple encrypted data class, using key-value pairs as entries. Each individual value is encrypted (not the keys), so you can use different encrypt keys/passwords for each entry, if you so choose.
by Masonjar13
19 Mar 2019, 15:51
Forum: Ask For Help
Topic: Finding 2nd and 3rd largest integers in a set
Replies: 2
Views: 196

Re: Finding 2nd and 3rd largest integers in a set

You would need to append the variables first, but Sort is probably what you're looking for. If you really want to keep them separate, consider making a function that will iterate through all the variables and compare. You can get the whole list of vars into a function by either using an object or va...
by Masonjar13
19 Mar 2019, 15:44
Forum: Ask For Help
Topic: Auto fil username & password
Replies: 7
Views: 509

Re: Auto fil username & password

To answer your question, yes, you could use an ini file. However, I would recommend against this, as storing passwords in plaintext is never a good idea. Proceed as you will, but I suggest using LastPass or similar.
by Masonjar13
10 Mar 2019, 19:47
Forum: Forum Issues
Topic: Google Chrome AHK tab freeze vs "Select All" button with big content in code box Topic is solved
Replies: 10
Views: 606

Re: Google Chrome FREEZE vs "Select All" button with big content Topic is solved

Delay is present on Firefox as well, noticed that immediately, but isn't related to the "Select All" button. Doesn't affect my browser either, just the document data/object. but i rather think it has more to do with over 3200 lines of code loading You're saying I can't download/cache text instantane...
by Masonjar13
10 Mar 2019, 18:32
Forum: Forum Issues
Topic: Google Chrome AHK tab freeze vs "Select All" button with big content in code box Topic is solved
Replies: 10
Views: 606

Re: Google Chrome FREEZE vs "Select All" button with big content Topic is solved

No issue with Firefox, which shifts blame onto Chrome rather than the forum. Not entirely, just more likely.

You could also be running out of RAM, virtual or physical, or have a slow RAM speed. Lots of potential issues, honestly.
by Masonjar13
08 Mar 2019, 02:56
Forum: Ask For Help
Topic: What's the meaning of 'ByRef'?
Replies: 3
Views: 224

Re: What's the meaning of 'ByRef'?

Typically, params stated for a function will copy the variable contents. ByRef means to use the pointer to the original variable instead, rather than make a copy. That means, if the function changes the variable, it will affect the original one as well. Taking one step back, assuming you know nothin...
by Masonjar13
26 Feb 2019, 23:21
Forum: Ask For Help
Topic: Attempted "middle click emulation", now can't click and hold with left of right mouse buttons
Replies: 4
Views: 284

Re: Attempted "middle click emulation", now can't click and hold with left of right mouse buttons

This seems to work pretty well #if getKeyState("LButton","P") && getKeyState("RButton","P") $LButton:: $RButton:: t:=1 mouseClick,middle,,,,,d hotkey,~$LButton up,bu,on hotkey,~$RButton up,bu,on return #if bu: hotkey,% a_thisHotkey,off if(t){ mouseClick,middle,,,,u t:=0 } return Bit complicated. Her...
by Masonjar13
26 Feb 2019, 22:56
Forum: Gaming
Topic: How to achieve the lowest level of access to keys?
Replies: 5
Views: 368

Re: How to achieve the lowest level of access to keys?

Using the keyboard hook should be good enough.

Code: Select all

#installKeybdHook
; or
$F1::
I've never had an in-game keybind take precedence over AHK with the hook active.
by Masonjar13
12 Feb 2019, 17:45
Forum: Ask For Help
Topic: Drawing a blank! AHK Gods Unite!
Replies: 4
Views: 253

Re: Drawing a blank! AHK Gods Unite!

Alternatively, you could put the terms in an array/index-based object and use a for-loop. ; sometime after submitting the GUI info termsObj:=strSplit(terms,"`n") ; inside file-read loop for i,a in termsObj{ if(inStr(a_loopReadLine,a)) fileAppend,% a_loopReadLine,file.txt } Considering that using a m...

Go to advanced search