Jump to content
Sign in to follow this  
motormad

ControlSend vs Send (program wil not open after pasword set)

Recommended Posts

motormad

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.

:graduated:

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 by motormad

Share this post


Link to post
Share on other sites
MvGulik

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 ...
 

Share this post


Link to post
Share on other sites
motormad

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.

Share this post


Link to post
Share on other sites
MvGulik

Aha, ok. Zachtjes typen dan maar. :graduated:


"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 ...
 

Share this post


Link to post
Share on other sites
wakillon

Try to use WinActivate before WinWaitActive ! Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
Tvern

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?

Share this post


Link to post
Share on other sites
motormad

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 .

Share this post


Link to post
Share on other sites
motormad

Wakillon,

i use WinActivate also now.

thanx

Share this post


Link to post
Share on other sites
motormad

is it possible to make chages to a topic titel?

Tis one is in the wrong language :graduated:

Share this post


Link to post
Share on other sites
MvGulik

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 ...
 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×