Jump to content

Recommended Posts

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

: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
Posted

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

Posted

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.

Posted

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?

Posted

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 .

Posted

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

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
×
×
  • Create New...