Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

ControlSend Issues

$
0
0
  ControlSetText($window, "", 1038, "")
  Sleep(100)
  ControlSetText($window, "", 1038, $macro)
  Sleep(100)
  ControlSend($window, "", 1038, "{ENTER}")


I am using the above code to send change input bar text and then use enter to send it, this is inside a while loop.

I need it to basically do that action on a minimized window, this works fine but has a few cons.

At first, capslock was flickering so I added Opt("SendCapslockMode", 0), which solved that issue.

My other issue is that it messes up with ctrl/shift and double clicking.

Sometimes when I hold down ctrl/shift and it's like it isn't held down, I notice it with ctrl+c/v mostly.
And double clicking just doesn't always work.

If I remove those sleep(100)s, it'll be far more noticable.

I'd like to know if there's any solutions/workarounds to those issues.

Thanks.

Viewing all articles
Browse latest Browse all 12506

Trending Articles