Search found 4785 matches

by evilC
25 Sep 2019, 08:31
Forum: Ask For Help
Topic: Passing a variable as a key to obtain an associative array value
Replies: 2
Views: 559

Re: Passing a variable as a key to obtain an associative array value

I don't see Description_IN_ARRAY[] being initialised anywhere, are you sure it's an array?
I see Engagement_IN_ARRAY being initialised, but don't see it being used anywhere
by evilC
11 Sep 2019, 13:32
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 159
Views: 72645

Re: .NET Framework Interop (CLR, C#, VB)

Thanks, how about maybe we create a repo on GitHub for CLR interop stuff where we can collect code snippets, tricks and tips?
Maybe also include some guides on how to set up Visual Studio .NET projects for easy use with AHK?
by evilC
11 Sep 2019, 12:14
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 159
Views: 72645

Re: .NET Framework Interop (CLR, C#, VB)

I recently noticed qwerty12's post about parsing a List<T> from .NET code and had a stab at writing a wrapper class to handle it all, this is what I came up with so far - basically it lets you Count(), MaxIndex() etc as well as enumerate a List<T> as if it were an AHK array: #include CLR.ahk code = ...
by evilC
06 Sep 2019, 07:24
Forum: Scripts and Functions
Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
Replies: 25
Views: 12040

Re: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)

There is no installation, AHK scripts do not need to be installed You cannot use it to call functions in other scripts, as AHK does not support this Code within an AHSD script creates a button on an SD device, which you then point at a function in that same script I am not sure if you can run multip...
by evilC
29 Aug 2019, 03:24
Forum: Scripts and Functions
Topic: CvJoyInterface - A new, class based vJoy library
Replies: 18
Views: 15733

Re: CvJoyInterface - A new, class based vJoy library

It says in the first post why I wrote another version. If you already have working code, no need to change
by evilC
23 Aug 2019, 16:28
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98622

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

v0.4.8 of AHI has been released! https://github.com/evilC/AutoHotInterception/releases/tag/v0.4.8 Fixed the bug @tmplinshi just reported Updated the Monitor app - there are now Copy buttons to copy the VID/PID of your device to the clipboard [Edit] I forgot to prefix the VID/PID with 0x, so I delete...
by evilC
23 Aug 2019, 11:55
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98622

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

Ohh, I think I maybe see the issue - it's passing true/false, but the GetDeviceIdFromHandle method uses a lookup table with 1/0 for keys. I am not sure what I was smoking when I wrote that Does this also fix it? [code] GetKeyboardIdFromHandle(handle, instance := 1) { return this.GetDeviceIdFromHandl...
by evilC
23 Aug 2019, 07:37
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98622

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

Did you unblock the DLLs?
What version of AHK are you using? If 64-bit, try 32-bit unicode
by evilC
20 Aug 2019, 10:50
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98622

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

installed driver (I think)
It should be very obvious if you did it right, you will get a response back from the command-line saying that install was successful.
Did you maybe just double-click the EXE instead of running it from a command-line?
by evilC
15 Aug 2019, 15:51
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98622

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

v0.4.6 has been released!
  • Added MoveCursor method to move the cursor to a specific position
    This is similar to the AHK MouseMove command
  • NumLock is now bindable
by evilC
14 Aug 2019, 06:45
Forum: Ask For Help
Topic: AHK works sporatically
Replies: 2
Views: 544

Re: AHK works sporatically

If an application only sees keys send by the script intermittently, Delete the line SendMode, Input and add the line SetKeyDelay, 0, 50 in it's place. The problem is that the game is polling for key state (Likely once every 50ms or so) and when it does not work, what is happening is that AHK is pres...
by evilC
05 Aug 2019, 04:42
Forum: Ask For Help
Topic: Are there other alternatives? (class_dd , winring0)
Replies: 2
Views: 497

Re: Are there other alternatives? (class_dd , winring0)

See AutoHotInterception, linked in my signature
by evilC
05 Aug 2019, 04:41
Forum: Ask For Help
Topic: Help adding GUI to my script. (script works, not with GUI)
Replies: 1
Views: 246

Re: Help adding GUI to my script. (script works, not with GUI)

Without code it would be pretty hard to help you
If you want a user-defined hotkeys system, I have a library that will do that for you here: https://www.autohotkey.com/boards/viewtopic.php?t=38651
by evilC
02 Aug 2019, 04:28
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98622

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

That's the Interception driver, which this library uses We tried to pay the money to get that upgraded version, but he would not sell for a one off fee - instead he set up a patreon account and asked for a monthly income and would release it after 6 months or so. You can see the conversation here: h...
by evilC
31 Jul 2019, 05:14
Forum: Ask For Help
Topic: Specify joystick ID number
Replies: 2
Views: 464

Re: Specify joystick ID number

The WinMM API (What AHK uses to read joysticks) does not support this - you can swap around IDs using PJP JoyIDs tho. One potential solution is to read the sticks via DirectInput instead - see JoystickWrapper for a DirectInput library for AHK. With JoystickWrapper, you select sticks using a GUID, wh...
by evilC
31 Jul 2019, 04:56
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: 15042

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

"there is no such dll in the download"
The copy step (Step 3) uses a file that you used in step 1 (Install interception), so if you are on step 3, this cannot possibly be true
by evilC
30 Jul 2019, 10:46
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: 15042

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

if (!state) is probably your problem. On a hold, state will be 1 when the hold triggers, then 0 when you release the key For a tap, state is always -1, which is logically true, so your Taps code will never trigger on a tap, but will trigger on a hold Your code structure should be more like this: My...

Go to advanced search