Search found 1357 matches

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

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

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

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

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

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

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

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

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

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

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...
by Masonjar13
12 Feb 2019, 17:28
Forum: Ask For Help
Topic: Stop Windows Beep
Replies: 6
Views: 1229

Re: Stop Windows Beep

Here would be a starting point. You may be able to just use "System Sounds" as the window name, but probably not. So, you'd need to either figure out which process is connected to the mixer entry and hope it has a window, or maybe check the other VA functions, see if there's another way to get the ...
by Masonjar13
12 Feb 2019, 00:04
Forum: Ask For Help
Topic: Connecting a script containing several IFs & several result commands
Replies: 1
Views: 398

Re: Connecting a script containing several IFs & several result commands

Else ? Unless you mean you want them all on one line. if(winExist("Windows Media Player")||winExist("Groove Music")||winExist("VLC")||winExist("YouTube")){ winActivate ; uses last found window winWaitActive } If that doesn't work (not sure if it would correctly set the last found window), could loo...
by Masonjar13
11 Feb 2019, 23:54
Forum: Ask For Help
Topic: Speed typing error
Replies: 2
Views: 594

Re: Speed typing error

Something like this maybe?

Code: Select all

$n::nt:=a_msec
$n up::
if(a_msec-nt>500)
    run C:\Windows\System32\Notepad
else
    send,n
return
It will only open notepad after n is released.
by Masonjar13
09 Feb 2019, 00:20
Forum: Ask For Help
Topic: Better syntax for this if-statement? Topic is solved
Replies: 3
Views: 643

Re: Better syntax for this if-statement? Topic is solved

You can combine them using the || (or) operator.

Code: Select all

if (FileExist("C:\" name ".*.part") || !fileExist("C:\" name ".*")) { ; ! inverts the statement, making false return true, like "if not"
    Msgbox File wasn't downloaded
    Do A
}
by Masonjar13
27 Jan 2019, 20:57
Forum: Ask For Help
Topic: Debugging Web App That Uses Websockets, Loaded By Gui Component
Replies: 3
Views: 637

Re: Debugging Web App That Uses Websockets, Loaded By Gui Component

AHK doesn't have IE, it simply uses what is installed on the computer. Your best bet would be to setup a RESTful (or similar) API, and use WinHttpRequest, using a completely client-side UI.
by Masonjar13
26 Jan 2019, 12:12
Forum: Gaming
Topic: Left and right click key auto cycle
Replies: 17
Views: 3628

Re: Left and right click key auto cycle

Mason there are some stuff that are not working right like what mast said but in all honesty mason ur code works fine thank you so much Apologies for not getting back to you sooner, I've been very busy! You can slow it down with a sleep inside the loops. As for why it's skipping some, probably beca...
by Masonjar13
14 Jan 2019, 03:46
Forum: Gaming
Topic: Left and right click key auto cycle
Replies: 17
Views: 3628

Re: Left and right click key auto cycle

.. I'll just blatantly ignore your response, seeing as it makes no sense and that code is.. pretty bad. Though, yes, I did miss where OP asked to keep the cycle when stopped. Easy fix. setKeyDelay,25,25 ; good starting point for games arr1:=[1,2,3] arr2:=[4,5,6] arr1L:=arr2L:=1 $^F1::t:=!t #if t $LB...
by Masonjar13
12 Jan 2019, 17:45
Forum: Gaming
Topic: Left and right click key auto cycle
Replies: 17
Views: 3628

Re: Left and right click key auto cycle

It's explained quite clearly. You just need to have a loop that checks if the particular key is still being held, along with a hotkey. $LButton:: while(getKeyState("LButton","P")) send 123 return $RButton:: while(getKeyState("RButton","P")) send 456 return As it's written here, it won't work if both...
by Masonjar13
03 Dec 2018, 23:48
Forum: Ask For Help
Topic: Microsoft Defender deleting my apps
Replies: 14
Views: 2302

Re: Microsoft Defender deleting my apps

You don't have to turn Microsoft Defender off. You can make an exception, so that Defender ignores the file. Also, Malwarbytes is for malware, but doesn't exactly do Anti-Virus the best. It's arguably not complete protection, unless it's run with an Anti-Virus program that is more specifically dedi...
by Masonjar13
03 Dec 2018, 11:38
Forum: Ask For Help
Topic: Microsoft Defender deleting my apps
Replies: 14
Views: 2302

Re: Microsoft Defender deleting my apps

Sure, just disable Defender. Use something better, like Malwarebytes.

Go to advanced search