Search found 18 matches

by Tvlao
11 May 2024, 16:05
Forum: Ask for Help (v2)
Topic: PostMessage() sending a click to another window
Replies: 0
Views: 140

PostMessage() sending a click to another window

For some reason this code doesn't work. There are two windows. One window overlaps another. The top window with transparency intercepts clicks and directs them to the window below. OnMessage 0x0201, WM_LBUTTONDOWN MakeLong(LoWord, HiWord ) { return (HiWord << 16) | (LoWord & 0xffff) } ; ------------...
by Tvlao
11 May 2024, 13:41
Forum: Ask for Help (v2)
Topic: Clickable window, but with a transparent background.
Replies: 5
Views: 359

Re: Clickable window, but with a transparent background.

The problem is not making the background transparent, but rather preventing clicks from going through the transparent background.
by Tvlao
11 May 2024, 10:21
Forum: Ask for Help (v2)
Topic: Clickable window, but with a transparent background.
Replies: 5
Views: 359

Re: Clickable window, but with a transparent background.

This does nothing. The window is completely transparent. Only the background should be transparent, not the text. So, the entire window is translucent. But it should have completely opaque text and a completely transparent background: #Requires AutoHotkey 2.0 #SingleInstance #Include ../Lib/ahk2_lib...
by Tvlao
10 May 2024, 11:23
Forum: Ask for Help (v2)
Topic: Clickable window, but with a transparent background.
Replies: 5
Views: 359

Re: Clickable window, but with a transparent background.

Is there some kind of DLL call that would direct all mouse events to this window?

In the window - WebView2 with html markup. It is necessary that a click on a transparent background is also transmitted to WebView2.
by Tvlao
10 May 2024, 09:29
Forum: Ask for Help (v2)
Topic: Clickable window, but with a transparent background.
Replies: 5
Views: 359

Clickable window, but with a transparent background.

When I set the background to transparent:

Code: Select all

   WinSetTransColor this.win.BackColor " 255", this.win.Title
the clicks fall through this window, to the bottom window.
But they need to not fail.
So that the windows below are disabled and do not respond to clicks.
by Tvlao
14 Apr 2024, 13:27
Forum: Ask for Help (v2)
Topic: Get sc key code always for English keyboard
Replies: 3
Views: 110

Get sc key code always for English keyboard

This code does not always print the same values for the / key. If the keyboard is English, it prints one thing, if it is another, it prints something else. key := "/" scKey := GetKeySC(key) if(scKey){ scKey := Format("sc{:X}", scKey) }else{ scKey := key } MsgBox scKey Need to get always the same val...
by Tvlao
29 Feb 2024, 08:58
Forum: Ask for Help (v2)
Topic: Window drag with PostMessage 0xA1 and WebView
Replies: 2
Views: 192

Re: Window drag with PostMessage 0xA1 and WebView

This is from here: https://github.com/thqby/ahk2_lib/blob/master/WebView2/WebView2.ahk

Is this a library bug? Or is there no way to move the window when WebView is loaded?
by Tvlao
27 Feb 2024, 15:40
Forum: Ask for Help (v2)
Topic: Window drag with PostMessage 0xA1 and WebView
Replies: 2
Views: 192

Window drag with PostMessage 0xA1 and WebView

This window drag code works. The window is dragged. TGui := Gui('+Resize') TGui.Title := "TGui" TGui.Show("w300 h100") OnMessage(0x0201, WM_LBUTTONDOWN) WM_LBUTTONDOWN(wParam, lParam, msg, hwnd) { if wParam = 1{ PostMessage 0xA1, 2,,, TGui.Hwnd } } But if you load WebView into a window, then this wi...
by Tvlao
14 Feb 2024, 03:47
Forum: Ask for Help (v2)
Topic: PostMessage 0xA1 - Move Window
Replies: 2
Views: 119

Re: PostMessage 0xA1 - Move Window

But this doesn't work when the window is transparent.

Code: Select all

WinSetTransColor TGui.BackColor " 200", TGui
And would like to move any window like this:

Code: Select all

PostMessage 0xA1, 2,,, TGui.Hwnd
Without complicated coding.
by Tvlao
13 Feb 2024, 23:35
Forum: Ask for Help (v2)
Topic: PostMessage 0xA1 - Move Window
Replies: 2
Views: 119

PostMessage 0xA1 - Move Window

