Guest User

Untitled

a guest
Nov 30th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #include <IE.au3>
  2. #include <Excel.au3>
  3. Call("signin")
  4. Func signin()
  5. Global $oIE= _IECreate ("http://site23.way2sms.com/content/index.html?")
  6. Local $username = _IEGetObjByName($oIE,"username")
  7. Local $password = _IEGetObjByName($oIE,"password")
  8. Local $button = _IEGetObjById($oIE,"loginBTN")
  9. _IEFormElementSetValue ($username, "28")
  10. _IEFormElementSetValue ($password, "NIT")
  11. _IEAction($button,"click")
  12. EndFunc
  13.  
  14. sleep(5000)
  15. MouseClick($mouse_click_left,186,351)
  16. Local $oExcel_1 = _excel_open()
  17. Local $sworkbook = "C:numbers.xlsx"
  18. local $oWorkbook = _excel_bookopen($oExcel_1,$sWorkbook)
  19.  
  20.  
  21. Local $aResult = _Excel_RangeRead($oWorkbook, 1, "A2:B7", 2)
  22. For $i = 0 To 7
  23. Local $text = _IEGetObjByName($oIE,"message")
  24. _IEFormElementSetValue ($text,$aResult[$i][0])
  25.  
  26. Local $Mobileno = _IEGetObjByName($oIE,"mobile")
  27. _IEFormElementSetValue ($Mobileno, $aResult[$i][1])
  28.  
  29. Local $button1 = _IEGetObjById($oIE,"send")
  30. _IEAction($button1,"click")
  31.  
  32. Next
  33. sleep(5000)
Add Comment
Please, Sign In to add comment