Search found 219 matches

by DuckingQuack
26 Jan 2024, 09:54
Forum: Gaming Help (v1)
Topic: Autoclicker (hold down) with macro enable/disable button
Replies: 5
Views: 2575

Re: Autoclicker (hold down) with macro enable/disable button

stellar Yes! Hope all is finding you well today. There are lots of ways to do this, but try to use a SLEEP or a timer to create a small delay, preventing the script from sending clicks as quickly as your processor will allow as this tends to cause your computer to crash. There are already tons of a...
by DuckingQuack
01 Dec 2023, 23:11
Forum: Gaming
Topic: world of warcraft player, Looking for Autofire
Replies: 21
Views: 2085

Re: world of warcraft player, Looking for Autofire

@Perrito
I downloaded WOW just to test this script so I could get it working for you and it works fine for me. I don't think I can help you, sorry.
by DuckingQuack
30 Nov 2023, 15:47
Forum: Gaming
Topic: world of warcraft player, Looking for Autofire
Replies: 21
Views: 2085

Re: world of warcraft player, Looking for Autofire

Perrito This script is a simplified version of Warlord's script but with the changes I suggested earlier included. Try this and we can test other stuff depending on how it goes. I included an exit button if things go crazy (F12). Keep this line the first time you run it for safety, but if you need ...
by DuckingQuack
29 Nov 2023, 14:58
Forum: Ask for Help (v2)
Topic: How to toggle a key?
Replies: 48
Views: 4704

Re: How to toggle a key?

prz This is auto walk I use in some games: XButton1:: { If !GetKeyState("w", "L") { SendEvent("{w down}") } Else { SendEvent("{w up}") } } I have it on the extra mouse button so I can use W normally. It's true that testing in NotePad will only send one "w" but in the game, you continue to run.
by DuckingQuack
29 Nov 2023, 05:51
Forum: Ask for Help (v2)
Topic: How to toggle a key?
Replies: 48
Views: 4704

Re: How to toggle a key?

@prz Boiler is right, i was wrong about the quotes.
by DuckingQuack
23 Nov 2023, 20:39
Forum: Gaming
Topic: world of warcraft player, Looking for Autofire
Replies: 21
Views: 2085

Re: world of warcraft player, Looking for Autofire

My suggestion is changing send mode to event and adding setkeydelay( , 250) to the top.
On mobile, so i can’t test it or write it for you, but the script you have as a whole should do exactly what you want, but with these changes, the game should see the presses too.
by DuckingQuack
22 Nov 2023, 08:54
Forum: Ask for Help (v2)
Topic: How to toggle a key?
Replies: 48
Views: 4704

Re: How to toggle a key?

@boiler
Thanks! My intention was giving Plautus something simple and easily adapted. I see now I misread the requested key press, but when I read it, I was uncertain, which is why I described what that code would do.
by DuckingQuack
21 Nov 2023, 13:43
Forum: Ask for Help (v2)
Topic: How to toggle a key?
Replies: 48
Views: 4704

Re: How to toggle a key?

plautus So you want a single toggle that when activated will send left click and then space in an infinite loop? #Requires AutoHotkey v2.0 #SingleInstance Force InstallMouseHook InstallKeybdHook Esc::ExitApp F1:: { Static Toggle := False SetTimer(FnMain, 10 * Toggle := !Toggle) } FnMain(){ Click Se...
by DuckingQuack
20 Nov 2023, 08:14
Forum: Gaming
Topic: Help with Color-based detection / PixelSearch
Replies: 7
Views: 754

Re: Help with Color-based detection / PixelSearch

what game and what event is this?
by DuckingQuack
19 Nov 2023, 17:55
Forum: Ask for Help (v1)
Topic: Script doesn't run Topic is solved
Replies: 7
Views: 589

Re: Script doesn't run Topic is solved

Insert v2 advice for a v1 script...
:crazy:
by DuckingQuack
19 Nov 2023, 12:07
Forum: General Discussion
Topic: Hold Down Key for Just One Application?
Replies: 1
Views: 497

Re: Hold Down Key for Just One Application?

It is possible, but it depends on the program as some programs can disable key input when minimized. You'll want to check out ControlSend for more info, and add the Down modifier to the key you send so it stays down instead of a single quick press. https://www.autohotkey.com/docs/v2/lib/ControlSend....
by DuckingQuack
19 Nov 2023, 11:23
Forum: Ask for Help (v2)
Topic: How to toggle a key?
Replies: 48
Views: 4704

