Followers 0

# ControlSend Issue

## 8 posts in this topic

This script was working fine in my computer, but it's not working in my Windows Server if I'm not logged.

Now the script have another problem, the script can't found the word "¡Hola" in the windows title.

The problem is caused for the first character "¡", because this work with the windows title "Nueva".

ShellExecute("C:\path\to\chrome.exe", "", "", "", @SW_MAXIMIZE)
Sleep(2000)

ControlSend("Nueva", "", "", "www.myweb.com{Enter}")
Sleep(5000)

ControlSend("¡Hola", "", "[X:561; Y:122]", $email) Sleep(500) ControlSend("¡Hola", "", "[X:725; Y:122]",$password)
Sleep(500)

##### Share on other sites

Just change the titlematchmode to "substr" in stead of "starting with".

Jos

Live for the present,
Dream of the future,
Learn from the past.

##### Share on other sites

#3 ·  Posted (edited)

Just change the titlematchmode to "substr" in stead of "starting with".

Jos

It's working now, thanks!

Anyway I can't take it done because the ControlSend doesn't send it to the right position.

This should send the keys to "[X: 561; Y: 122]"

There's an input field where I need write the email, the window title is "Hola" and the postition of the input field is "[X: 561; Y: 122]"

##### Share on other sites

I'm not sure about this, but i don't think you can have a space between the X/Y and the coordinate.

Try: ControlSend("Hola", "", "[X:561; Y:122]", \$email)

I have tried it before and it's the same.

This should work fine, I don't understand.

##### Share on other sites

#6 ·  Posted (edited)

I have tried it before and it's the same.

This should work fine, I don't understand.

You can easily test if the windows title is recognized by testing with WinExists().

What information is shown by au3info for the control you are trying to do a ControlSend for?

The X & Y are these relative to the Programs Window or to the screen?

Jos

Edited by Jos

Live for the present,
Dream of the future,
Learn from the past.

##### Share on other sites

You can easily test if the windows title is recognized by testing with WinExists().

What information is shown by au3info for the control you are trying to do a ControlSend for?

The X & Y are these relative to the Programs Window or to the screen?

Jos

I have used the coords from ControlClick Coords at Control tab.

Coord mode is screen.

I can't take ControlClick and ControlSend working like as MouseClick and Send.

##### Share on other sites

This should be easy if I can use MouseClick and Send there.

Maybe it's possible to change the logout setting in windows servers.

Anyone know if it's possible to change it ?