Search found 4477 matches

by evilC
39 minutes ago
Forum: Ask For Help
Topic: Windows Command Prompt Console ~
Replies: 6
Views: 99

Re: Windows Command Prompt Console ~

AHK supports key/value pairs {} and indexed lists []
by evilC
Yesterday, 12:33
Forum: Ask For Help
Topic: Change of Command Key to Joystick
Replies: 14
Views: 195

Re: Change of Command Key to Joystick

OK then, I think I know what your problem was. In this code: 1Joy1:: #IfWinActive ahk_class ArmA 2 OA Send {MButton down} Keywait, %A_ThisHotKey% Send {MButton Up} return The line #IfWinActive ahk_class ArmA 2 OA has no effect at all, as it is inside the hotkey. Before, it was in the correct place, ...
by evilC
Yesterday, 08:51
Forum: Ask For Help
Topic: need help loop reading to clipboard
Replies: 7
Views: 145

Re: need help loop reading to clipboard

How are we supposed to know what you want to put on the clipboard, when there is no attempt or even comment in the code trying to put what you want on it? And his explanation could not be any clearer - the contents of the clipboard is just a variable in AHK, and you clearly know how to assign to a v...
by evilC
Yesterday, 08:11
Forum: Ask For Help
Topic: Change of Command Key to Joystick
Replies: 14
Views: 195

Re: Change of Command Key to Joystick

Well if both of the parts worked in isolation, not really sure why putting it all together is not working. Let's try something else - maybe it's the holding of MButton that is not working properly for some reason. Maybe try this? 1Joy1:: Send {MButton down} return 1Joy2:: Send {MButton Up} return Bu...
by evilC
Yesterday, 06:17
Forum: Ask For Help
Topic: Would anyone know if the program "Auto Mouse Click" was written with AutoHotKey?
Replies: 5
Views: 76

Re: Would anyone know if the program "Auto Mouse Click" was written with AutoHotKey?

You seriously expect to get an answer without even linking what you are talking about?
by evilC
Yesterday, 05:36
Forum: Ask For Help
Topic: Alternative to iniread
Replies: 5
Views: 126

Re: Alternative to iniread

If you want to load this array from a settings file, you probably don't want to use INIRead / INIWrite.
I would use Json
Then you can just store the array verbatim in the JSON file.
by evilC
21 Feb 2019, 17:35
Forum: Ask For Help
Topic: Change of Command Key to Joystick
Replies: 14
Views: 195

Re: Change of Command Key to Joystick

Well if UCR did what you wanted, then it is possible with AHK, so we just have to work out why your stand-alone script is not working. As you say, it's overkill to use a big app just for one mapping. Before I continue, I just want to clear something up that I am unsure of. You said "These commands a...
by evilC
21 Feb 2019, 17:07
Forum: Ask For Help
Topic: Windows Command Prompt Console ~
Replies: 6
Views: 99

Re: Windows Command Prompt Console ~

Ah, i see what you were trying to do now - yeah, makes a lot more sense now. There are more elegant ways to achieve the same result tho, this problem is perfect for solving using a class #SingleInstance force Tilde := new Cycler("~", Func("TildeFunc"), 3) Grave := new Cycler("``", Func("GraveFunc"),...
by evilC
21 Feb 2019, 12:31
Forum: Ask For Help
Topic: Windows Command Prompt Console ~
Replies: 6
Views: 99

Re: Windows Command Prompt Console ~

Presses := 1 #IfWinActive, ahk_exe cmd.exe ~:: if (Presses == 1){ Send, {bs 1}`%USERPROFILE`% } else if (Presses == 2){ Length := StrLen("%USERPROFILE%") Send, {bs %Length%}%USERPROFILE% } else if (Presses == 3){ Length := StrLen(USERPROFILE) Send, {bs %Length%}~ } else { Send, ~ } Presses++ if (Pr...
by evilC
21 Feb 2019, 12:27
Forum: Ask For Help
Topic: Windows Command Prompt Console ~
Replies: 6
Views: 99

Re: Windows Command Prompt Console ~

If ( A_ThisHotKey = "~" ) is always true Goto % Key . %Key%Index WTF ?!?! What exactly are you trying to achieve here? "Key" is literal, and undefined, so will never do anything. Same deal with "Index" This code is syntactically identical to Goto % %Key% I also don't see why you are using a convolu...
by evilC
21 Feb 2019, 09:01
Forum: Ask For Help
Topic: Compactibility problem
Replies: 5
Views: 114

