PowerBuilder Function Call Calculator And Sendkeys gf_call_calculator_and_sendkeys
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
// Function Name : gf_call_calculator_and_sendkeys // Argument Name : (None) // Return Type : (None) Integer li_connect OleObject ole_wsh ole_wsh = Create OleObject li_connect = ole_wsh.ConnectToNewObject("WScript.Shell") ole_wsh.Run("calc") ole_wsh.AppActivate("Calculator", 100) Sleep(1000) ole_wsh.SendKeys("3{-}") Sleep(1000) ole_wsh.SendKeys("1") Sleep(1000) ole_wsh.SendKeys("=") Sleep(1000) ole_wsh.SendKeys("*4") Sleep(1000) ole_wsh.SendKeys("=") // 3 - 1 = 2 Then * 4 = 8 |
Good Luck!
Subscribe
Login
0 Comments
Oldest