Jump to content

I need the control IDs from a Window


 Share

Recommended Posts

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:

Link to comment
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æ
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

Thank you Smoke. If I find that ClassNameNN also changes, I'll use this function.

But I can't help customizing it, you know. I have to understand something if I will use it..

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...