Rotem Posted April 19, 2013 Share Posted April 19, 2013 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. Link to comment Share on other sites More sharing options...
Rotem Posted April 26, 2013 Author Share Posted April 26, 2013 Bump. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 26, 2013 Share Posted April 26, 2013 See if this, 19 Why does the Ctrl key get stuck down after I run my script?, helps you out. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Rotem Posted April 26, 2013 Author Share Posted April 26, 2013 Seems to be an effective workaround. Whenever shift, alt, ctrl or mouse buttons are used, I just prevent send from working, it's not exactly a fix but it is a nice workaround. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now