Search found 16964 matches
- 59 minutes ago
- Forum: Ask for Help (v1)
- Topic: [ahk v1] about '::' hotkey with 'send key'
- Replies: 3
- Views: 122
Re: [ahk v1] about '::' hotkey with 'send key'
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 ...
- Today, 04:37
- Forum: Ask for Help (v1)
- Topic: Need Advice on Finding My Missing { bracket
- Replies: 2
- Views: 139
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.
- Today, 03:20
- Forum: Ask for Help (v1)
- Topic: [ahk v1] about '::' hotkey with 'send key'
- Replies: 3
- Views: 122
Re: [ahk v1] about '::' hotkey with 'send key'
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...
- Yesterday, 20:52
- Forum: Ask for Help (v2)
- Topic: String Manipulation between ^ and /
- Replies: 4
- Views: 149
Re: String Manipulation between ^ and /
Another way:
Code: Select all
str := '%B1111222233334444^LastName/FirstName'
MsgBox LName := Strsplit(StrSplit(str,'^')[2],'/')[1]
- Yesterday, 15:46
- Forum: Ask for Help (v1)
- Topic: Can't make key be held down Topic is solved
- Replies: 2
- Views: 266
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 \
- Yesterday, 13:44
- Forum: Gaming Help (v1)
- Topic: it happen the revere! Topic is solved
- Replies: 10
- Views: 593
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...
- Yesterday, 05:57
- Forum: Ask for Help (v1)
- Topic: Using ahk_class and ClassNN for pasting text
- Replies: 1
- Views: 202
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.
- Yesterday, 05:54
- Forum: Gaming Help (v1)
- Topic: WoW with AHK PixelGetColor
- Replies: 2
- Views: 183
Re: WoW with AHK PixelGetColor
Topic moved to v1.
- Yesterday, 05:50
- Forum: Ask for Help (v2)
- Topic: Distinguish between Array and another object
- Replies: 4
- Views: 163
Re: Distinguish between Array and another object
Ah, yes. I keep forgetting we have that now.
- Yesterday, 05:41
- Forum: Ask for Help (v2)
- Topic: how do i make it that when one section of my AutoHotkey script activates, the other deactivates
- Replies: 5
- Views: 133
Re: how do i make it that when one section of my AutoHotkey script activates, the other deactivates
Not sure why you expected the d key not to be active. It deactivates the hotkey as you said you wanted. Now you want the key to become a dead key instead of returning to its normal function?mindlessplague wrote: ↑ dunno why but even when the y key is pressed to deactivate the script the d key remains active
- Yesterday, 04:34
- Forum: Ask for Help (v2)
- Topic: how do i make it that when one section of my AutoHotkey script activates, the other deactivates
- Replies: 5
- Views: 133
Re: how do i make it that when one section of my AutoHotkey script activates, the other deactivates
I made a mistake where I left a Send ‘aa’ line in there I had for testing. Did you remove that? I don’t see how it would cause what you are describing, but fix that first anyway. The swap approach works, as this demonstrates: #Requires AutoHotkey v2.0 Top := 1 #HotIf Top *a::MsgBox 'a' *d::MsgBox 'd...
- Yesterday, 04:27
- Forum: Ask for Help (v2)
- Topic: Distinguish between Array and another object
- Replies: 4
- Views: 163
Re: Distinguish between Array and another object
Code: Select all
#Requires AutoHotkey v2.0
aArray := [ 1 ]
oObject := InputHook('L1')
oVar := oObject ; aArray
Try
MsgBox oVar.Has(1) && 'Array'
Catch
MsgBox 'Input object'
- Yesterday, 03:58
- Forum: Gaming
- Topic: Clicking a position without releasing rightclick
- Replies: 3
- Views: 134
Re: Clicking a position without releasing rightclick
You haven’t used the correct syntax. You just put a string of text with no values of your variables where it’s expecting x and a number followed by y and a number (with a space between them). That is accomplished by concatenating the literal string parts and your variables (with 5 added to each). Yo...
- Yesterday, 03:46
- Forum: Ask for Help (v2)
- Topic: how do i make it that when one section of my AutoHotkey script activates, the other deactivates
- Replies: 5
- Views: 133
Re: how do i make it that when one section of my AutoHotkey script activates, the other deactivates
#Requires AutoHotkey v2.0 Top := 1 #HotIf Top *a:: { Static A := 0 Send (A:=!A)?"{Blind}{a down}":"{Blind}{a up}" KeyWait "a" send 'aa' } *d:: { Static D := 0 Send (D:=!D)?"{Blind}{d down}":"{Blind}{d up}" KeyWait "d" } #HotIf *r:: { Static R := 0 Send (R:=!R)?"{Blind}{r down}":"{Blind}{r up}" KeyW...
- 09 May 2024, 21:31
- Forum: Gaming Help (v1)
- Topic: Script Background Topic is solved
- Replies: 2
- Views: 117
Re: Script Background Topic is solved
ControlSend simply doesn’t work on all windows. It very well could be nothing more than that. I can’t help but notice in the first script you’re sending the F6 key and you are sending the 1 key in the second. I assume you really did run them using the same keys in both the send and ControlSend versi...
- 09 May 2024, 21:24
- Forum: Ask for Help (v1)
- Topic: Mac Parallel & Win11 Issues
- Replies: 9
- Views: 455
Re: Mac Parallel & Win11 Issues
Look carefully at your original example of making a hotkey combination out of the CapsLock and 2 keys, and look again and what you tried for a hotkey for a combination of the CapsLock and Z keys, and see if you can spot any difference. One hint: Capitalization isn’t the issue. And using a lowercase ...
- 09 May 2024, 18:33
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color Topic is solved
- Replies: 15
- Views: 472
Re: CheckColor / WaitColor - Color names of HEX color Topic is solved
PixelGetColor returns the hex number as a string. To get it to treat it as a number, do this: readColor := PixelGetColor( xPos, yPos ) + 0 Demonstration below. Try it both with and without the readColor += 0 line commented out. #Requires AutoHotkey v2.0 cValue := Map( '' , , 'white' , 0xFFFFFF , 'bl...
- 09 May 2024, 18:15
- Forum: Ask for Help (v1)
- Topic: How to check if Gui is empty before showing it?
- Replies: 2
- Views: 271
Re: How to check if Gui is empty before showing it?
An alternate approach is to use this function to which you pass the GUI's hwnd. It will work without showing the GUI if you have DetectHiddenWindows on. CtrlCount(id) { WinGet, list, ControlList, ahk_id %id% RegExReplace(list, "\w+",, count) return count } Demonstration: DetectHiddenWindows, On Gui,...
- 09 May 2024, 16:45
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 24
- Views: 1271
Re: Help With script. Topic is solved
Code: Select all
F1::
WinActivate, Willhood ahk_exe DofusMod.exe
WinGetPos,,, w, h, Willhood ahk_exe DofusMod.exe
MouseMove, w / 2, h / 2, 0
return
F2::
WinActivate, Will-shot ahk_exe DofusMod.exe
WinGetPos,,, w, h, Will-shot ahk_exe DofusMod.exe
MouseMove, w / 2, h / 2, 0
Send, {tab}
return
- 09 May 2024, 15:13
- Forum: Ask for Help (v1)
- Topic: Mac Parallel & Win11 Issues
- Replies: 9
- Views: 455
Re: Mac Parallel & Win11 Issues
What could be happening is that when you run a virtual desktop like Parallels, depending on the settings, it could be trying to sync the states of toggle keys between the physical desktop and the virtual desktop, and in doing so, it can mess up the way those keys are handled, especially on the virtu...