Re: Compactibility problem

Install AHK as Unicode 32-bit.
Just run the "Add Remove Programs" for AHK, it will let you re-pick the bitness.
I think some of the compile utils also allow you to pick - no matter what you choose when you install, all versions get put on disk.
by evilC
21 Feb 2019, 06:12
Forum: Gaming
Topic: pixel search help
Replies: 1
Views: 55

Re: pixel search help

Code: Select all

PixelSearch, x1, y1, 100, 100, 200, 200, 0xFF0000
if (!ErrorLevel){   ; If match found
    PixelSearch, x2, y2, % x1 - 1, % y1 - 1, % x1 + 1, % y1 + 1, 0x00FF00
}
by evilC
21 Feb 2019, 06:07
Forum: Ask For Help
Topic: Compactibility problem
Replies: 5
Views: 114

Re: Compactibility problem

I think the word is "Compatible" (Meaning will work with), not "Compactible" (Able to squash down).
When compiling, just use x86, that way it will work on all PCs
by evilC
20 Feb 2019, 16:13
Forum: Ask For Help
Topic: Change of Command Key to Joystick
Replies: 14
Views: 195

Re: Change of Command Key to Joystick

If the whole program only needs to send MButton when you press 1Joy1, then this code is all you need: #IfWinActive ahk_class ArmA 2 OA 1Joy1:: send {MButton down} Keywait, %A_ThisHotKey% Send {MButton up} return If this does not work, then most likely your problem is that you need to run the AHK scr...
by evilC
20 Feb 2019, 14:22
Forum: Gaming
Topic: Universal Control Remapper (UCR) - v0.1.22 28th Oct 2018
Replies: 980
Views: 249165

Re: Universal Control Remapper (UCR) - v0.1.22 28th Oct 2018

"how old are earth do I know which one is trigger or start?"

To tell what button number of your physical stick each button is:
Start -> joy.cpl
Preview the controller
Press a button on the controller
See which number lights up
by evilC
20 Feb 2019, 12:27
Forum: Ask For Help
Topic: Change of Command Key to Joystick
Replies: 14
Views: 195

Re: Change of Command Key to Joystick

Also, FYI, I dunno if you use all the functions of VAC (eg speaking back what you just did), but there are some things that my HotVoice library can do that VAC cannot, which you may find useful: Send joystick output (Using the linked library) Compound commands - with VAC, it seems like if you wanted...
by evilC
20 Feb 2019, 11:23
Forum: Ask For Help
Topic: Change of Command Key to Joystick
Replies: 14
Views: 195

Re: Change of Command Key to Joystick

Oh, hang on, upon re-reading of your post, I think I maybe got things the wrong way around. You want it so that when you hold a button on the joystick, it presses MButton on the keyboard? I see a number of issues with your script... 1) There are two MButton hotkeys: MButton::F12 and MButton:: Send {...
by evilC
20 Feb 2019, 07:31
Forum: Ask For Help
Topic: Help with CLR.ahk and 3rd-party DLLs
Replies: 10
Views: 250

Re: Help with CLR.ahk and 3rd-party DLLs

You're my kind of crazy :) Carry on :)
by evilC
20 Feb 2019, 07:27
Forum: Ask For Help
Topic: Change of Command Key to Joystick
Replies: 14
Views: 195

Re: Change of Command Key to Joystick

You cannot alter how windows sees a physical joystick - it is impossible programatically to press a button on your actual yoke. Also, AHK does not support pressing of joystick buttons natively, you need to use a 3rd-party driver such as vJoy, plus an AHK library to drive it. See CvJoyInterface for s...
by evilC
19 Feb 2019, 06:18
Forum: Gaming
Topic: Xbox 360 button in UCR
Replies: 1
Views: 44

Re: Xbox 360 button in UCR

It's not supported by UCR
I did find a variation of Lexikos' XInput library that was meant to support it (It's an undocumented feature in XInput) but I couldn't get it to work

BTW, UCR has it's own thread here: https://www.autohotkey.com/boards/viewtopic.php?f=19&t=12249

Go to advanced search