motormad Posted October 31, 2010 Share Posted October 31, 2010 (edited) i would like to fill in a password and open a program. This with controlsen and controlklik. in a prvious post of mine people made me clear that its faster and more efficient. but the program would not open. sombody knows why ? This would not work func Open_test() WinWaitActive("[CLASS:ThunderRT5Form]") ConsoleWrite ( " open" & @CRLF) ControlFocus("[CLASS:ThunderRT5Form]", "", "[CLASS:ThunderRT5TextBox]") ControlSend("[CLASS:ThunderRT5Form]", "", "[CLASS:ThunderRT5TextBox; INSTANCE:1]", "YS") ControlClick("[CLASS:ThunderRT5Form]", "", "[CLASS:ThunderRT5CommandButton; INSTANCE:1]") ConsoleWrite ( "PASWOORD INGEVULD EN GESTART" & @CRLF) EndFunc ;--> Open_test() And this will. func Open_test() WinWaitActive("[CLASS:ThunderRT5Form]") ConsoleWrite ( "NIKMANS is open" & @CRLF) Send("YS") Send("{TAB}") Send("{ENTER}") ConsoleWrite ( "NIKMANS PASWOORD INGEVULD EN GESTART" & @CRLF) EndFunc ;--> Edited October 31, 2010 by motormad Link to comment Share on other sites More sharing options...
MvGulik Posted October 31, 2010 Share Posted October 31, 2010 motormad ... de standaard taal is engels hier. En je schijnt daar geen probleem mee te hebben gehad in je eerdere berichten. So what has changed? "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
motormad Posted October 31, 2010 Author Share Posted October 31, 2010 motormad ... de standaard taal is engels hier. En je schijnt daar geen probleem mee te hebben gehad in je eerdere berichten.So what has changed?sorry .Kben just wakker.En heb een beetje haarpijn van het bier van gister. Link to comment Share on other sites More sharing options...
MvGulik Posted October 31, 2010 Share Posted October 31, 2010 Aha, ok. Zachtjes typen dan maar. "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
wakillon Posted October 31, 2010 Share Posted October 31, 2010 Try to use WinActivate before WinWaitActive ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Tvern Posted October 31, 2010 Share Posted October 31, 2010 It looks like the controlclick is being send to the wrong control. (Is there a close button by any chance?). If you let the script set the text and then manually click the button, does that work? Have you double checked the class and especially the instance of the button you want to click? Link to comment Share on other sites More sharing options...
motormad Posted October 31, 2010 Author Share Posted October 31, 2010 It works fine now on a other pc. For some reason i think it wont work on my laptop. Its a slow laptop @ the moment.(rendering now) There is a close button at the top. I think it kliks the wrong button. thanx for your help . Link to comment Share on other sites More sharing options...
motormad Posted October 31, 2010 Author Share Posted October 31, 2010 Wakillon, i use WinActivate also now. thanx Link to comment Share on other sites More sharing options...
Developers Jos Posted October 31, 2010 Developers Share Posted October 31, 2010 sorry .Kben just wakker.En heb een beetje haarpijn van het bier van gister.mmm haarpijn SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
motormad Posted October 31, 2010 Author Share Posted October 31, 2010 is it possible to make chages to a topic titel? Tis one is in the wrong language Link to comment Share on other sites More sharing options...
MvGulik Posted October 31, 2010 Share Posted October 31, 2010 Edit first message in full edit mode. Should allow you to change the title. (not sure though if its a post-count related feature.) "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... 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