Search found 2882 matches
- 05 Mar 2018, 14:22
- Forum: Ask for Help (v1)
- Topic: AHK not working on some windows
- Replies: 3
- Views: 662
Re: AHK not working on some windows
Try running your AHK script as administrator (right click the icon, select run as admin)
- 04 Mar 2018, 14:35
- Forum: Gaming Help (v1)
- Topic: Toggle won't work? Topic is solved
- Replies: 2
- Views: 593
Re: Toggle won't work? Topic is solved
Have you used #MaxThreadsPerHotkey, 2 (or a value larger than 2) somewhere above that hotkey?
- 03 Mar 2018, 04:41
- Forum: Ask for Help (v1)
- Topic: GUI Scroll Topic is solved
- Replies: 4
- Views: 1400
Re: GUI Scroll Topic is solved
Huh, I'm struggling to make it work with a sample GUI. Here is a working script in full. Remind me tomorrow to shorten the code or figure out a better sample... I see I have many commented out sections. A lot of the code is just data generation. I was struggling to come up with a sample code that ac...
- 02 Mar 2018, 09:57
- Forum: Ask for Help (v1)
- Topic: Illegal character in expression - how to replace?
- Replies: 5
- Views: 3245
Re: Illegal character in expression - how to replace?
StringLower -- Right now the hyperlink in the codebox is wrong
The InputVar is what you pass in the second parameter. Try using StringLower, cbm, cbmext. The same should apply to the StringRight command too.
The InputVar is what you pass in the second parameter. Try using StringLower, cbm, cbmext. The same should apply to the StringRight command too.
- 01 Mar 2018, 21:35
- Forum: Ask for Help (v1)
- Topic: Environment detection and sending
- Replies: 5
- Views: 1056
Re: Environment detection and sending
A is the WinTitle parameter. v_h is the OutputVar and ID is the cmd (command). The ControlSend may require an actual control value (and same for ControlFocus), instead of it being omitted. You can also try ahk_parent in that parameter as well. It is very likely that if ahk_parent doesn't work, you'd...
- 01 Mar 2018, 20:31
- Forum: Ask for Help (v1)
- Topic: Environment detection and sending
- Replies: 5
- Views: 1056
Re: Environment detection and sending
Oops, try WinGet, v_h, ID, A where A is interpreted to be the active window (don't change it). When I used just WinGet, v_h, ID it also came back blank for me.
- 01 Mar 2018, 20:05
- Forum: Ask for Help (v1)
- Topic: Environment detection and sending
- Replies: 5
- Views: 1056
Re: Environment detection and sending
Try WinGet instead of ControlGet to get a window's Hwnd.
- 25 Feb 2018, 16:16
- Forum: Ask for Help (v1)
- Topic: How can I use SC or VK with Keywait?
- Replies: 3
- Views: 1544
Re: How can I use SC or VK with Keywait?
I would expect that. The KeyWait is still timing out, but whenever you've tested it the ErrorLevel has been set to 1. To be clear, the code's intention is to execute Ctrl+Alt+Tab only when you press and release, all within 1 second, the Fn key. The Fn key is notorious for not being something AHK can...
- 25 Feb 2018, 12:55
- Forum: Ask for Help (v1)
- Topic: Autohotkey Key sequence
- Replies: 1
- Views: 551
Re: Autohotkey Key sequence
(Note: The first link is from the old forums, the second link is on these forums) http://www.autohotkey.com/board/topic/6 ... re-thread/ or https://autohotkey.com/boards/viewtopic.php?f=7&t=11952
Try those topics.
Try those topics.
- 25 Feb 2018, 12:18
- Forum: Ask for Help (v1)
- Topic: How can I use SC or VK with Keywait?
- Replies: 3
- Views: 1544
Re: How can I use SC or VK with Keywait?
Considering it's the Fn key, which doesn't usually play nicely with AHK, you may be out of luck. Check with using a different key value. For me, the ` key is vkC0sc029 ; you can try using a hotkey of ~SC029:: or whichever value matches some other key you want to test on. This'll make sure you're doi...
- 24 Feb 2018, 22:51
- Forum: Ask for Help (v1)
- Topic: PixelSearch Hang Up -- Resolved using Fast
- Replies: 0
- Views: 418
PixelSearch Hang Up -- Resolved using Fast
XButton2:: CoordMode, Mouse, Screen CoordMode, Pixel, Screen Click Sleep 100 PixelSearch, OutputX, OutputY, 104, 352, 330, 999, 0x097138,,RGB If ErrorLevel { MsgBox Ahhhh return } OutputX+=5 OutputY+=5 MouseClick Left, %OutputX%, %OutputY% return This code resulted in my script hanging and never pr...
- 23 Feb 2018, 19:22
- Forum: Ask for Help (v1)
- Topic: Issue with sending and receiving F13 - F24 Topic is solved
- Replies: 3
- Views: 13100
Re: Issue with sending and receiving F13 - F24 Topic is solved
You may be able to get around these limitations by using SendLevel and/or # InputLevel . I'll do some testing to see if it is actually a problem using the #if directive, but it may not be. (But you are sure you're inside of Notepad++ when you press F12, right?) I had an initial suspicion that the #I...
- 22 Feb 2018, 16:03
- Forum: Ask for Help (v1)
- Topic: Hotkey for formulae with superscript
- Replies: 2
- Views: 1835
Re: Hotkey for formulae with superscript
I only know of Superscript 1, 2, and 3 -- ¹, ², and ³. I don't know of them for 4-9; and technically not 0, although ° as 0 kind of works. I don't know that Notepad++ supports a superscript like Microsoft Word as a text editor does, or the superscript HTML tags for websites, but you would want to be...
- 21 Feb 2018, 17:46
- Forum: Ask for Help (v1)
- Topic: GUI Scroll Topic is solved
- Replies: 4
- Views: 1400
Re: GUI Scroll Topic is solved
My scrolling was sourced from http://www.autohotkey.com/board/topic/26033-scrollable-gui-proof-of-concept/#entry168174 by Lexikos. There may be better ways nowadays. But it worked for me. These are snippets of code; you should be able to implement just with this. OnMessage(0x115, "OnScroll") ; WM_VS...
- 20 Feb 2018, 23:31
- Forum: Ask for Help (v1)
- Topic: Unbind a key?
- Replies: 5
- Views: 4088
Re: Unbind a key?
Explain what you may be trying to do. LShift::Return would probably work just fine in a video game to prevent me from performing an action; I don't know of any non-video games that react to just a shift press. It also works to prevent capitalization of letters for me. The one other use case I can th...
- 20 Feb 2018, 11:21
- Forum: Ask for Help (v1)
- Topic: Need help with executing different code when modifier is released Topic is solved
- Replies: 6
- Views: 1268
Re: Need help with executing different code when modifier is released Topic is solved
I think this would work:
Now I've tested it.
The potential problem is that Alt will send 2 if you didn't even press Alt+Down. So you may use this untested code:
Code: Select all
!Down::Send 1
~Alt up::Send 2
The potential problem is that Alt will send 2 if you didn't even press Alt+Down. So you may use this untested code:
Code: Select all
!Down::Send 1
~Alt up::
If (A_PriorHotkey="!Down")
Send 2
return
- 20 Feb 2018, 09:41
- Forum: Ask for Help (v1)
- Topic: How to find left-side-center click coordinates of any screen automatically? Topic is solved
- Replies: 3
- Views: 1040
Re: How to find left-side-center click coordinates of any screen automatically? Topic is solved
See also SysGet, MonitorWorkArea in case you need to account for the taskbar height.
- 20 Feb 2018, 09:29
- Forum: Ask for Help (v1)
- Topic: Need help with executing different code when modifier is released Topic is solved
- Replies: 6
- Views: 1268
Re: Need help with executing different code when modifier is released Topic is solved
Oh, Down as in the Down Arrow. I see.
The hotkey can be changed to !Down:: because ! is the Alt modifier.
Do you mean it should repeat sending 1 and repeat sending 2? I would change Send 2 into
And it would end when you release Down.
The hotkey can be changed to !Down:: because ! is the Alt modifier.
Do you mean it should repeat sending 1 and repeat sending 2? I would change Send 2 into
Code: Select all
While GetKeyState("Down","P")
{
Send 2
Sleep 100
}
- 19 Feb 2018, 15:23
- Forum: Ask for Help (v1)
- Topic: Need help with executing different code when modifier is released Topic is solved
- Replies: 6
- Views: 1268
Re: Need help with executing different code when modifier is released Topic is solved
Using a modifier alone on this is a bit weird, but you can try this:
Code: Select all
LAlt:: ; change to RAlt if you want right, or Alt if you want to try either
While GetKeyState("LAlt","P")
{
Send 1
Sleep 100
}
Send 2
return
- 18 Feb 2018, 22:52
- Forum: Ask for Help (v1)
- Topic: Hold Key> Keypresses
- Replies: 2
- Views: 593
Re: Hold Key> Keypresses
You may want While GetKeyState("XButton2","P")