teunvisser Posted January 14, 2010 Share Posted January 14, 2010 Hi,I've been working on a script to make the installation of "Windows Media Player 11" automatic.Here is the script i've been making the start with:#include <GUIConstantsEx.au3> GUISetState(@SW_SHOW) Run('C:\Documents and Settings\ICT.SKOBA\Bureaublad\wmp11-windowsxp-x86-nl-nl.exe') WinWaitActive("Windows Media Player 11", "Bezig met uitpakken") WinWaitActive("Windows Media Player 11", "Vali&deren") Send("!d") WinWaitActive("Windows Media Player 11", "Ik ga &akkoord") Send("!a") WinWaitActive("Windows Media Player 11", "Systeemherstel is uitgeschakeld") Send("{ENTER}") ExitBut now i've bumped into the following problem:Its a radio button and dont know how to check it. I know its checked now but I did this manually.The point is that it needs to be checked automaticly.Can someone help me out?Thanx in advance,teunvisser Link to comment Share on other sites More sharing options...
Fire Posted January 15, 2010 Share Posted January 15, 2010 Look Here [size="5"] [/size] Link to comment Share on other sites More sharing options...
teunvisser Posted January 18, 2010 Author Share Posted January 18, 2010 I'm able to check the Radio Button now.. But now i need to click the "Voltooien" Button after checking the radio button. I've tried: #include <GUIConstantsEx.au3> GUISetState(@SW_SHOW) Run('C:\Documents and Settings\ICT.SKOBA\Bureaublad\wmp11-windowsxp-x86-nl-nl.exe') WinWaitActive("Windows Media Player 11", "Bezig met uitpakken") WinWaitActive("Windows Media Player 11", "Vali&deren") Send("!d") WinWaitActive("Windows Media Player 11", "Ik ga &akkoord") Send("!a") WinWaitActive("Windows Media Player 11", "Systeemherstel is uitgeschakeld") Send("{ENTER}") WinWaitActive("Windows Media Player 11", "&Snelle instellingen (aanbevolen)") Send("!s") Send("{TAB}") Send("{TAB}") Send("{ENTER}") Exit But Tabbing doesnt seem to work.. it doesnt autoclick the "voltooien" button. Any suggestions on what I should do? Thanx in advance, Teun Link to comment Share on other sites More sharing options...
teunvisser Posted January 18, 2010 Author Share Posted January 18, 2010 Bump Link to comment Share on other sites More sharing options...
teunvisser Posted January 18, 2010 Author Share Posted January 18, 2010 can some1 help me? Link to comment Share on other sites More sharing options...
whim Posted January 18, 2010 Share Posted January 18, 2010 (edited) googling WMP silent install yielded this: M$ silent install makerand: you're not supposed to bump your thread within 24hwhimedit: oops, sorry - it doesn't support WMP 11 Edited January 18, 2010 by whim Link to comment Share on other sites More sharing options...
teunvisser Posted January 18, 2010 Author Share Posted January 18, 2010 googling WMP silent install yielded this: M$ silent install makerand: you're not supposed to bump your thread within 24hwhimedit: oops, sorry - it doesn't support WMP 11I started this thread 4 days ago..And i'm sorry but this doesnt really help I need to know how to press the "voltooien" button after checking the radio button. "Snelle instellingen aanbevolen". Link to comment Share on other sites More sharing options...
jvanegmond Posted January 18, 2010 Share Posted January 18, 2010 (edited) Hi Teun, there are a variety of functions available which can automate windows without directly reproducing user input. This involves simulating the messages which Windows sends to the window if a button or control is pressed. You can use this to click the "Voltooien" button without someone actually clicking it. This means the window, in all likelyness, doesn't have to be active either. The functions to do this all start with Control, and can be found in the help file under Function Reference > Window Management > Controls. The function you are looking for to click the button is ingeniously named ControlClick. Hope this helps, Manadar Edited January 18, 2010 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
teunvisser Posted January 18, 2010 Author Share Posted January 18, 2010 The problem is not that i dont know how to click the button.. But the problem is that the screen does my !o before the actual "voltooien" screen is active.. WinWaitActive does NOT work.. i've tried about everything. Cant seem to figure it out! some1 give me the golden tip please , Teun ps. I've been trying to do it with TAB TAB TAB ENTER.. also this does NOT work >.< its like it doesnt recognize the Voltooien button. I'm out of ammo now.. dont know what to do! Link to comment Share on other sites More sharing options...
teunvisser Posted January 18, 2010 Author Share Posted January 18, 2010 Hi again everyone,I've been working on a script that makes the installing of the Dutch version of Windows Media Player 11 go automatic.But i'm suck on this one bit now and its driving me insane.The thing is:I'm able to check the Radiobutton.. thats real easy.But after I checked the radiobutton "Snelle Instellingen (Aanbevolen)"I want the click the button: "Voltooien".I've tried everything but i can't get the button to get clicked.. Its like it times-out after checking the Radiobutton and then it doesnt give his click to the "Voltooien" Button.I think the click on the "Voltooien" is done before the actual screen is active.I've tried everything but nothing seems to work.Here is my code:#include <GUIConstantsEx.au3> GUISetState(@SW_SHOW) Run('C:\Documents and Settings\ICT.SKOBA\Bureaublad\wmp11-windowsxp-x86-nl-nl.exe') WinWaitActive("Windows Media Player 11", "Bezig met uitpakken") WinWaitActive("Windows Media Player 11", "Vali&deren") Send("!d") WinWaitActive("Windows Media Player 11", "Ik ga &akkoord") Send("!a") WinWaitActive("Windows Media Player 11", "Systeemherstel is uitgeschakeld") Send("{ENTER}") WinWaitActive("Windows Media Player 11", "&Snelle instellingen (aanbevolen)") Send("!s") WinWaitActive("Windows Media Player 11", "Volt&ooien") Send("!o") ExitHope you guys can get me to the next step......... cause its really working on my nerves.Thanx,Teun Link to comment Share on other sites More sharing options...
Steveiwonder Posted January 18, 2010 Share Posted January 18, 2010 (edited) Try $WinTitle = "Windows Media Player 11" ControlClick($WinTitle, "", "Button1") I'm guessing the control ID is "button1" as its the first and only button. by using AutoIt Window Info tool GL Edited January 18, 2010 by Steveiwonder They call me MrRegExpMan Link to comment Share on other sites More sharing options...
teunvisser Posted January 18, 2010 Author Share Posted January 18, 2010 #include <GUIConstantsEx.au3> GUISetState(@SW_SHOW) Run('C:\Documents and Settings\ICT.SKOBA\Bureaublad\wmp11-windowsxp-x86-nl-nl.exe') WinWaitActive("Windows Media Player 11", "Bezig met uitpakken") WinWaitActive("Windows Media Player 11", "Vali&deren") Send("!d") WinWaitActive("Windows Media Player 11", "Ik ga &akkoord") Send("!a") WinWaitActive("Windows Media Player 11", "Systeemherstel is uitgeschakeld") Send("{ENTER}") WinWaitActive("Windows Media Player 11", "&Snelle instellingen (aanbevolen)") Send("!s") $WinTitle = "Windows Media Player 11" ControlClick($WinTitle, "", "Button9") Exit Like that? Link to comment Share on other sites More sharing options...
Steveiwonder Posted January 18, 2010 Share Posted January 18, 2010 Yeah like that You checked the Button Control ID and itas Button9? If so try They call me MrRegExpMan Link to comment Share on other sites More sharing options...
jvanegmond Posted January 18, 2010 Share Posted January 18, 2010 Please do not repost: http://www.autoitscript.com/forum/index.php?showtopic=108247 I already told you that you should use ControlClick. Perhaps try reading help file next time. I have reported this thread and I'm sure it will be closed soon. github.com/jvanegmond Link to comment Share on other sites More sharing options...
teunvisser Posted January 18, 2010 Author Share Posted January 18, 2010 Thanx so much guys it works now! Cant thank you enough I wont repost next time.. but my old topic didnt get any resposes.. this was the only way i supposed. 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