Search found 4586 matches

by evilC
01 Apr 2019, 13:20
Forum: Ask For Help
Topic: If statements too slow...
Replies: 27
Views: 583

Re: If statements too slow...

In order to debug what is happening, I would recommend some form of logging. Tooltip or msgbox are maybe not the best tool for the job in this case, I would maybe recommend outputting to a debug log. If you use SciTE or AHKStudio, those should have a debug stream viewer included, else you can use th...
by evilC
01 Apr 2019, 13:09
Forum: Ask For Help
Topic: If statements too slow...
Replies: 27
Views: 583

Re: If statements too slow...

D'oh, yeah, I see now
What does arduino_read() return if more than one key was held since the last iteration, ie does it only ever return the code for one key?
by evilC
01 Apr 2019, 11:43
Forum: Ask For Help
Topic: If statements too slow...
Replies: 27
Views: 583

Re: If statements too slow...

Send % keys[arduino_read()] this presses AND RELEASES the key.
It is therefore impossible to do multikey combos with this code (Because you cannot hold any of the keys coming from the arduino)
Your arduino code needs to send press and release events, not just press events
by evilC
01 Apr 2019, 10:35
Forum: Ask For Help
Topic: Listen to keystrokes during script execution
Replies: 5
Views: 174

Re: Listen to keystrokes during script execution

You would need to declare a hotkey to every key on the keyboard. When wishing to send input to an inactive window, the first port of call should be the ControlSend command. Be aware though that ControlSend does not work with all apps To bind a hotkey to all keys, you can use this code: #SingleInstan...
by evilC
01 Apr 2019, 10:29
Forum: Ask For Help
Topic: Need help with clicking through Firewall screen
Replies: 7
Views: 218

Re: Need help with clicking through Firewall screen

I don't think windows will let you issue synthetic input while at a security type screen. If you wish to issue non-synthetic input, you could use AutoHotInterception (see link in sig). AHI *can* move the mouse, but only via "Raw" signals - there is no such thing as MouseMove (To specific on-screen c...
by evilC
01 Apr 2019, 10:26
Forum: Ask For Help
Topic: If statements too slow...
Replies: 27
Views: 583

Re: If statements too slow...

SkinFaze's solution is great, but it might be worth chucking a sleep in that while loop, else it may consume quite a bit of CPU.
Even better would be to use SetTimer
by evilC
29 Mar 2019, 06:03
Forum: Ask For Help
Topic: trying to prevent a function from running more than once at a time
Replies: 22
Views: 649

Re: trying to prevent a function from running more than once at a time

i would like to be able to press f1 to start the function and if i press f1 again while it is running the f1 will not start it a 2nd time This is what your existing code does. A hotkey will not fire if the thread for the previous fire of that hotkey has not finished yet. So the problem is not what ...
by evilC
29 Mar 2019, 05:54
Forum: Gaming
Topic: Need Help in crossfire game
Replies: 8
Views: 917

Re: Need Help in crossfire game

I worked that much out from the thread title...
by evilC
28 Mar 2019, 05:30
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 218
Views: 24067

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

Included monitor app doesn't capture synthesized mouse signal. ... if synthesized signal is perfectly same with original hardware signal, should it be captured by monitor app? No, synthesized input should not be seen by the app. The app shows what Interception sees, and it does not see what it sends
by evilC
23 Mar 2019, 07:08
Forum: Gaming
Topic: Need Help in crossfire game
Replies: 8
Views: 917

Re: Need Help in crossfire game

No idea what that even is...
by evilC
22 Mar 2019, 09:32
Forum: Forum Issues
Topic: Notifications bug
Replies: 3
Views: 177

Re: Notifications bug

Ah, OK, if there is a logical explanation for it, then no biggie
by evilC
22 Mar 2019, 06:34
Forum: Forum Issues
Topic: Notifications bug
Replies: 3
Views: 177

Notifications bug

