Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Controls without a classnn???


  • Please log in to reply
3 replies to this topic
jsmain
  • Members
  • 126 posts
  • Last active: Oct 23 2017 06:24 PM
  • Joined: 11 Jul 2005

What is the best method for finding a controls location on a gui that has no classnn? specifically like those of a wpf interface?

 

If the window didn't resize, it probably wouldn't be an issue, but as it does, I'm confused on how to approach this.


Jeff Main

rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011

Use ImageSearch?


My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


jsmain
  • Members
  • 126 posts
  • Last active: Oct 23 2017 06:24 PM
  • Joined: 11 Jul 2005

Alright, That one got past me. Probably a mental block thinking it was a "PixelSearch"

 

So what I do, is capture a sample of the control I wish to capture in code, and use the imagesearch to locate it in the window.

I'll give it a try, Thanks!


Jeff Main

sinkfaze
  • Moderators
  • 6367 posts
  • Last active: Nov 30 2018 08:50 PM
  • Joined: 18 Mar 2008

You might do well to explore using jethrow's Acc Library.