Jump to content



Photo

Window Info and secret button detection


  • Please log in to reply
5 replies to this topic

#1 EdDyreen

EdDyreen

    Wayfarer

  • Active Members
  • Pip
  • 95 posts

Posted 23 June 2012 - 06:40 PM

'
I have an application with several buttons that all show up in Window Info as one and the same button.
These 'child' buttons look like a comboSelectionBox, an editBox and a button.

Then there are several other buttons and edit boxes.

Dunno how I figured it out, maybe a code remainder after a version update or I noticed the first detectable button/editBox/.. is an instance 2 !

No idea why I can click button1/Edit1/... that isn't detected by Window Info.
Some sort of overLay going on ?
But if it is overLayed, then why can I click these individual child buttons !?

Can I assume that if the first detected button is an instance 2 an instance 1 must always exist ?
Any idea's how to detect secret 'child' buttons, that are not detected by window Info ?
:D

Edited by EdDyreen, 23 June 2012 - 06:59 PM.

• Any number images • Images of any size • Any number of URLs • Any number of lines





#2 JohnOne

JohnOne

    John

  • Active Members
  • PipPipPipPipPipPip
  • 8,864 posts

Posted 23 June 2012 - 06:52 PM

Try using spy++ or spy++ control detection logic from wininfo options.
AutoIt Absolute Beginners Require a serial
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)

#3 EdDyreen

EdDyreen

    Wayfarer

  • Active Members
  • Pip
  • 95 posts

Posted 23 June 2012 - 07:04 PM

'
spy++ control detection logic was enabled during detection, it is enabled by default.

Can I assume that if the first detected button is an instance 2 an instance 1 must always exist ?
If so, a develloper might decide to make hidden buttons last so they would have the higher instance,
and noone would notice unless they tested explicitly.
:D

Edited by EdDyreen, 23 June 2012 - 07:49 PM.

• Any number images • Images of any size • Any number of URLs • Any number of lines

#4 JohnOne

JohnOne

    John

  • Active Members
  • PipPipPipPipPipPip
  • 8,864 posts

Posted 23 June 2012 - 10:01 PM

I've learnt not to assume anything in the world of coding.

But if you think so, I suppose you better make the worlds software developers
aware of your thoughts.
AutoIt Absolute Beginners Require a serial
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)

#5 EdDyreen

EdDyreen

    Wayfarer

  • Active Members
  • Pip
  • 95 posts

Posted 24 June 2012 - 11:49 AM

'
Ok, thanks for having helped me with my game bot, it is fully functional now, no further assistance needed, thanks !
:D

Edited by EdDyreen, 24 June 2012 - 11:50 AM.

• Any number images • Images of any size • Any number of URLs • Any number of lines

#6 JohnOne

JohnOne

    John

  • Active Members
  • PipPipPipPipPipPip
  • 8,864 posts

Posted 24 June 2012 - 11:56 AM

You're welcome.
AutoIt Absolute Beginners Require a serial
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users