Search found 16976 matches
- Yesterday, 22:56
- Forum: General Discussion
- Topic: System call in Operating System
- Replies: 1
- Views: 38
Re: System call in Operating System
Not sure this is related to AHK other than you saying you wanted to ask the AHK forum. I’ll tentatively leave it here in “AutoHotkey (v2, current version) > General Discussion” rather than moving it to “Off-topic Discussion” pending a reason why it actually is AHK related.
- Yesterday, 22:25
- Forum: Gaming
- Topic: Simple keywait + rapidfire
- Replies: 7
- Views: 215
Re: Simple keywait + rapidfire
I guess you mean this:
Code: Select all
#Requires AutoHotkey v2.0
F1:: {
static t := 0
SoundBeep 380 + 320 * (t := !t)
SetTimer () => Click(), t ? 50 : 0
}
+Esc::ExitApp
- Yesterday, 19:19
- Forum: Gaming
- Topic: Simple keywait + rapidfire
- Replies: 7
- Views: 215
Re: Simple keywait + rapidfire
Again, the name “Clicker” has nothing to do with what it does . It’s not an AHK function name. It was just what was chosen for the name of this user-defined function. It’s the code inside it that defines what happens, not the name of it. Replace everywhere you see “Clicker” with “Bob” or “Tomato” an...
- Yesterday, 08:10
- Forum: Ask for Help (v2)
- Topic: How to pass variables into Gui's callback function and how to terminate another function within one function?
- Replies: 5
- Views: 351
Re: How to pass variables into Gui's callback function and how to terminate another function within one function?
I don’t know how to register the method of an object for an event (for example, writing OnEvent(“Click”, obj.Method) will throw an error) That is the proper way (except for using curly quotes instead of straight quotes). You must have made some other mistake, such as not instantiating the class or ...
- Yesterday, 07:17
- Forum: Ask for Help (v1)
- Topic: Menu Exit
- Replies: 5
- Views: 266
Re: Menu Exit
Because much more often than not, it writes nonsensical code, and it’s a waste of time for the forum members to bother trying to unravel it. See the Forum Rules.
- Yesterday, 07:11
- Forum: Gaming
- Topic: Simple keywait + rapidfire
- Replies: 7
- Views: 215
Re: Simple keywait + rapidfire
What make you think it clicks? Did you even run it?
If you think it’s because the function is still named Clicker, that has nothing to do with what it does.
If you think it’s because the function is still named Clicker, that has nothing to do with what it does.
- Yesterday, 04:54
- Forum: Gaming
- Topic: Simple keywait + rapidfire
- Replies: 7
- Views: 215
Re: Simple keywait + rapidfire
#Requires AutoHotkey v2.0 AutoClickEnabled := False F1:: { Global AutoClickEnabled := !AutoClickEnabled SoundBeep 380 + 320 * AutoClickEnabled } #HotIf AutoClickEnabled ~*$Space:: { if !KeyWait("Space", "T.2") Clicker() KeyWait("Space") SetTimer(Clicker, 0) Clicker() { SendEvent(" ") SetTimer(Click...
- Yesterday, 04:25
- Forum: Ask for Help (v2)
- Topic: works in IDE, won't work “in the field”
- Replies: 4
- Views: 193
Re: works in IDE, won't work “in the field”
The line breaks in your copied text are probably made up of CR+LF ( `r`n ), not just LF ( `n ). You should have your script be able to handle either case, which you can do by making this your z assignment: z := StrReplace(A_Clipboard, "`r`n", "`n") Also, it’s best to use ClipWait instead of Sleep to...
- Yesterday, 04:03
- Forum: Gaming
- Topic: Detect Color And click or reset Run
- Replies: 1
- Views: 55
Re: Detect Color And click or reset Run
Your main problem is using ChatGPT. Asking for help with code that it generates is against forum rules , which is why I deleted it. This is a good example of why. It makes very fundamental mistakes, wasting your time and the forum helpers’ time undoing its mess. Please don’t ask for help with code i...
- 11 May 2024, 21:58
- Forum: Ask for Help (v1)
- Topic: Need Advice on Finding My Missing { bracket
- Replies: 10
- Views: 626
Re: Need Advice on Finding My Missing { bracket
Good old regular Notepad is just regular black text, so nothing there either. … *Edit - Looks like Notepad++ may not actually change the text color by itself; it sort of adds a background color to it (looks the same as when regular text is highlighted, and it allows you to select the color of that ...
- 11 May 2024, 13:53
- Forum: Ask for Help (v1)
- Topic: [ahk v1] about '::' hotkey with 'send key' Topic is solved
- Replies: 14
- Views: 675
Re: [ahk v1] about '::' hotkey with 'send key' Topic is solved
The optimal outcome for this code's successful execution would be to configure the RButton as the q-key, while also enabling it to transmit a "c" upon being pressed. RButton::"q" Send "c" That’s not how it works, so you might as well stop posting that and move on to why sending qc doesn’t accomplis...
- 11 May 2024, 11:47
- Forum: Ask for Help (v2)
- Topic: Subscripts
- Replies: 8
- Views: 262
Re: Subscripts
Yes, unless a proposal is submitted that makes the specific case as to why certain subscript characters are need for cases like mathematical or chemical equations, they won’t be eventually added just because they are “missing.” You say they are used frequently. Somewhat would have to submit a propos...
- 11 May 2024, 07:48
- Forum: Ask for Help (v1)
- Topic: [ahk v1] about '::' hotkey with 'send key' Topic is solved
- Replies: 14
- Views: 675
Re: [ahk v1] about '::' hotkey with 'send key' Topic is solved
Then like I said, you want to send qkey . There is no reason to make a distinction between the q and the key . It doesn’t work like that. So your hotkey would be this: #Requires AutoHotkey v1.1.33 *RButton::Send, qkey And in v2: #Requires AutoHotkey 2.0 *RButton::Send 'qkey' Please use a translator ...
- 11 May 2024, 04:37
- Forum: Ask for Help (v1)
- Topic: Need Advice on Finding My Missing { bracket
- Replies: 10
- Views: 626
Re: Need Advice on Finding My Missing { bracket
If you use a good indenting approach, it should make it easy to identify code blocks and quickly see where their associated pair of braces should be.
- 11 May 2024, 03:20
- Forum: Ask for Help (v1)
- Topic: [ahk v1] about '::' hotkey with 'send key' Topic is solved
- Replies: 14
- Views: 675
Re: [ahk v1] about '::' hotkey with 'send key' Topic is solved
It’s not clear what you want to happen. When you right-click, do you want it to send q followed by 'key' ? So you really want to send q'key' ? Or are you not aware that the single quotes are part of what gets sent the way you’ve written it? Do you want to send qkey ? Or is q not even meant to be a p...
- 10 May 2024, 20:52
- Forum: Ask for Help (v2)
- Topic: String Manipulation between ^ and /
- Replies: 6
- Views: 254
Re: String Manipulation between ^ and /
Another way:
Code: Select all
str := '%B1111222233334444^LastName/FirstName'
MsgBox LName := Strsplit(StrSplit(str,'^')[2],'/')[1]
- 10 May 2024, 15:46
- Forum: Ask for Help (v1)
- Topic: Can't make key be held down Topic is solved
- Replies: 2
- Views: 370
Re: Can't make key be held down Topic is solved
I imagine that it actually is holding the key down. It's just not having the result you expect. Check the KeyHistory , and I'm confident you'll see that o was pressed down and was not released, like this: DC 02B d 38.19 \ CodeQuickTester* 4F 018 i d 0.00 o DC 02B u 0.11 \
- 10 May 2024, 13:44
- Forum: Gaming Help (v1)
- Topic: it happen the revere! Topic is solved
- Replies: 10
- Views: 631
Re: it happen the revere! Topic is solved
Since I was about to post this anyway... Suspend only stops hotkeys from being active. It doesn't stop code from running or hide GUIs that are displayed. This seems like what you want, although I'm not sure. Gui, +LastFound -Caption +AlwaysOnTop +ToolWindow -Border Gui, % CLICKTHROUGH := "+E0x20" Gu...
- 10 May 2024, 05:57
- Forum: Ask for Help (v1)
- Topic: Using ahk_class and ClassNN for pasting text
- Replies: 1
- Views: 275
Re: Using ahk_class and ClassNN for pasting text
See ControlSetText. If you don’t want to replace the entire text of the control but rather just add or insert text to the existing text in the control at the text entry position, see ControlSend.
- 10 May 2024, 05:54
- Forum: Gaming Help (v1)
- Topic: WoW with AHK PixelGetColor
- Replies: 2
- Views: 215
Re: WoW with AHK PixelGetColor
Topic moved to v1.