Jump to content
Sign in to follow this  
VicTT

Attempting to automate AP Tuner

Recommended Posts

http://www.aptuner.com/ftp/apmain/APTunerInstall308.exe

The above is a link to the application I'm attempting to automate. AutoIt Window Info reveals 3 controls of Class "AfxWnd80s" that I suspect are Windows on their own. I am attempting to get handles to them and extract a class list (though I'm not exactly sure this is the way to go around it):

$subwinhandle returned is not null (for i={1,3} - AfxWnd80s1 has no ID in AutoIt Window info, Ctrl_ID(AfxWnd80s2)=1, Ctrl_ID(AfxWnd80s3)=3 ), but WinGetClassList does not return anything for i={1,2,3}
I'm attempting to read some text from AfxWnd80s2 (Text below Cents and Note) in the area denoted 2 in the screenshot.
I'm not even sure this *can* be done, and if the handles returned by GetDlgItem are valid, or even if I'm calling the right function to get them.
Any help would be greatly appreciated.
Thank you in advance.
#include <WinAPI.au3>
$h=WinGetHandle("AP Tuner")
$x="AfxWnd80s"
for $i=1 to 3
$y=ControlGetHandle($h,"","[CLASS:"&$x&"; INSTANCE:"&$i&"]")
$subwinhandle=_WINAPI_GetDlgItem($h,$i)
$z=_WinGetClassList($subwinhandle)
MsgBox(0,$subwinhandle,$z)
next
 
 
 

 

post-5442-0-64971800-1416751388_thumb.pn

Edited by VicTT

[quote]Together we might liveDivided we must fall[/quote]

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...