Re: How to toggle a key?

@vmech Thanks for asking the (rhetorical) question.
@boiler Thanks for answering the question because I saw this used and was stumped as to what the comparison was using to compare but your explanation made it wonderfully clear.
by DuckingQuack
18 Nov 2023, 13:57
Forum: Ask for Help (v2)
Topic: Any way to prevent a command being sent to a specific window / isolate keycommands to be sent only to 1 ?
Replies: 1
Views: 179

Re: Any way to prevent a command being sent to a specific window / isolate keycommands to be sent only to 1 ?

#HotIf WinActive("WinTitle")
ControlSend(Key,Control,WinTitle)
You didn't give much in the way of details, but these are two ways to accommodate something along those lines.
https://www.autohotkey.com/docs/v2/lib/_HotIf.htm
https://www.autohotkey.com/docs/v2/lib/ControlSend.htm
by DuckingQuack
18 Nov 2023, 12:08
Forum: Gaming
Topic: MineSweeper Game
Replies: 3
Views: 1003

Re: MineSweeper Game

The window and buttons are way too small on my resolution to be able to play it. I really wish there was a way to enlarge the window so even blind people could play it, but you did a great job recreating the original.


Next to Icons for scale

image.png
image.png (38.45 KiB) Viewed 546 times
by DuckingQuack
18 Nov 2023, 11:51
Forum: Ask for Help (v2)
Topic: Error: Hotkey or hotstring is missing its opening brace.
Replies: 2
Views: 1572

Re: Error: Hotkey or hotstring is missing its opening brace.

Code: Select all

F12:: {     ; <--- This one is missing and is the cause of the error
     Loop {
          Stuff
     }
}              ; <--- This one will need to be added also
by DuckingQuack
18 Nov 2023, 11:45
Forum: Ask for Help (v1)
Topic: Closing a notification dialogue
Replies: 4
Views: 344

Re: Closing a notification dialogue

kunkel321 I agree with you about loops running constantly being bad, which is why I go out of my way to come up with inventive ways to apply SetTimer. WinWait will just look for the window to exist rather than being active, so you can send a close command a little faster. This is a v2 example, adap...
by DuckingQuack
18 Nov 2023, 09:47
Forum: Ask for Help (v2)
Topic: Clipboard and line breaks Topic is solved
Replies: 5
Views: 367

Re: Clipboard and line breaks Topic is solved

Alright, then I guess you wanted to know about escape sequences.

https://www.autohotkey.com/docs/v2/misc/EscapeChar.htm

Code: Select all

#Requires AutoHotkey v2.0
#SingleInstance Force
InstallMouseHook
InstallKeybdHook
Esc::ExitApp

::bbb::{
    SendInput "`n{Raw}" A_Clipboard "`n"
}
by DuckingQuack
18 Nov 2023, 08:46
Forum: Ask for Help (v2)
Topic: Remap CapsLock+ijkl to arrows Topic is solved
Replies: 13
Views: 1093

Re: Remap CapsLock+ijkl to arrows Topic is solved

Alright, that link had loads of useful information and I implemented the advice but now it needs testing. EDIT: Fully tested and fully functional script. #Requires AutoHotkey v2.0 #SingleInstance Force DetectHiddenWindows True InstallMouseHook InstallKeybdHook SetCapsLockState "AlwaysOff" #HotIf Get...
by DuckingQuack
18 Nov 2023, 08:20
Forum: Ask for Help (v2)
Topic: Clipboard and line breaks Topic is solved
Replies: 5
Views: 367

Re: Clipboard and line breaks Topic is solved

I think you were closer to answering your own riddle than you thought. https://www.autohotkey.com/docs/v2/Hotstrings.htm After typing "bbb", once you hit space or enter, it is replaced with the text from the clipboard. #Requires AutoHotkey v2.0 #SingleInstance Force Esc::ExitApp ::bbb::{ SendInput "...
by DuckingQuack
17 Nov 2023, 22:56
Forum: Gaming
Topic: I need help
Replies: 7
Views: 717

Re: I need help

I decided to try to come up with a version that did not use sleeps, but timers instead. I came up with two ways to go about it, one function that uses variables or two functions that call each other. The single turned out better but I'm going to post both as options for you. EDIT: Came up with a thi...

Go to advanced search