Search found 7 matches

by m904begley
24 Aug 2019, 14:06
Forum: Ask For Help
Topic: Am I misapplying OnMessage()? Topic is solved
Replies: 13
Views: 1850

Re: Am I misapplying OnMessage()? Topic is solved

Your solution worked beautifully, tmplinshi! I was so wrapped up in trying to understand DllCall that I completely overlooked the WinWait command. That was the final obstacle to completing my script. Hopefully I can finish it now without further assistance. I will also be studying your code snippet ...
by m904begley
23 Aug 2019, 15:45
Forum: Ask For Help
Topic: Am I misapplying OnMessage()? Topic is solved
Replies: 13
Views: 1850

Re: Am I misapplying OnMessage()? Topic is solved

@Odlanir Right. But it's better to get the target hwnd before OnMessage started, since ShellMessage function will be triggered frequently by many events such as HSHELL_WINDOWACTIVATED, etc.. When HSHELL_WINDOWDESTROYED event is received, the window is already destroyed, so WinGet, hwnd, ID, ahk_cla...
by m904begley
22 Aug 2019, 20:03
Forum: Ask For Help
Topic: Am I misapplying OnMessage()? Topic is solved
Replies: 13
Views: 1850

Re: Am I misapplying OnMessage()? Topic is solved

Thanks for the reply, tmplinshi. Wow, this looks way above my paygrade. I DL'd MsgFilter and unzipped it into my working directory. When I run the script it opens Notepad but doesn't seem to be calling WM_Close when I close Notepad. Msgbox isn't popping up. Any ideas?
by m904begley
22 Aug 2019, 17:23
Forum: Ask For Help
Topic: Am I misapplying OnMessage()? Topic is solved
Replies: 13
Views: 1850

Re: Am I misapplying OnMessage()? Topic is solved

Thanks, Learning One, but this isn't what I need because the script pauses after the WinWaitClose command. I need the script to constantly monitor the window while continuing to run the script. Then, respond with an alert when the Close button is pressed. I hope I'm explaining it clearly enough.
by m904begley
22 Aug 2019, 17:01
Forum: Ask For Help
Topic: Am I misapplying OnMessage()? Topic is solved
Replies: 13
Views: 1850

Am I misapplying OnMessage()? Topic is solved

Hello, everyone... I need my script to monitor an application (e.g. Notepad) and to respond if the window closes for any reason. I've been trying to use OnMessage() with no success so I know I'm probably barking up the wrong tree. I've studied the documentation but I just can't seem to grasp it. I'd...
by m904begley
15 Aug 2019, 20:06
Forum: Ask For Help
Topic: How to extract filename only without path? Topic is solved
Replies: 3
Views: 464

Re: How to extract filename only without path? Topic is solved

Many thanks, gregster! That's exactly what I needed and what I've been searching for in the documentation for hours. Apologies for asking such a basic question. I'm still new at this.
by m904begley
15 Aug 2019, 18:43
Forum: Ask For Help
Topic: How to extract filename only without path? Topic is solved
Replies: 3
Views: 464

How to extract filename only without path? Topic is solved

Ok, I'm trying to extract the filename only without the path or extension when I use FileSelectFile but it keeps giving me the entire path and the extension. Is that possible and if not, is there a way to extract the filename AFTER the full path has been written to an OutputVar? Thanks for any help!

Go to advanced search