Search found 4586 matches

by evilC
15 Apr 2019, 05:20
Forum: Ask For Help
Topic: Blocking mouse movement on the button
Replies: 3
Views: 83

Re: Blocking mouse movement on the button

Seeing as you are using mouse_event DLLCall, I am assuming that the game is responding to mouse delta movement, not mouse cursor movement. AHK's BlockInput command will have no effect in this instance, you need to use low level mouse hooks, which AHK does not support natively. Or AutoHotInterception...
by evilC
14 Apr 2019, 12:37
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 72
Views: 6503

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

Hmm,, I am not sure how you would handle that case
Rather than move [x|y], fave you tried [move|move x|move y] ?
by evilC
10 Apr 2019, 04:42
Forum: Ask For Help
Topic: Microsoft Surface Dial - RadialController Class
Replies: 1
Views: 49

Re: Microsoft Surface Dial - RadialController Class

If Windows.UI.Input is anything like Windows.Gaming.Input, then you will not receive input when your script is not the active application
If you can get any C# code working, I can show you how to integrate it with AHK.
by evilC
06 Apr 2019, 14:56
Forum: Gaming
Topic: Multiple buttons spam Topic is solved
Replies: 9
Views: 281

Re: Multiple buttons spam Topic is solved

oops, corrected
by evilC
05 Apr 2019, 17:39
Forum: Gaming
Topic: Multiple buttons spam Topic is solved
Replies: 9
Views: 281

Re: Multiple buttons spam Topic is solved

Although that technique will get a little cumbersome as you add more. It's pretty pointless having multiple toggle values etc if all you only ever want one to be active at once KeyToSpam := 0 TimerRunning := 0 $1::SetSpam(1) $2::SetSpam(2) $3::SetSpam(3) SetSpam(key){ global TimerRunning, KeyToSpam ...
by evilC
05 Apr 2019, 15:45
Forum: Gaming
Topic: Multiple buttons spam Topic is solved
Replies: 9
Views: 281

Re: Multiple buttons spam Topic is solved

I said set it to false, not invert it

Code: Select all

$1::
Toggle1 := !Toggle1
if (Toggle1){
	SetTimer, Spam2, Off
	SetTimer, Spam1, 100
	Toggle2 := 0
	GoSub, Spam1
} else {
	SetTimer, Spam1, Off
}
return
by evilC
05 Apr 2019, 15:30
Forum: Ask For Help
Topic: Settimer Ctrl + Arrow keys
Replies: 6
Views: 125

Re: Settimer Ctrl + Arrow keys

I'm not even sure hit^+Right is a valid label name, or whether hit^+Right is not trying to do maths
I would advise against symbols in label names
by evilC
05 Apr 2019, 13:43
Forum: Ask For Help
Topic: Settimer Ctrl + Arrow keys
Replies: 6
Views: 125

Re: Settimer Ctrl + Arrow keys

SetTimer,hit^+Left Down,840 is wrong. hit^+Left Down is not a valid label name, as it has a space, plus the label is called hit^+Left anyway
by evilC
05 Apr 2019, 12:44
Forum: Gaming
Topic: Multiple buttons spam Topic is solved
Replies: 9
Views: 281

Re: Multiple buttons spam Topic is solved

Aah yeah the 2 spammer will need to set Toggle1 to false too
by evilC
05 Apr 2019, 10:16
Forum: Gaming
Topic: Multiple buttons spam Topic is solved
Replies: 9
Views: 281

Re: Multiple buttons spam Topic is solved

The reason that you cannot just hit 2 to stop the 1 toggle is twofold: 1) All your spam hotkeys use the same toggle variable 1:: Toggle := !Toggle While Toggle{ Send 1 sleep 100 } return 2:: Toggle := !Toggle While Toggle{ Send 2 sleep 100 } return Should be: 1:: Toggle1 := !Toggle1 While Toggle1{ S...
by evilC
05 Apr 2019, 10:08
Forum: Ask For Help
Topic: Settimer Ctrl + Arrow keys
Replies: 6
Views: 125

Re: Set timber Ctrl + Arrow keys

Send, {^+Left Down} The ^+ needs to be BEFORE the {
by evilC
04 Apr 2019, 11:32
Forum: Ask For Help
Topic: Problem with Gui hwnd
Replies: 4
Views: 172

Re: Problem with Gui hwnd

if WinExist ("Ahk_id" D2) Here you are not calling the WinExist function, as there is a space between WinExist and the bracket.
It always evaluates true
by evilC
03 Apr 2019, 04:30
Forum: Ask For Help
Topic: Problem with Gui hwnd
Replies: 4
Views: 172

Re: Problem with Gui hwnd

Are you 100% sure line does not contain more than one day?
With your code, if line contained Monday`n Tuesday, I would expect exactly the behavior you describe

Your checks are all stand-alone IF blocks, not IF/ELSE, so there is nothing stopping all of them being true for one line
by evilC
03 Apr 2019, 04:14
Forum: Gaming
Topic: xbox 360 controller buttons
Replies: 1
Views: 117

Re: xbox 360 controller buttons

Read the sticky at the top of the forum
TLDR, No, it's not possible with an xbox controller, but it is possible with all other controllers
by evilC
02 Apr 2019, 09:42
Forum: Ask For Help
Topic: Adjust vertical mouse sensitivity?
Replies: 6
Views: 266

Re: Adjust vertical mouse sensitivity?

It is also technically feasible to do "subtractive" sniper mode (hiding half of the input from the game) rather than the "additive" mode that MouseDelta uses, by installing a custom filter driver (See AHI library, link in signature) or using Windows Hooks
by evilC
02 Apr 2019, 09:36
Forum: Ask For Help
Topic: If statements too slow...
Replies: 27
Views: 615

Re: If statements too slow...

oh hold on, slight bug - it would only process the 1st chunk This should fix it: str := "410D0A420D0A" numChunks := StrLen(str) / 6 Loop % numChunks { i := A_Index - 1 chunk := SubStr(str, 1 + (i * 6), 6) hexCode := SubStr(chunk, 1, 2) decCode := Format("{:u}", "0x" hexCode) chr := Chr(decCode) if c...
by evilC
02 Apr 2019, 07:05
Forum: Ask For Help
Topic: If statements too slow...
Replies: 27
Views: 615

Re: If statements too slow...

str := "410D0A420D0A" numChunks := StrLen(str) / 6 Loop % numChunks { chunk := SubStr(str, 1, 6) hexCode := SubStr(chunk, 1, 2) decCode := Format("{:u}", "0x" hexCode) chr := Chr(decCode) if chr is Upper { ud := " up" StringLower, chr, chr } else { ud := " down" } str := "{" chr ud "}" ;~ Send % st...
by evilC
02 Apr 2019, 05:45
Forum: Ask For Help
Topic: If statements too slow...
Replies: 27
Views: 615

Re: If statements too slow...

AHK's Chr() function will convert a numerical value to an ascii character, so you could possibly do away with the lookup table?
https://autohotkey.com/docs/commands/Chr.htm
by evilC
02 Apr 2019, 04:21
Forum: Ask For Help
Topic: continue executing AHK script after reboots - how?
Replies: 1
Views: 67

Re: continue executing AHK script after reboots - how?

Having a script always run with admin privileges is not possible without accepting a UAC prompt at least once You can use RunAsTask to suppress all UAC prompts after the first one, but in your use-case this will not be a lot of use, and will leave artifacts in registry An AHK script will run on star...

Go to advanced search