roofninja Posted January 11, 2007 Posted January 11, 2007 Is there a way to give a checkmark box with text a ClassNameNN or Control ID? I don't understand why, but it keeps on changing. Everytime the PC reboots or program restarts, it changes the ClassNameNN and Control ID. As you can see, I have found a few that repeat but I can't cover every single one. If you have a better solution to this please bring it up. I am at a dead end here. CODE;this is to change the updates for adobe reader 6 #NoTrayIcon global $titlet1 = "Preferences" run ("C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe") winwaitactive("Adobe Reader") send ("^k") ;ctrl_k, opens the preferences ;ClassNameNN: ListBox1 controlfocus ($titlet1,"","ListBox1") send ("{DOWN 17}") ;this moves the cursor down 17 to get to the bottom sleep (4000) ;Control ID:1919905659, ClassNameNN: ComboBox1, Text: none ;this is a combobox that has to change to Manually send ("!c") ;this activates the dropdown box send ("{DOWN 2}") ;this drops down to the bottom of the list ;unchecks the checkmark ;one of the ClassNameNN must work. ;Control ID: 1919905663, ClassNameNN: Button6, Text: &Display notification dialog at startup ;Control ID: 1919905679, ClassNameNN: Button11, Text: RENAMEDBYADMWHILEHIDDENTOALLOWDUPLICATEACCELERATORS ;Control ID: 1919905856, ClassNameNN: Button74, Text: &Display notification dialog at startup ;Control ID:1919905838, ClassNameNN: Button69 controlcommand ($titlet1,"&Display notification dialog at startup","Button6","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button11","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button74","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button69","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button61","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button38","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button73","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button96","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button90","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button81","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button12","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Button36","UnCheck","") controlcommand ($titlet1,"&Display notification dialog at startup","Static64","UnCheck","") ;Title: Adobe Reader ;ClassNameNN:Button3, Text: &No if winexists ("Adobe Reader")=1 then send ("!n") ;Control ID: 1, ClassNameNN: Button1, Text: OK controlclick ($titlet1,"OK","Button1","left",1) winclose("Adobe Reader") ;this is to close the application RUN . . . Slide . . . TAG . . . Your out . . . PAINTBALL !!!
Moderators SmOke_N Posted January 11, 2007 Moderators Posted January 11, 2007 You can probably use _CtrlGetByPos() 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.
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