Something seems wrong here:
I got these notifications:
Image

But I am the last poster
Image

The notifications are also from before when I made my post - I posted at 10:20, and the notifications are from 10:10 and 9:56
by evilC
22 Mar 2019, 05:58
Forum: Ask For Help
Topic: Writing AHK Interpreters for Mac - Any plans for the future / current projects? And other Qs...
Replies: 8
Views: 341

Re: Writing AHK Interpreters for Mac - Any plans for the future / current projects? And other Qs...

SOTE wrote:
22 Mar 2019, 05:42
I don't think that's true, because that is looking at the AutoHotkey language as equivalent to the C++ interpreter for the Windows OS.
There is no such thing as a C++ interpreter, C++ is compiled

Cross-platform AHK has been tried before (See IronAHK) and didn't really get anywhere
by evilC
22 Mar 2019, 05:33
Forum: Ask For Help
Topic: Writing AHK Interpreters for Mac - Any plans for the future / current projects? And other Qs...
Replies: 8
Views: 341

Re: Writing AHK Interpreters for Mac - Any plans for the future / current projects? And other Qs...

AHK is basically a wrapper around the Win32 APIs
As such, it's fundamentally pointless to try and implement it on Mac, because most of the mechanisms it uses simply don't exist on Mac
by evilC
22 Mar 2019, 05:28
Forum: Ask For Help
Topic: Issues with toggling(mousewheelup)
Replies: 5
Views: 167

Re: Issues with toggling(mousewheelup)

If GetKeyState("CapsLock", "t") { Send ve Sleep 200 } Else If GetKeyState("CapsLock", "t") ; <---- Cannot possibly be true If GetKeyState("NumLock", "t") ; <--- Unreachable code Clearly this code is not reachable. What you are saying is "If this is true, then do this, otherwise if this is true...."
by evilC
22 Mar 2019, 05:25
Forum: Gaming
Topic: Trying to fix a slight delay that occurs with key bindings
Replies: 1
Views: 119

Re: Trying to fix a slight delay that occurs with key bindings

The initial pause is caused by key repeat.
Go into notepad, hold any key and observe what happens.
You get one key immediately, followed by a slight pause, then it repeats quite quickly
If you want to get rid of the initial pause, you need to completely rewrite the script and use SetTimer instead
by evilC
22 Mar 2019, 05:19
Forum: Ask For Help
Topic: How to get different outputs on multiple key-presses Topic is solved
Replies: 9
Views: 366

Re: How to get different outputs on multiple key-presses Topic is solved

Here is how to have it abort at the 2nd press: NUMPAD3:: keyCount++ if (keyCount == 2){ SetTimer, action, off GoSub, action } else { SetTimer, action, -300 } return action: if (keycount == 1) { Send b } else if (keycount == 2) { Send c } keycount = 0 return Here is the same thing done with my TapHol...
by evilC
21 Mar 2019, 09:03
Forum: C#
Topic: POC: RawInput mouse via C# CLR
Replies: 23
Views: 7116

Re: POC: RawInput mouse via C# CLR

I don't know much about the Surface Dial, but the short answer is No - this will not *natively* support the dial. What I mean by this is that the dial will likely be a HID device natively, sending dial-specific signals to the PC. In order to support it natively, you could possibly use AHKHID. Howeve...
by evilC
21 Mar 2019, 08:45
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 218
Views: 24067

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

Ahh, I see, I will need to look into that to see if I can work out why it may be happening.
OnContextCallback should be called before and after each key event (Before press, after press, before release, after release)
by evilC
21 Mar 2019, 08:08
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 218
Views: 24067

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

Interception will not see anything that AHK sends, as AHK only synthesizes input at the OS level, and Interception sits below that at the driver level. Hotkey with ContextManager is not always reliable, it quickly resets the IsActive parameter Not sure what you are saying here - once in the AHK hotk...

Go to advanced search