Page 1 of 1

Help with clicking button

Posted: 22 Mar 2018, 03:04
by Tomer
hello,

is it possible to to click on the following button while its minimized ?

"Dont install"

Image
upload pictures to website

Re: Help with clicking button

Posted: 22 Mar 2018, 03:28
by BoBo
&Don't Install translates to me: press CTRL+D to press the "Don't Install"-button (bc a leading ampersand-character is used to label the following character as part of a hotkey).
Question, you wanna trigger a window-is-minimized (AKA invisible) "Don't Install"-button, right?! So, doing that we would guide you on how to push that invisible "Install"-button next to it as well.
Isn't that kinda suspicious??

Re: Help with clicking button

Posted: 22 Mar 2018, 03:49
by Tomer
ALT + D works but only when the window actived,
i want the script click the button when the window is minimized or hidden.
possible ?

ps. "dont install" its just a example of many buttons i have, nothing suspicious!

Re: Help with clicking button

Posted: 22 Mar 2018, 04:02
by divanebaba
I'm not 250% sure, while I don't have Win10, but on Win7, the classNN works for this command. So try following:

Code: Select all

Control, Check,, WindowsForms10.Button.app.0.ae65b0_r12_ad12, myWindowTitle
Instead of myWindowTitle put the your window title inside.
When you try, I will even know, if it works for hidden windows. :mrgreen: :mrgreen:

Re: Help with clicking button

Posted: 22 Mar 2018, 04:22
by Tomer
divanebaba wrote:I'm not 250% sure, while I don't have Win10, but on Win7, the classNN works for this command. So try following:

Code: Select all

Control, Check,, WindowsForms10.Button.app.0ae65b0_r12_ad12, myWindowTitle
Instead of myWindowTitle put the your window title inside.
When you try, I will even know, if it works for hidden windows. :mrgreen: :mrgreen:
its works good when the window is open on desktop (even when not actived),
but when its minimized its not works :(

Re: Help with clicking button

Posted: 22 Mar 2018, 04:25
by divanebaba
Thanks for the info.
I'm sorry, I don't know another solution.
Good luck. :crazy: :crazy: :mrgreen: :mrgreen:

How about using DetectHiddenWindows, On in auto execute section or if you use ahk_id instead of window title?

Re: Help with clicking button

Posted: 22 Mar 2018, 04:43
by Tomer
divanebaba wrote:Thanks for the info.
I'm sorry, I don't know another solution.
Good luck. :crazy: :crazy: :mrgreen: :mrgreen:

How about using c in auto execute section or if you use ahk_id instead of window title?
all the following works when window is open but not when minimized:

* DetectHiddenWindows, On
* ahk_exe instead win title
* name of the button instead the classNN

ive tryed also use WinMove to move the window outside the desktop but its not working aswell.
the button must appear on the screen to make it work.

thx for your help,
if anyone have a solution for this ill be happy
thanks

Re: Help with clicking button

Posted: 22 Mar 2018, 10:08
by Odlanir