Search found 5367 matches
- Yesterday, 12:02
- Forum: Ask For Help
- Topic: How do I make this script hold instead of click? Topic is solved
- Replies: 3
- Views: 116
Re: How do I make this script hold instead of click? Topic is solved
That's the right idea! But: the parameters need to be provided in the designated order: MouseClick , WhichButton, X, Y, ClickCount, Speed, DownOrUp, Relative If you omit any of these parameters, leave the comma intact, so that AHK can parse the command properly. Maybe something like: MouseClick,, x ...
- Yesterday, 11:31
- Forum: Ask For Help
- Topic: How do I make this script hold instead of click? Topic is solved
- Replies: 3
- Views: 116
- Yesterday, 11:26
- Forum: Gaming
- Topic: Space as variable
- Replies: 3
- Views: 84
Re: Space as variable
Does it work in Notepad?
Would review tips for games: https://autohotkey.com/board/topic/111737-how-to-make-ahk-work-in-most-games-the-basics/
Would review tips for games: https://autohotkey.com/board/topic/111737-how-to-make-ahk-work-in-most-games-the-basics/
- Yesterday, 11:22
- Forum: Gaming
- Topic: Hold left click and a and d
- Replies: 5
- Views: 264
Re: Hold left click and a and d
Since the script does not work, simplify it so that you can test it and get a small piece working first. You could try the following alone. wTitle = ahk_id %id% ControlClick,, %wTitle%,,,, D ControlSend,, {w down}{d down}, %wTitle% Sleep, 3000 ControlSend,, {d up}{w up}, %wTitle% ControlClick,, %wTi...
- Yesterday, 10:07
- Forum: Gaming
- Topic: Hold left click and a and d
- Replies: 5
- Views: 264
Re: Hold left click and a and d
To hold button, A, and D, you just send all of those down. Wait as long as needed, and then send all of them up again.
While applies to a subsequent block in braces. If no such block exists, then it applies only to the single line that follows it.
While applies to a subsequent block in braces. If no such block exists, then it applies only to the single line that follows it.
- Yesterday, 08:13
- Forum: Ask For Help
- Topic: AHK Script in specific window
- Replies: 1
- Views: 131
- Yesterday, 07:44
- Forum: Ask For Help
- Topic: Navigating panes in Chrome Topic is solved
- Replies: 2
- Views: 167
Re: Navigating panes in Chrome Topic is solved
Perhaps some reply here is better than none. I'm not a Chrome expert, but there are lots of forum posts about this sort of thing. If you search the forum for "chrome click button", you are likely to find various examples. The Chrome.ahk library may also be useful to you.
- Yesterday, 07:41
- Forum: Gaming
- Topic: Hold left click and a and d
- Replies: 5
- Views: 264
Re: Hold left click and a and d
As soon as you send a down, you send it up again.
- Yesterday, 06:49
- Forum: Ask For Help
- Topic: Remapping Windows + 1, 2, 3 Topic is solved
- Replies: 3
- Views: 276
Re: Remapping Windows + 1, 2, 3 Topic is solved
It looked OK when I tested.
Code: Select all
Operating system : Microsoft Windows 10 Pro 64-bit
OS version : 10.0.19042
- Yesterday, 06:33
- Forum: Ask For Help
- Topic: How to label serial numbers in sequence?
- Replies: 3
- Views: 204
Re: How to label serial numbers in sequence?
n := 1 !3:: ; ALT-3 = Reset counter, and proceed n := 0 !2:: ; ALT-2 = Increment counter, and proceed n++ !1:: ; ALT-1 = Send label with serial number Click Sleep, 100 SendInput {Enter} Sleep, 500 SendInput {Up 3}{Left 3}E1.%n%_ Return You now have the tools. The different hotkeys just increment or...
- Yesterday, 06:23
- Forum: Ask For Help
- Topic: Check key status in hotstring? Topic is solved
- Replies: 13
- Views: 369
Re: Check key status in hotstring? Topic is solved
Same here! Thanks for pointing it out. For some reason, I never noticed it in the documentation, or never thought about what it meant.
- Yesterday, 06:18
- Forum: Gaming
- Topic: Problems quitting a script
- Replies: 20
- Views: 434
Re: Problems quitting a script
It's worth a go-- seems like it should overcome the issue that you had earlier. Best of luck!
- 04 Mar 2021, 21:56
- Forum: Ask For Help
- Topic: Check key status in hotstring? Topic is solved
- Replies: 13
- Views: 369
Re: Check key status in hotstring? Topic is solved
Yes-- I fully agree, and actually make the "mistake" myself in my scripts. No harm done! Similary, I use #IfWinActive as a closing directive even when not needed. It can help to prevent bugs later when I add more code. I also learned that Hotkey has the effect of "adding" a hotkey to the end of the ...
- 04 Mar 2021, 21:02
- Forum: Ask For Help
- Topic: Overlay Text on Image to Create New Image
- Replies: 3
- Views: 121
Re: Overlay Text on Image to Create New Image
If you actually need a new output image, you might want to work with the GDI+ library.
- 04 Mar 2021, 20:53
- Forum: Ask For Help
- Topic: How to get raw command line Topic is solved
- Replies: 5
- Views: 216
- 04 Mar 2021, 20:50
- Forum: Gaming
- Topic: Problems quitting a script
- Replies: 20
- Views: 434
Re: Problems quitting a script
The issue that you have is perhaps demonstrated by the following script. SetTimer, Go, 200 test() Return Go: WinWaitActive, ahk_exe outlook.exe Return test() { MsgBox, test ExitApp } The timer runs. test() runs. The message box appears. At that point (or perhaps just before it), WinWaitActive execut...
- 04 Mar 2021, 20:37
- Forum: Gaming
- Topic: Problems quitting a script
- Replies: 20
- Views: 434
Re: Problems quitting a script
Hmm. Thank you for providing the details. It seems to me that if you are seeing "Exiting #4" and then click "OK", the script should exit at that point. I haven't followed every detail of the issue exactly, but Gui +LastFound is a way to make the GUI the last found window if needed.
- 04 Mar 2021, 20:19
- Forum: Ask For Help
- Topic: How to get raw command line Topic is solved
- Replies: 5
- Views: 216
Re: How to get raw command line Topic is solved
In almost all cases: 1. Including the quotes has no harm. 2. Omitting quotes for arguments without spaces makes no difference. 3. Arguments with spaces require quotes. 4. An argument containing spaces was originally quoted. Thus, it's very likely that you can make this work even without knowing what...
- 04 Mar 2021, 20:13
- Forum: Ask For Help
- Topic: Check key status in hotstring? Topic is solved
- Replies: 13
- Views: 369
Re: Check key status in hotstring? Topic is solved
All good! I'm gratified just to learn that you got it working. Thank you for the feedback. With CorrectEndChar(word) : if word does not actually appear anywhere in the function, then you can simply change the function listing to CorrectEndChar() , since word actually has no role in the routine. Also...
- 04 Mar 2021, 17:46
- Forum: Ask For Help
- Topic: WinActive() Function Error Message
- Replies: 4
- Views: 103
Re: WinActive() Function Error Message
The function returns the unique window handle (HWND) of the specified window if that window is active at the time. Only one window can be active. A related function is WinExist, which will return the HWND of the window if it exists (active or not). If you want to test for any existing window, then y...