Search found 4411 matches

by evilC
Yesterday, 07:47
Forum: Ask For Help
Topic: Need help detecting a key pressed while in loop
Replies: 6
Views: 73

Re: Need help detecting a key pressed while in loop

Although it has to be said, that using a hotkey to set off a loop using a SetTimer -1 is not ideal. It is better practice to use the timer to handle the looping, something like this: #SingleInstance force IsSpace := 0 HitToggle := 0 CurrentDir := "Right" return Right:: Left:: Up:: Down:: CurrentDir ...
by evilC
Yesterday, 07:44
Forum: Ask For Help
Topic: Need help detecting a key pressed while in loop
Replies: 6
Views: 73

Re: Need help detecting a key pressed while in loop

#SingleInstance force HitToggle := 0 CurrentDir := "Right" return Right:: Left:: Up:: Down:: CurrentDir := A_ThisHotkey return Delete:: if (HitToggle := !HitToggle) SetTimer, Hit, -1 return Hit: While (HitToggle) { ControlSend, ahk_parent, {Space}, Warrior ControlSend, ahk_parent, {Space}, Poet sle...
by evilC
18 Jan 2019, 08:14
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 176
Views: 16092

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

@Sdentin Heyatszhem that behaviour would be expected for devices which are not regular USB. PS/2 devices, and built-in keyboards for laptops etc will quite possibly fall into this category Looking into it, I don't see how this is context mode specific The "Could not get Keyboard with VID 0x000, PID ...
by evilC
18 Jan 2019, 08:13
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 176
Views: 16092

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

FYI, for those interested, we are starting to try and reverse-engineer Interception to remove the 10 device limit. If you are one of those people who wants to see this happen, you can really help us out with testing, as I am not sure I have enough devices to push me over that limit. Please jump into...
by evilC
18 Jan 2019, 05:31
Forum: Ask For Help
Topic: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2
Replies: 18
Views: 537

Re: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2

FYI, swagfag's post did not cover AHK_H v1 AHK_H v1 is: 99% compatible with AHK_L v1 scripts (About the only issue I ever came across is an AHK_L script that used the variable name null , which is a reserved word in AHK_H) Has improved Gui functionality (Scrollbar support, auto-layout and resizing b...
by evilC
18 Jan 2019, 05:25
Forum: Ask For Help
Topic: Why can't the parameter of "LV_GetText" be "Clipboard"?
Replies: 7
Views: 153

Re: Why can't the parameter of "LV_GetText" be "Clipboard"?

Clipboard is a reserved variable, and holds (or sets) the contents of the clipboard.
I am not sure you can use it as an OutputVar
by evilC
15 Jan 2019, 05:17
Forum: Ask For Help
Topic: Making a hotkey assignment box
Replies: 4
Views: 135

Re: Making a hotkey assignment box

I do not understand what you mean by "I have two codes running". You can't (without special tricks, which I doubt you are using) have one script to control settings and another script consuming those settings If you want to rip bits out of AppFactory, then you are kind of on your own on that one, bu...
by evilC
14 Jan 2019, 05:53
Forum: Ask For Help
Topic: Making a hotkey assignment box
Replies: 4
Views: 135

Re: Making a hotkey assignment box

I am not sure that code snippet is what you want
If you want a decent replacement for the Hotkey GuiControl, that supports Joystick buttons, you want AppFactory
by evilC
12 Jan 2019, 08:02
Forum: Gaming
Topic: Sending a key press that games recognize
Replies: 3
Views: 138

Re: Sending a key press that games recognize

SetKeyDelay, 0, 50 Tells AHK to insert a 50ms sleep after pressing (But before releasing) each key.
Many games need something like that, else they do not recognize the key being pressed reliably
by evilC
10 Jan 2019, 13:05
Forum: Ask For Help
Topic: Help for camera rotate hotkey in Steel division game Topic is solved
Replies: 5
Views: 104

Re: Help for camera rotate hotkey in Steel division game Topic is solved

