Jump to content

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


 Share

Recommended Posts

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
Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...