Search found 4233 matches

by evilC
20 Jul 2018, 04:15
Forum: Ask For Help
Topic: Store/retrieve Object to/from file
Replies: 5
Views: 126

Re: Store/retrieve Object to/from file

ObjDump / Load is maybe overkill if all you want to do is preserve the data in objects.
You may just be fine with Coco's JSON lib: https://autohotkey.com/boards/viewtopic.php?t=627
by evilC
19 Jul 2018, 14:09
Forum: Ask For Help
Topic: how to send paste command Topic is solved
Replies: 7
Views: 868

Re: how to send paste command Topic is solved

Ctrl+V works in the command prompt of Win10
by evilC
18 Jul 2018, 10:25
Forum: Ask For Help
Topic: Generate 100+ scripts for a Elgato Stream Deck Soundpad
Replies: 4
Views: 107

Re: Generate 100+ scripts for a Elgato Stream Deck Soundpad

Outbid already :(
I did have some guy saying he would be willing to loan me one so I could code for it, but I forget who it was, would have to try and get back in touch.
by evilC
18 Jul 2018, 06:27
Forum: Ask For Help
Topic: Generate 100+ scripts for a Elgato Stream Deck Soundpad
Replies: 4
Views: 107

Re: Generate 100+ scripts for a Elgato Stream Deck Soundpad

Been meaning to pick up a StreamDeck for a while, and write something using it's API.
I just put a bid of £80 for one in an Ebay auction, ends Sunday.
by evilC
17 Jul 2018, 17:08
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 142
Views: 6811

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

The AHK classes are not designed to be disposed, but you could maybe call Dispose() on the instance inside the AHK wrapper eg MonitorWrapper.Instance.Dispose() That will kill the Monitor's poll thread and stop it filtering input. https://github.com/evilC/AutoHotInterception/blob/master/C%23/...
by evilC
17 Jul 2018, 13:55
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 140
Views: 32018

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

In the Ctor, the 2nd param is a GumboWrapperOptions class, which is here: https://github.com/rgripper/GumboBindings/blob/master/GumboBindings/Gumbo.Bindings/Wrappers/GumboWrapper.cs#L11 Could you not create one of those? In HotVoice I have factory methods that return classes , and the AHK code can q...
by evilC
17 Jul 2018, 13:10
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 140
Views: 32018

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

I have certainly seen instances where x64 AHK does not seem to like loading x86 DLLs, so further to what Lexikos said, if you haven't already, try x86 AHK If memory serves actually, when I came across something similar, it was when my AHK code was loading my C# Interception wrapper via CLR, then my ...
by evilC
16 Jul 2018, 07:42
Forum: Ask For Help
Topic: AutoHotkey does not work with Eclipse Photon
Replies: 2
Views: 48

Re: AutoHotkey does not work with Eclipse Photon

If hotkeys do not trigger when in an application, then run the AHK script as admin.
If you need the script to always run as admin, see RunAsTask
by evilC
16 Jul 2018, 07:32
Forum: Ask For Help
Topic: ahk only for a specific process
Replies: 1
Views: 46

Re: ahk only for a specific process

See #IfWinActive, you want ahk_exe gta_sa.exe for the WinTitle
by evilC
13 Jul 2018, 10:34
Forum: Gaming
Topic: While loop when button is held down
Replies: 3
Views: 75

Re: While loop when button is held down

If your boss said to you "Stack shelves while" and did not finish the sentence, you would be clear on when to stop?
by evilC
13 Jul 2018, 10:31
Forum: Gaming
Topic: Spam button after 100 ms delay?
Replies: 1
Views: 105

Re: Spam button after 100 ms delay?

If you want one script with two spam loops in it, you cannot use a While GetKeyState() loop
AHK can only run one loop at one time.
You would need to use SetTimer instead.

This doubly applies if you want to do long press type functionality
by evilC
13 Jul 2018, 03:49
Forum: Gaming
Topic: Extra mouse buttons? Confused
Replies: 2
Views: 65

Re: Extra mouse buttons? Confused

Windows only supports 5 mouse buttons. If your mouse has > 5 buttons, it needs to come with software so you can give them a function.
If you do not give your mouse buttons a function, they will be unreadable in AHK
by evilC
11 Jul 2018, 07:54
Forum: Ask For Help
Topic: how to make the function name as the variable and put in the array?
Replies: 1
Views: 39

Re: how to make the function name as the variable and put in the array?

How to store a function as a variable: fn := Func("SomeFunc") fn.Call(1) return SomeFunc(blah){ MsgBox % blah } If you need to store a function plus passed parameters as a variable: fn := Func("SomeFunc").Bind("My Bound Text") fn.Call(1) return SomeFunc(boundText, blah)...
by evilC
11 Jul 2018, 07:50
Forum: Ask For Help
Topic: Compiled script run as admin
Replies: 1
Views: 41

Re: Compiled script run as admin

The normal RunAsTask does not seem to work properly with compiled scripts.
See my fix here: https://autohotkey.com/boards/viewtopic ... 33#p113933
by evilC
09 Jul 2018, 08:19
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 142
Views: 6811

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

In what topic? You mean when trying to unload the monitor, or unsubscribing?
Unsubscribing would be easy - all subscriptions are held in a Dictionary (array), I would just need to delete the subscription from the array.
by evilC
09 Jul 2018, 08:03
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 142
Views: 6811

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

Currently, yes, but I don't think it would be too hard to implement.

Added enhancement request #20
by evilC
09 Jul 2018, 07:31
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 51
Views: 2624

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

It can be debugged via the API, but HotVoice does not display it until it is recognized. How high is the slider moving when you speak? If it is not getting much volume, it might not be that reliable. I find that with most mics, I need to crank the input level to full and/or enable "Mic Boost&qu...
by evilC
09 Jul 2018, 07:22
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 142
Views: 6811

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

The Monitor was never designed to be loaded / unloaded dynamically

I will look into the NumLock issue and the sending wheel when I get a chance - in the meantime, I have raised issues #18 and #19
by evilC
09 Jul 2018, 07:09
Forum: Gaming
Topic: Trying to get keystrokes and simultaneous mouse actions on different circumstances... to no avail. Topic is solved
Replies: 8
Views: 151

Re: Trying to get keystrokes and simultaneous mouse actions on different circumstances... to no avail. Topic is solved

Doing Send {Blind}l with no sleep in-between will most likely result in there being no delay between the release and the next press - many games will not recognize a key that is released then immediately re-pressed as having ever been released at all. Often you need 20-50ms for the game to register ...

Go to advanced search