# ControlSend Issue

## Recommended Posts

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

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

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 ?

## Create an account

Register a new account

×

• Wiki

• Back

• Git
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.48110446333885193, "perplexity": 5363.3119725521765}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-13/segments/1521257647777.59/warc/CC-MAIN-20180322053608-20180322073608-00719.warc.gz"}