PraveenKumarNatarajan Posted December 20, 2019 Share Posted December 20, 2019 I am trying to run the calculator standalone application in windows and trying to perform the addition operation by using the following code snippet. Run("C:\Windows\System32\calc.exe") WinWaitActive("Calculator") Sleep(2000) Send("30") Sleep(2000) Send("-") Sleep(2000) Send("20") Sleep(2000) Send("{ENTER}") Sleep(6000) WinClose("Calculator") But, it is not working. The other operations like subtraction, multiplication and division is working without any issue. Do we have any other dependency on the addition operation which I am missing? Link to comment Share on other sites More sharing options...
Danp2 Posted December 20, 2019 Share Posted December 20, 2019 If you read the help file entry for Send, you would find the following -- Quote '+' This tells AutoIt to send a SHIFT keystroke; therefore, Send("Hell+o") would send the text "HellO". Send("!+a") would send "ALT+SHIFT+a". You need to change your Send command to use "{+}" instead. Another option would be to set the optional flag parameter to $SEND_RAW. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
PraveenKumarNatarajan Posted December 20, 2019 Author Share Posted December 20, 2019 @Danp2 Thank you so much. It is working as expected 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