Need to move the window by pressing for example F1 + LButton. Like this: TGui := Gui('+Resize', "NWin") TGui.BackColor := "EEAA99" TGui.Show("x0 y0 w200 h100") F1 & LButton::{ While( getKeyState("LButton", "P") ) { PostMessage 0xA1, 2,,, TGui.Hwnd Sleep(20) } } But this does not move the window as s...
by Tvlao
27 Nov 2023, 03:25
Forum: Ask for Help
Topic: Ahk2Exe Error: Missing """ (thqby)
Replies: 4
Views: 920

Re: Ahk2Exe Error: Missing """ (thqby)

This still doesn't work for the Neutron library. Code: #Include %A_ScriptDir%\Neutron.ahk name := NeutronWindow("<div>Test</div>") name.Show("w819 h762") Neutron library: ; ; Neutron.ahk for AHKv2 v1.0.0 ; Copyright (c) 2022 Philip Taylor (known also as GeekDude, G33kDude) ; https://github.com/G33kD...
by Tvlao
25 Nov 2023, 06:47
Forum: Ask for Help
Topic: Ahk2Exe Error: Missing """ (thqby)
Replies: 4
Views: 920

Re: Ahk2Exe Error: Missing """ (thqby)

This is the code:

Code: Select all

str := "
(
    Test
)"

MsgBox str
by Tvlao
25 Nov 2023, 05:43
Forum: Ask for Help
Topic: Ahk2Exe Error: Missing """ (thqby)
Replies: 4
Views: 920

Ahk2Exe Error: Missing """ (thqby)

The code compiled here ( https://github.com/thqby/AutoHotkey_H/tree/alpha-h ) does not work with multiple strings. When the encryption checkbox is checked. 2023-11-25-13-38-20.png And when the resulting exe starts, it will be: 2023-11-25-13-40-13.png But it works if uncheck the encryption box. What ...
by Tvlao
29 Oct 2023, 07:06
Forum: AutoHotkey_H
Topic: CryptAES not working (thqby)
Replies: 1
Views: 1226

CryptAES not working (thqby)

How to get CryptAES to work? Nothing works.

Code: Select all

str := "test"

; encrypt
size := CryptAES(str, 8, "password", true)
MsgBox size
Prints: Error: Filed

This is the version of AHK_H v2 thqby - https://github.com/thqby/AutoHotkey_H#how-to-compile
by Tvlao
13 Sep 2023, 08:47
Forum: Ask for Help (v2)
Topic: Disabling default behavior for +WheelUp
Replies: 3
Views: 207

Disabling default behavior for +WheelUp

This does not disable default behavior. The "Test" message does not appear when the window is active. This still moves the window's horizontal scrollbar.
How to disable default behavior?

Code: Select all

$+WheelUp::
{
    MsgBox("Test")
    Return
}
by Tvlao
07 Sep 2023, 12:55
Forum: AutoHotkey_H
Topic: Ahk2Exe not working.
Replies: 1
Views: 1817

Ahk2Exe not working.

I downloaded Ahk2Exe from here - HotKeyIt /
Ahk2Exe - https://github.com/HotKeyIt/Ahk2Exe

But it doesn't work, error messages appear:
e1.png
e1.png (103.41 KiB) Viewed 1817 times
Or:
e2.png
e2.png (104.63 KiB) Viewed 1817 times
I start this file, here:
e3.png
e3.png (110.34 KiB) Viewed 1817 times
Windows 11.
What's wrong?
by Tvlao
07 Sep 2023, 09:42
Forum: AutoHotkey_H
Topic: Cannot compile AHK_H v.2. Cannot open source file: 'source\resources\AutoHotkey2.idl': No such file or directory
Replies: 0
Views: 849

Cannot compile AHK_H v.2. Cannot open source file: 'source\resources\AutoHotkey2.idl': No such file or directory

Assembly code downloaded from here - https://github.com/HotKeyIt/ahkdll/tree/alpha
Visual Studio 2019 is used for building.
The project does not compile, an error appears:
1.png
1.png (16.73 KiB) Viewed 849 times
3.png
3.png (40.53 KiB) Viewed 849 times
2.png
2.png (22.23 KiB) Viewed 849 times
The AutoHotkey2.idl file does not exist in the project. What is the problem?
by Tvlao
29 Jun 2023, 03:56
Forum: Ask for Help (v1)
Topic: A_PriorKey value convert to vk code
Replies: 1
Views: 156

A_PriorKey value convert to vk code

The script uses A_PriorKey to get the name of the previous key pressed, but it prints a letter, such as a dot . in the English layout, and ç in the Turkish layout. But i need to get the code of the pressed key (vk code), not the name, regardless of the layout. That is, when you press dot, you should...

Go to advanced search