rush4hire Posted February 16, 2007 Share Posted February 16, 2007 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!! Decompilable game code manager for Dark Deeds 6 for Warcraft IIIA web broadcast TiVo like thing.. (this example is for 3abn.org)Finally.. AutoIt Pac-Man Digital Hymn Player Link to comment Share on other sites More sharing options...
Josbe Posted February 16, 2007 Share Posted February 16, 2007 You tried ControlGetHandle? AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
rush4hire Posted February 17, 2007 Author Share Posted February 17, 2007 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æ Decompilable game code manager for Dark Deeds 6 for Warcraft IIIA web broadcast TiVo like thing.. (this example is for 3abn.org)Finally.. AutoIt Pac-Man Digital Hymn Player Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 17, 2007 Moderators Share Posted February 17, 2007 (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 http://www.autoitscript.com/forum/index.ph...l=_CtrlGetByPos Edited February 17, 2007 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 More sharing options...
rush4hire Posted February 17, 2007 Author Share Posted February 17, 2007 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.. Decompilable game code manager for Dark Deeds 6 for Warcraft IIIA web broadcast TiVo like thing.. (this example is for 3abn.org)Finally.. AutoIt Pac-Man Digital Hymn Player Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now