Operation of chrome using PostMessage

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
dostroll
Posts: 40
Joined: 03 Nov 2021, 08:56

Operation of chrome using PostMessage

Post by dostroll » 30 Nov 2021, 07:26

Purpose: I want to control the translation switching of the site directly with PostMessage.
Please give me good advice.

Currently, this is achieved using Send key.

Code: Select all

Chrome_Translate() {
  Critical, On
  SetKeyDelay, -1
  SetMouseDelay, -1
  Send, {RButton}
  Sleep, 80
  Send, t
  Sleep, 80
  Send, {NumpadRight}
  Send, {LButton}
}
I found an element that looks like it using Inspect.exe.
ControlType:UIA_TabItemControlTypeId (0xC363)
BoundingRectangle:{l:1137 t:74 r:1222 b:106}
this is doesn't work.

Code: Select all

PostMessage, 0x0111, 0xC363,,, A

Return to “Ask for Help (v1)”