Hi,
I can't find (and TBH I don't know how ) the SendMessage for clicking the index part of the new help file of AutoHotkey.
Can someone help me ?
SendMessage for the new help file of AutoHotkey
- Delta Pythagorean
- Posts: 627
- Joined: 13 Feb 2017, 13:44
- Location: Somewhere in the US
- Contact:
Re: SendMessage for the new help file of AutoHotkey
It's actually ControlSend, SendMessage only sends Windows built in messages.
[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat
Re: SendMessage for the new help file of AutoHotkey
@ozzii, you're best off to use the keypress Alt + n. That selects the index tab.
try it and see
...
...
Re: SendMessage for the new help file of AutoHotkey
This used to work on old versions of the AutoHotkey Help chm.
Code: Select all
q:: ;AutoHotkey Help (old versions) - focus Index tab
PostMessage, 0x111, 6008,,, A ;WM_COMMAND := 0x111
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: SendMessage for the new help file of AutoHotkey
I think I will use the Alt+n..
Didn't think it worked because when I select the option from the menu (without the shortcut), nothing happened.
Thanks all.
EDIT :
Even this simple thing doesn't work :
But the alt+n work manually
Didn't think it worked because when I select the option from the menu (without the shortcut), nothing happened.
Thanks all.
EDIT :
Even this simple thing doesn't work :
Code: Select all
WinWait, AutoHotkey Help
WinActivate, AutoHotkey Help
WinWaitActive, AutoHotkey Help
sleep, 200
WinMaximize , AutoHotkey Help
sleep, 1000
Send, {Alt}n
sleep, 500
Re: SendMessage for the new help file of AutoHotkey
- chm files use Internet Explorer_Server controls, and this script can interact with them on the new versions of AutoHotkey Help to focus the Index tab.
- This also works to focus the Index tab on the active Internet Explorer tab.
- It requires the WBGet function, which I have provided a link to.
- This also works to focus the Index tab on the active Internet Explorer tab.
- It requires the WBGet function, which I have provided a link to.
Code: Select all
;WBGet function - AutoHotkey Community
;https://autohotkey.com/boards/viewtopic.php?f=6&t=39869
q:: ;AutoHotkey Help (new versions, v1.1.27+, v2.0-a082+) - focus Index tab
;tested on AutoHotkey Help v1.1.27 and v2.0-a083
;works on v2.0-a082 if you comment out the 'if' line
WinGet, hWnd, ID, A
oWB := WBGet("ahk_id " hWnd)
oElt := oWB.document.getElementsByTagName("li")[1]
if (oElt.innerText = "Index")
oElt.click()
oWB := oElt := ""
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: SendMessage for the new help file of AutoHotkey
This is working, thanks a lot jeeswg
Re: SendMessage for the new help file of AutoHotkey
When you tap (press and release) Alt and then tap n, does it work? Of course it doesn't, so neither will Send {Alt}n.
I use Send !n^a.
I use Send !n^a.
Why wouldn't you just pass "A" directly? oWB := WBGet("A").WinGet, hWnd, ID, A
oWB := WBGet("ahk_id " hWnd)
Re: SendMessage for the new help file of AutoHotkey
- It's likely that they have either already retrieved the hWnd, or want to use it again later.
- Modifying the script from hWnd to A is easier than from A to hWnd.
- Btw the WBGet function is unusual/misleading in that it uses only 1 of the 4 'WWEE' parameters. I would make it take an hCtl e.g.
hCtl := ControlGetHwnd("Internet Explorer_Server1", "A")
- Modifying the script from hWnd to A is easier than from A to hWnd.
- Btw the WBGet function is unusual/misleading in that it uses only 1 of the 4 'WWEE' parameters. I would make it take an hCtl e.g.
hCtl := ControlGetHwnd("Internet Explorer_Server1", "A")
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: No registered users and 120 guests