Sign in to follow this  
Followers 0
rush4hire

I need the control IDs from a Window

5 posts in this topic

I have this program from http://sdp.ppona.com/ that's used to record video or audio streams. I'm working on a script to work like a VCR, to record at certain times and to reconnect when it gets disconnected.

It works fine, but the control IDs keep changing, so I have to use the "AutoIt Window Info tool" every time I start the programs, and I have to change the ID in the script.

The classes never change and I can get all the classes with WinGetClassList

$temp = WinGetClassList  ( "SDP Multimedia" )
InputBox("","",$temp)

Thanks alot!! :whistle:

Share this post


Link to post
Share on other sites



Thanks Josbe, but that function requires a control ID, which is what I was trying to get.

I thought you need a numeric value which is what the Window Info tool gives you for a ControlID, but now I see that the ClassNameNN string will also work in place of ControlID. And so far this hasn't changed.

So instead of:

Func pushbut ($e)
ControlSend ( "SDP Multimedia", "", 918096, "!"&$e )
EndFuncoÝ÷ ØÞyÖ®¶­sdgVæ2W6'WBb33c¶R¤6öçG&öÅ6VæBgV÷Cµ4E×VÇFÖVFgV÷C²ÂgV÷C²gV÷C²ÂgV÷CµEFööÄ&#gV÷C²ÂgV÷C²b333²gV÷C²fײb33c¶R¤VæDgVæ

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

If you have the coords of the function you could use this, at the very least it should give you a better understanding of how WinGetClassList() works.

Edit:

Forgot the link :whistle:

http://www.autoitscript.com/forum/index.ph...l=_CtrlGetByPos

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  
Followers 0