So what did you mean by " The script works, because when i type, the keys are modifed" ?
by evilC
09 Jan 2019, 08:19
Forum: Gaming
Topic: fast getpixelcolor ?
Replies: 3
Views: 176

Re: fast getpixelcolor ?

You are pointlessly searching stuff. PixelSearch, x, y, 780, 890, 1160, 890, 0xFFFFFF , 5, fast finds the x coordinate of the right-most white pixel Then PixelSearch, x2, y, x, 890, 1160, 890, 0x7F7F7F , 5, fast presumably is looking for the grey area after the white area, and starts searching at th...
by evilC
09 Jan 2019, 08:08
Forum: Gaming
Topic: Sending a key press that games recognize
Replies: 3
Views: 138

Re: Sending a key press that games recognize

What has DllCall got to do with sending keys? Why not use the Send command? Also, your code will not do anything (Apart from chewing lots of CPU doing nothing) because Run is always 0, so the Send command never gets executed #SingleInstance, Force SetKeyDelay, 0, 50 Run := 0 Loop { If (Run = 1) { Se...
by evilC
09 Jan 2019, 08:00
Forum: Ask For Help
Topic: Touchscreen Input?
Replies: 4
Views: 125

Re: Touchscreen Input?

There is no such hotkey as Click IMHO the "Click" command should be avoided, as it is largely superfluous. There is nothing that can be done with the Click command that cannot be done with Send and MouseMove AHK is not designed to work with absolute input, you will need to use Windows APIs or third-...
by evilC
09 Jan 2019, 07:47
Forum: Ask For Help
Topic: How to assign PF13 thru PF24 as Shift+PF1-12?
Replies: 43
Views: 858

Re: How to assign PF13 thru PF24 as Shift+PF1-12?

OK, so if the first script worked, that tells me that the AS/400 tool reacts to "synthetic" keys that do not appear to come from a keyboard (Which is how AHK synthesizes output). This means that we should probably *not* need AHI. I am unsure about how F13-24 are actually implemented - I have heard a...
by evilC
08 Jan 2019, 06:08
Forum: Ask For Help
Topic: How to assign PF13 thru PF24 as Shift+PF1-12?
Replies: 43
Views: 858

Re: How to assign PF13 thru PF24 as Shift+PF1-12?

What heppens if you run this script? Does pressing Tab behave exactly as if you physically pressed Shift+F1? SetKeyDelay, 0, 50 tab:: Send +{F1} return Try running the script as admin also. If it does *not* behave as if you physically pressed Shift+F1, then it doesn't sound like what you want is pos...
by evilC
08 Jan 2019, 05:55
Forum: Ask For Help
Topic: USB Barcode Capture Revisited
Replies: 20
Views: 380

Re: USB Barcode Capture Revisited

Something like this (Untested) would reduce a LOT of duplicate code and run-time pointless processing: #SingleInstance force Chars = 0123456789abcdefghijklmnopqrstuvwxyz!""$`%^&*()_+=-``\|,./;'#[]{}:@~<>? Loop, Parse, Chars { fn := Func("BarcodeHandler").Bind(A_LoopField) Hotkey, % "$~" A_LoopField,...
by evilC
08 Jan 2019, 05:13
Forum: Ask For Help
Topic: Touchscreen Input?
Replies: 4
Views: 125

Re: Touchscreen Input?

I don't think AHK allows you to get at absolute mouse input. You could get at the data using the RawInput API, or using my AutoHotInterception library (See link in Signature). However, these coordinates will be in the "global screen space", which is one 65k square. This then needs to be mapped to yo...
by evilC
08 Jan 2019, 04:56
Forum: Ask For Help
Topic: USB Barcode Capture Revisited
Replies: 20
Views: 380

Re: USB Barcode Capture Revisited

No, they just behave as if a keyboard typed the characters encoded in the barcode.
by evilC
07 Jan 2019, 14:38
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 176
Views: 16092

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

I don't think you actually need to reboot. I think all you need to do is replug your keyboard to force it to load the new driver.

Go to advanced search