Search found 4586 matches

by evilC
12 Mar 2019, 06:57
Forum: Ask For Help
Topic: Need help with Cancel Sleep Function
Replies: 1
Views: 201

Re: Need help with Cancel Sleep Function

You can't "cancel" a sleep
by evilC
12 Mar 2019, 06:33
Forum: Ask For Help
Topic: Keypad (half-a-keyboard) to vJoy buttons Topic is solved
Replies: 8
Views: 366

Re: Keypad (half-a-keyboard) to vJoy buttons Topic is solved

Congratulations on managing to use so many of my libraries in one script! Some things that seem wrong: if (btnStates![btn]) - dunno what the ! is meant to be achieving Also a bunch of places you put code in the functions using this code, you put your code before the repeat check. For example, your i...
by evilC
11 Mar 2019, 09:31
Forum: Ask For Help
Topic: Keywait prevents other key input
Replies: 11
Views: 365

Re: Keywait prevents other key input

Using KeyWait in a hotkey is a recipe for disaster, and there is no reason to be using it in this scenario anyway, just use an up event hotkey

Code: Select all

RCtrl & SC52:: 	;0 
	Send {MButton down}
	return

VK60 up::
	Send {MButton up}
	return
by evilC
11 Mar 2019, 09:25
Forum: Gaming
Topic: hot-swap between 2 AHK.exe files Topic is solved
Replies: 4
Views: 211

Re: hot-swap between 2 AHK.exe files Topic is solved

There's no point in using two AHK scripts, use one AHK script and add a toggle to switch between two mappings using an #if block

Code: Select all

Atv :-= 0
return

F12::Atv := !Atv	; Toggle mappings with F12

#if atv	; ATV mappings
a::b
c::d
#if !atv	; Non-ATV mappings
a::c
c::e
#if
by evilC
08 Mar 2019, 09:35
Forum: Ask For Help
Topic: Press key to play macro that is stored in mouse memory
Replies: 1
Views: 87

Re: Press key to play macro that is stored in mouse memory

You cannot speak to the mouse at all, you can only receive data from it.
You have to take the macro out of the mouse
by evilC
08 Mar 2019, 07:51
Forum: Gaming
Topic: Help on background gaming
Replies: 3
Views: 198

Re: Help on background gaming

Oops, wrong code

Code: Select all

F6::
WinGet, programid, ID, Life is Feudal: MMO @ Godenland (Standard ruleset World)
msgbox % "ID: " programid
by evilC
08 Mar 2019, 07:48
Forum: Gaming
Topic: Is there a Targeted window autoclicker that works in ROBLOX?
Replies: 2
Views: 182

Re: Is there a Targeted window autoclicker that works in ROBLOX?

The problem is not "Is there a targeted clicker that works with Roblox?", it's "Does Roblox support targeted clickers?", to which the answer appears to be No (Based upon google searches, where I have never seen one report of it working). ie it not working is most likely not the fault of AHK doing so...
by evilC
07 Mar 2019, 07:18
Forum: Gaming
Topic: Help on background gaming
Replies: 3
Views: 198

Re: Help on background gaming

F6:: WinGet, programid,List, Life is Feudal: MMO @ Godenland (Standard ruleset World) msgbox % "ID: " programid Hit F6, does the messagebox contain an ID? If not, you are not targetting the correct window. Also, are you SURE that the game supports this? Many games do not With ControlSend and games ...
by evilC
06 Mar 2019, 12:05
Forum: Ask For Help
Topic: Microsoft Sculpt keyboard, Windows 8.1 and function keys - need help
Replies: 6
Views: 179

Re: Microsoft Sculpt keyboard, Windows 8.1 and function keys - need help

OK, so it seems like maybe it really does send those key combos.
From the comments, it also appears like you are not alone in it stopping working on Win8

You can see what keys are being sent using the AHK KeyHistory
by evilC
06 Mar 2019, 11:20
Forum: Ask For Help
Topic: Microsoft Sculpt keyboard, Windows 8.1 and function keys - need help
Replies: 6
Views: 179

Re: Microsoft Sculpt keyboard, Windows 8.1 and function keys - need help

Ah, now it makes a ton more sense It just so happens the one snippet you posted is the one line where there is an error. for that one remapping, the SendInput is on the line above the hotkey, not below However, I still do not see how it would do what you want on it's own in the case of F5-F9. F1-F4 ...
by evilC
06 Mar 2019, 10:58
Forum: Ask For Help
Topic: Microsoft Sculpt keyboard, Windows 8.1 and function keys - need help
Replies: 6
Views: 179

Re: Microsoft Sculpt keyboard, Windows 8.1 and function keys - need help

