Search found 4785 matches

by evilC
29 Jul 2019, 10:34
Forum: Ask For Help
Topic: Need Help with Surface Pen (4 functions for 1 Button, including Toggles)
Replies: 2
Views: 973

Re: Need Help with Surface Pen (4 functions for 1 Button, including Toggles)

Forgetting for the moment about your issues detecting multi-tap, are you saying that the surface pen is sending normal mouse left/right/middle click? If so, I take it that you wish to rebind these actions ONLY when coming from the surface pen, but NOT when coming from your normal mouse? If this is t...
by evilC
25 Jul 2019, 05:04
Forum: Ask For Help
Topic: XBOX One Controller
Replies: 8
Views: 13040

Re: XBOX One Controller

What on earth makes you think XINPUT_GAMEPAD_A:: is a valid hotkey, or a valid syntax for the Send command? AHK simply cannot send XInput, period, let alone using that syntax for input You are literally saying "Why does this feature that I just made up not work?" Because you made it up and it is not...
by evilC
25 Jul 2019, 04:50
Forum: Ask For Help
Topic: Wait function Topic is solved
Replies: 11
Views: 1156

Re: Wait function Topic is solved

Oops, slight typo If ( ErrorLevel == 1 ) ; Found should be If ( ErrorLevel == 0 ) ; Found
Also, AFAIK, RGB mode is neither faster nor slower than BGR mode.
by evilC
24 Jul 2019, 14:15
Forum: Ask For Help
Topic: Wait function Topic is solved
Replies: 11
Views: 1156

Re: Wait function Topic is solved

Your first if just checks if ErrorLevel is "true", which both 1 (Found) and 2 (Error) are The second IF check is also always true as you check if something is itself: If ( p_DesiredColor = p_DesiredColor ) I think you want If ( ErrorLevel == 2 ) ; Error Return ( p_ReturnColor ? p_DesiredColor : 1 ) ...
by evilC
24 Jul 2019, 12:47
Forum: Ask For Help
Topic: Wait function Topic is solved
Replies: 11
Views: 1156

Re: Wait function Topic is solved

You can return whatever you like from your own function, and these values do not need to be the same as the ERRORLEVEL codes from PixelSearch Your PixelSearch seems wrong though, surely instead of l_OutputColor you want p_DesiredColor? As you have a bunch of parameters for the function anyway, may a...
by evilC
24 Jul 2019, 12:24
Forum: Ask For Help
Topic: Wait function Topic is solved
Replies: 11
Views: 1156

Re: Wait function Topic is solved

Maybe you want the PixelSearch command?
by evilC
24 Jul 2019, 07:18
Forum: Ask For Help
Topic: Wait function Topic is solved
Replies: 11
Views: 1156

Re: Wait function Topic is solved

Most of the PixelGetColor commands will do nothing PixelGetColor, l_OutputColor, %p_PosX%, %p_PosY%, %p_GetMode% does not in any way check if a certain pixel is a certain colour, all it does is get the colour of a pixel at a certain coordinate and store it in a variable. The lines below... If ( Erro...
by evilC
24 Jul 2019, 06:11
Forum: Ask For Help
Topic: Wait function Topic is solved
Replies: 11
Views: 1156

Re: Wait function Topic is solved

All those ERRORLEVEL checks make little sense to me. ERRORLEVEL is only likely to be true if you do something like checking colour of a pixel that is not a valid coordinate. It's nothing to do with whether the pixel is the colour you are look for, for example, because that's not what PixelGetColor d...
by evilC
24 Jul 2019, 06:06
Forum: Ask For Help
Topic: Help With Random WSAD Keypresses
Replies: 5
Views: 730

Re: Help With Random WSAD Keypresses

HTWingNut wrote:
23 Jul 2019, 11:21
Save it as an AHK file, compile it, and run it, and it does... nothing.

Do I have to do something special, or how do I know that it's actually running?
Press the q key to send a random character
by evilC
23 Jul 2019, 05:46
Forum: Gaming
Topic: SetKeyDelay problem in DS3 autofarm script
Replies: 1
Views: 503

Re: SetKeyDelay problem in DS3 autofarm script

It's quite a lot of code, not really analysed it much, but there appears to be a lot of loops in hotkeys. Are you expecting any of these loops to be running at the same time? Cos that won't work and may exhibit odd behaviour such as "stuck" keys. If you want a robust way to perform ongoing repeated ...
by evilC
18 Jul 2019, 14:21
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98990

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

AHI 0.4.5 has been released

### Added
- Added TabletButtons demo for converting a graphics tablet into a button box
### Fixed
- Absolute Mode mouse movement subscriptions now work again
by evilC
09 Jul 2019, 09:05
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98990

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

v0.4.4 has been released! Please note that this also contains changes from the v0.4.3 release, which was not announced on this thread as it was experimental. @k1ngjosh - this release includes a new SetStatus function that you can call to turn on / off subscriptions. Example usage (The F12 hotkey tur...
by evilC
08 Jul 2019, 11:19
Forum: Scripts and Functions
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 40
Views: 15179

Re: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick button

I have updated the documentation on the GitHub site to attempt to clarify what the various parameters (tapTime and holdTime) do, and how they affect the logic.
I also added some diagrams to try and make it as clear as possible. Feedback welcomed!
by evilC
03 Jul 2019, 04:10
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98990

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

KeyEvent(state){ global AHI, keyboardId static cs if (!state){ cs := 0 return } if (cs) return cs := state AHI.SendKeyEvent(keyboardId, GetKeySC("j"), 1) AHI.SendKeyEvent(keyboardId, GetKeySC("j"), 0) AHI.SendKeyEvent(keyboardId, GetKeySC("o"), 1) AHI.SendKeyEvent(keyboardId, GetKeySC("o"), 0) AHI....
by evilC
01 Jul 2019, 16:47
Forum: Development
Topic: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!
Replies: 51
Views: 43352

Re: [AHK Test Build - 5th Nov 2015] Scrollbars, GuiControl Auto-Position+Size system, and more!

All the features made it into AHK_H, it never made it into a proper AHK_L release
by evilC
01 Jul 2019, 16:13
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 110
Views: 28377

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

HotVoice 0.1.4 has been released! The demo has been greatly improved, and now supports selecting language The demo also now has commands for French as well as English, and should not crash if recognizer 0 is not English IF YOU SPEAK A NON-ENGLISH LANGUAGE, PLEASE HELP ME UPDATE THE DEMO WITH OTHER L...
by evilC
17 Jun 2019, 07:15
Forum: Scripts and Functions
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 40
Views: 15179

Re: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick button

THM on it's own will not detect two long presses followed by a short press, you would have to code that yourself. Here is how to detect multi-tap and mult-tap followed by long-press #include Lib\TapHoldManager.ahk #SingleInstance force thm := new TapHoldManager() thm.Add("4", Func("MyFunc")) MyFunc(...
by evilC
17 Jun 2019, 07:05
Forum: Ask For Help
Topic: Remap joystick (axis) to turn around how to use
Replies: 20
Views: 3002

Re: Remap joystick (axis) to turn around how to use

None of the releases on the vJoy site use test mode
https://sourceforge.net/projects/vjoystick/
by evilC
08 Jun 2019, 14:22
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98990

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

v0.4.2 has been released
https://github.com/evilC/AutoHotInterception/releases/tag/v0.4.2
This fixes a major bug with mouse button support

There is slightly more processing going on for mouse buttons - please let me know if you see degradation in performance / responsiveness

Go to advanced search