Advertisement
alphauser420

calc

Mar 12th, 2024
2
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ; Open Calculator
  2. Run("calc.exe")
  3. WinWaitActive("Calculator")
  4. ; Add a brief delay (adjust as needed)
  5. Sleep(1000)
  6. ; Send the calculation command
  7. Send("2*4=")
  8. ; Wait for the result to appear (adjust the sleep time as needed)
  9. Sleep(2000)
  10. ; Close Calculator
  11. WinClose("Calculator")
  12.  
  13.  
  14. //b.Div
  15. Send("32/2=")
  16.  
  17. //c.Add
  18. Send("2")
  19. Sleep(500)
  20. Send("{+}")
  21. Sleep(500)
  22. Send("5")
  23. Sleep(500)
  24. Send("=")
  25.  
  26. //d.Sub
  27. Send("8"-"4=")
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement