I have used Custom MessageBox in several applications and like it.
I am trying to write a Tutorial which calls CMsgBox function and then is able to click any of the buttons on it.
The first button is named &Text. When I open the window, I can type a t or press the space bar and Button1, the Text named button is activated.
But, I have tried Send, ControlSend, ControlClick and cannot get any of them to work from another window. Doing Send, t will show the letter t on the following window.
I see CMsgBox has a loop that waits for buttons to be pressed. I've tried updating that also but to no avail.
If anyone uses this function regularly, can you try controlling it from another window and see what I'm talking about?
My CMsgBox code is simply:
AddType := CMsgBox("Add Item","Add which type of item?","*&Text|&Program|&Document|&Folder|&Link|&URL|&Batch|&Hotstring|&Cancel",,1)
I want to call this from one thread and activate any of the buttons from another window in the same program.
The original source code for Custom Messagebox is here https://autohotkey.com/board/topic/2957 ... m-buttons/
Help! How to send clicks or keys to the CMsgBox function
- divanebaba
- Posts: 805
- Joined: 20 Dec 2016, 03:53
- Location: Diaspora
Re: Help! How to send clicks or keys to the CMsgBox function
Try it withWhich name to determine for the button, use WindowSpy.
Code: Select all
Control, Check,, Button1, Name of my CMsgBox Window
Einfach nur ein toller Typ.
Who is online
Users browsing this forum: roysubs and 273 guests