Search found 16960 matches
- 49 minutes ago
- Forum: Ask for Help (v1)
- Topic: Can't make key be held down
- Replies: 1
- Views: 40
Re: Can't make key be held down
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 \
- Today, 13:44
- Forum: Gaming Help (v1)
- Topic: it happen the revere! Topic is solved
- Replies: 7
- Views: 373
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...
- Today, 05:57
- Forum: Ask for Help (v1)
- Topic: Using ahk_class and ClassNN for pasting text
- Replies: 1
- Views: 105
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.
- Today, 05:54
- Forum: Gaming Help (v1)
- Topic: WoW with AHK PixelGetColor
- Replies: 2
- Views: 165
Re: WoW with AHK PixelGetColor
Topic moved to v1.
- Today, 05:50
- Forum: Ask for Help (v2)
- Topic: Distinguish between Array and another object
- Replies: 4
- Views: 132
Re: Distinguish between Array and another object
Ah, yes. I keep forgetting we have that now.
- Today, 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: 119
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
- Today, 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: 119
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...
- Today, 04:27
- Forum: Ask for Help (v2)
- Topic: Distinguish between Array and another object
- Replies: 4
- Views: 132
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'
- Today, 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...
- Today, 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: 119
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...
- Yesterday, 21:31
- Forum: Gaming Help (v1)
- Topic: Script Background Topic is solved
- Replies: 2
- Views: 111
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...
- Yesterday, 21:24
- Forum: Ask for Help (v1)
- Topic: Mac Parallel & Win11 Issues
- Replies: 9
- Views: 393
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 ...
- Yesterday, 18:33
- Forum: Ask for Help (v2)
- Topic: CheckColor / WaitColor - Color names of HEX color Topic is solved
- Replies: 15
- Views: 455
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...
- Yesterday, 18:15
- Forum: Ask for Help (v1)
- Topic: How to check if Gui is empty before showing it?
- Replies: 2
- Views: 245
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,...
- Yesterday, 16:45
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 24
- Views: 1254
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
- Yesterday, 15:13
- Forum: Ask for Help (v1)
- Topic: Mac Parallel & Win11 Issues
- Replies: 9
- Views: 393
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...
- Yesterday, 14:43
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 24
- Views: 1254
Re: Help With script. Topic is solved
What does that mean? Did you run the script I showed or not? What did it show?
- Yesterday, 14:40
- Forum: Ask for Help (v2)
- Topic: i made the simple code but is make me feel sump
- Replies: 1
- Views: 74
Re: i made the simple code but is make me feel sump
Your #IfWinActive line is v1 code. See #HotIf and WinActive.
Code: Select all
#Requires AutoHotkey v2.0
#HotIf WinActive('ahk_exe EXCEL.EXE')
^Tab::^PgUp
- Yesterday, 12:34
- Forum: Ask for Help (v2)
- Topic: tray icons usage Topic is solved
- Replies: 9
- Views: 348
Re: tray icons usage Topic is solved
I agree that a .ico file that contains various size images drawn specifically for that size looks much better than letting Windows scale up or down based on one size.
- Yesterday, 10:57
- Forum: Ask for Help (v2)
- Topic: Only a number (RegExMatch?)
- Replies: 9
- Views: 282
Re: Only a number (RegExMatch?)
You can use IsXDigit() to include hex numbers. Would have to check separately for empty strings, as pointed out.