The GUI is missing mouse events

Ask for help, how to use AHK_H, etc.
arcticir
Posts: 471
Joined: 17 Nov 2013, 11:32

The GUI is missing mouse events

31 Jul 2017, 03:56

If the GUI uses the "-Caption" parameter, its GDI control will not be able to respond to mouse events.


Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

HotKeyIt
Posts: 1501
Joined: 29 Sep 2013, 18:35
Contact:

Re: The GUI is missing mouse events

31 Jul 2017, 17:28

Looks fine for me when I add a ToolTip for example, not sure about WriteConsole code:

Code: [Select all] [Download] GeSHi © Codebox Plus

WM_MOUSEMOVE(w,l,m,h){
static i:=1
ToolTip A_TickCount
ct(i++ "`t" h "`n")
}
arcticir
Posts: 471
Joined: 17 Nov 2013, 11:32

Re: The GUI is missing mouse events

31 Jul 2017, 20:21

Will the picture trigger a prompt?

WIN8 64 AHK32/64

Image
arcticir
Posts: 471
Joined: 17 Nov 2013, 11:32

Re: The GUI is missing mouse events

01 Aug 2017, 00:20

Another problem, unable to create this WINAPI function:

Code: [Select all] [Download] GeSHi © Codebox Plus

name_size := 1255
VarSetCapacity(name, name_size )
GetModuleFileNameExW(ProcessExist(),0, &name, name_size )
MsgBox name


Code: [Select all] [Download] GeSHi © Codebox Plus

Error:  Call to nonexistent function.

Specifically: GetModuleFileNameExW(ProcessExist(),0, &name, name_size )

Line#
001: name_size := 1255
002: VarSetCapacity(name, name_size )
---> 003: GetModuleFileNameExW(ProcessExist(),0, &name, name_size )
004: MsgBox name
005: Exit
HotKeyIt
Posts: 1501
Joined: 29 Sep 2013, 18:35
Contact:

Re: The GUI is missing mouse events

06 Aug 2017, 16:02

With regards to gui you need -Caption: k:=GuiCreate("+E0x80000 0x10000000 -Caption +Parent" gui.hwnd).

GetModuleFileNameExW is not included in winapi because it is in different modules depending on windows version and I had no code to determine whether it is in psapi or kernel32, there are a few of these functions.
Probably I can try to implement that it first tries to load from kernel32 and when it fails from psapi but I am not sure.
arcticir
Posts: 471
Joined: 17 Nov 2013, 11:32

Re: The GUI is missing mouse events

06 Aug 2017, 22:21

thank you very much.

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 1 guest