yangmo Posted September 9, 2006 Share Posted September 9, 2006 (edited) as the picture i have postedhow can i control the complex choise botton with autoit3?Expecting your helps...... Edited September 9, 2006 by yangmo 地球人都知道走人要厚道!---Human being all know that it is important to be a generous man... Link to comment Share on other sites More sharing options...
AzKay Posted September 9, 2006 Share Posted September 9, 2006 Complex choice button? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 9, 2006 Share Posted September 9, 2006 as the picture i have postedhow can i control the complex choise botton with autoit3?Expecting your helps......All your complex choise buttons are belong to US! All seriousness aside... What does AutoIT info show for the controls you are interested in? I'm assuming you are talking about the checkbox controls that seem to be listed inside a ListView box. There is a chance that is a custom control that AutoIT can't do anything with, but first check it out with AutoIT Info.Cheers! Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
sadicq Posted September 9, 2006 Share Posted September 9, 2006 (edited) Well guys, I think that dialog is the 'Performance Options' page (System properties -> advanced -> Performance Options) And here's an old script I used to get to the 'Custom' button and then click apply.Run("rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl") WinWaitActive("System Properties") Send("{RIGHT}{RIGHT}{RIGHT}{TAB}{SPACE}") WinWaitActive("Performance Options") ControlClick("Performance Options","","Button4") Send("{TAB}{SPACE}{SPACE}{TAB}{SPACE}") WinWaitActive("System Properties") Send("{TAB}{TAB}{TAB}{TAB}{TAB}{SPACE}") Edited September 9, 2006 by sadicq Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 10, 2006 Share Posted September 10, 2006 Well guys, I think that dialog is the 'Performance Options' page (System properties -> advanced -> Performance Options) And here's an old script I used to get to the 'Custom' button and then click apply.Run("rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl") WinWaitActive("System Properties") Send("{RIGHT}{RIGHT}{RIGHT}{TAB}{SPACE}") WinWaitActive("Performance Options") ControlClick("Performance Options","","Button4") Send("{TAB}{SPACE}{SPACE}{TAB}{SPACE}") WinWaitActive("System Properties") Send("{TAB}{TAB}{TAB}{TAB}{TAB}{SPACE}") If that is the system properties window in Chinese (or something), then everything in it could be set more directly with registry hacks and other back-end management techniques that do not require scripting Send() to the GUI. If yangmo could tell us exactly what setting needed changing, we could be more help? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
sadicq Posted September 10, 2006 Share Posted September 10, 2006 Well that was what my script was doing: applying the registry tweaks. I don't know why, but unlike other cases, windows does not like to modify it directly in the registry. Even though you do that, you must manually select custom (the options you regtweaked will be there) and hit apply. And I'm not 100% sure that is the system properties windows, I was judging by its layout. (I don't speak Chinese) Link to comment Share on other sites More sharing options...
yangmo Posted September 10, 2006 Author Share Posted September 10, 2006 If that is the system properties window in Chinese (or something), then everything in it could be set more directly with registry hacks and other back-end management techniques that do not require scripting Send() to the GUI. If yangmo could tell us exactly what setting needed changing, we could be more help? I'm so sorry,I'm not good at english and i don't know how to describe my problem...Actually,i just posted that pic for an example... in fact,i wish to control the "complex control box" which you called "checkbox controls just my meaningin a setup choice of a software.sorry to everyone! really sorry... 地球人都知道走人要厚道!---Human being all know that it is important to be a generous man... Link to comment Share on other sites More sharing options...
yangmo Posted September 10, 2006 Author Share Posted September 10, 2006 Well guys, I think that dialog is the 'Performance Options' page (System properties -> advanced -> Performance Options) And here's an old script I used to get to the 'Custom' button and then click apply.Run("rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl") WinWaitActive("System Properties") Send("{RIGHT}{RIGHT}{RIGHT}{TAB}{SPACE}") WinWaitActive("Performance Options") ControlClick("Performance Options","","Button4") Send("{TAB}{SPACE}{SPACE}{TAB}{SPACE}") WinWaitActive("System Properties") Send("{TAB}{TAB}{TAB}{TAB}{TAB}{SPACE}") thank you for your help and perhaps i'm an idiot . I hate i just can't describe my problem in english... What i means is how to control the check box-----the complex options...(to choose someone and cancel some others automatically) ------assuming that i have open the dialog successfully... thank you once again... 地球人都知道走人要厚道!---Human being all know that it is important to be a generous man... Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 10, 2006 Moderators Share Posted September 10, 2006 thank you for your help and perhaps i'm an idiot . I hate i just can't describe my problem in english...What i means is how to control the check box-----the complex options...(to choose someone and cancel some others automatically) ------assuming that i have open the dialog successfully...thank you once again... I think your english is pretty good myself Look at ControlCommand() in the help file. 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...
yangmo Posted September 12, 2006 Author Share Posted September 12, 2006 I think your english is pretty good myself Look at ControlCommand() in the help file.Thank you for your advice. I'll learn it with my heart. 地球人都知道走人要厚道!---Human being all know that it is important to be a generous man... Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 12, 2006 Share Posted September 12, 2006 Thank you for your advice. I'll learn it with my heart.Works better with the head... Have you tried running AutoIT Info tool on that window? Does it give you individual control IDs for the checkboxes, or just one control ID for the whole list? A screen shot of the AutoIT Info display with the mouse over one of the checkboxes would speak volumes. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
yangmo Posted September 14, 2006 Author Share Posted September 14, 2006 (edited) Works better with the head... Have you tried running AutoIT Info tool on that window? Does it give you individual control IDs for the checkboxes, or just one control ID for the whole list? A screen shot of the AutoIT Info display with the mouse over one of the checkboxes would speak volumes. Do you mean this picture??? I don't know whether it is the right picture you want to have a look. Edited September 14, 2006 by yangmo 地球人都知道走人要厚道!---Human being all know that it is important to be a generous man... Link to comment Share on other sites More sharing options...
Bert Posted September 14, 2006 Share Posted September 14, 2006 That be the tool! Now, after you click on the control you want to interact with, do a ctrl+alt+f. THis will freeze the info tool so you can get the info you need on the control in question to post into your script. The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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