That script sends F5 once, (On startup, not in response to any key press), then Blocks the Shift-F21 combo It does not remap one key to another in any way (All it does is stop Shift-F21 from doing anything), so my guess is you are mistaken and this script was not performing the entire job on your ol...
by evilC
06 Mar 2019, 05:56
Forum: Ask For Help
Topic: SetTimer - Func & Bind Topic is solved
Replies: 10
Views: 437

Re: SetTimer - Func & Bind Topic is solved

Also note that if you want to stop a timer from within it's own function, you can do SetTimer, , Off

Code: Select all

MyTimer(obj) {
   obj.counter++
   If ( obj.counter = 15 )
      SetTimer, , off ; <-- Works as long as MyTimer was called by SetTimer
}
by evilC
06 Mar 2019, 05:47
Forum: Wish List
Topic: A_ThisTimer Topic is solved
Replies: 4
Views: 292

A_ThisTimer Topic is solved

Is this feasible? For any given target of SetTimer (Label, function or boundfunc), then using SetTimer, % A_ThisTimer, Off inside it will turn it off. fn := Func("MyFunc").Bind(1) SetTimer, % fn, 100 return MyFunc(var){ if (var) SetTimer, % A_ThisTimer, Off } Ah, I just noticed you can actually do i...
by evilC
06 Mar 2019, 05:45
Forum: Ask For Help
Topic: SetTimer - Func & Bind Topic is solved
Replies: 10
Views: 437

Re: SetTimer - Func & Bind Topic is solved

I would not expect the timer to stop, as timer appears to be out of scope (Unless of course it is super-global)

Code: Select all

MyTimer(obj) {
   global timer
   obj.counter++
   If ( obj.counter = 15 )
      SetTimer % timer, off ; or SetTimer % timer, -100
}
by evilC
05 Mar 2019, 10:51
Forum: Ask For Help
Topic: SetTimer - Func & Bind Topic is solved
Replies: 10
Views: 437

Re: SetTimer - Func & Bind Topic is solved

0) A timer value of 1 will not fire every 1ms, it will fire every ~15ms (Due to minimum timer granularity) As I said, SetTimer fires **for the first time** after the specified period. If you want to "fire it immediately", **just call what the timer would call**, like so: fn := Func("MyTimer").Bind(A...
by evilC
05 Mar 2019, 07:41
Forum: Ask For Help
Topic: SetTimer - Func & Bind Topic is solved
Replies: 10
Views: 437

Re: SetTimer - Func & Bind Topic is solved

1) No. SetTimer is a command, not a function, and as such has no return value The timer function is being called asynchronously, and as such there is no concept of a return value 2) No, because you did not specify a negative value for the timer. In fact, you specified no value at all, you just speci...
by evilC
05 Mar 2019, 07:27
Forum: Gaming
Topic: help keystroke
Replies: 1
Views: 157

Re: help keystroke

The technique you have there (Hotkey starting a GetKeyState loop) will not work for two keys held at the same time (Because only one loop can run at one time) You need to use SetTimer 18 is neither 180ms nor 1.8ms, it is 18ms Use this coding pattern instead. To duplicate for the 2 key, change State1...
by evilC
05 Mar 2019, 07:16
Forum: Ask For Help
Topic: new to this and need help with a KeyPad
Replies: 7
Views: 243

Re: new to this and need help with a KeyPad

WRT your numberpad - what does it natively send? Is it just a normal numberpad? If so, all you need to do is use the AHI monitor app to find the VID and PID (USB identifiers) for your numberpad. Given a VID of 0x04F2 and a PID of 0x0112, the following code would remap Numpad1 to Control-A, whilst no...
by evilC
05 Mar 2019, 07:01
Forum: Ask For Help
Topic: new to this and need help with a KeyPad
Replies: 7
Views: 243

Re: new to this and need help with a KeyPad

LUAMacros is absolutely nothing to do with AHK. Just because LTT uses a technique, doesn't mean it is a good technique. I have tried warning them (Specifically Taran) that some of the techniques they use are stupid but he just doesn't seem to get it and insists on using his "Intercept" library which...
by evilC
04 Mar 2019, 13:10
Forum: Forum Issues
Topic: fix this!!!
Replies: 65
Views: 3185

Re: fix this!!!

https://support.cloudflare.com/hc/en-us/articles/203366080-Why-do-I-see-a-captcha-or-challenge-page-Attention-Required-trying-to-visit-a-site-protected-by-Cloudflare-as-a-site-visitor- I have verified that (1) is not the case, I know that (2) is not the case (All of UK is not banned), so that only l...

Go to advanced search