Advertisement
Grinya90

Проверка Кт

Jan 22nd, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.88 KB | None | 0 0
  1.  
  2. #cs ----------------------------------------------------------------------------
  3.  
  4.  AutoIt Version: 3.3.14.0
  5.  Author:         Grinya90
  6.  
  7.  Script Function:
  8.     Автопроверка Кт
  9.  
  10. #ce ----------------------------------------------------------------------------
  11.  
  12. ; Script Start - Add your code below here
  13.  
  14. UDPStartup()
  15. $socket = UDPBind("192.168.0.10",54321)
  16. While 1
  17. $data = UDPRecv($socket,50)
  18.    If $data <> "" Then CDTray("D:","open")
  19.  
  20. If DriveStatus("d:")="READY" Then
  21. Run("D:\PicassoViewer.exe")
  22.  
  23. WinWaitActive("Picasso_Viewer")
  24. WinActivate("Picasso_Viewer")
  25. Sleep(1000)
  26. MouseClick ("left",834,426,1,0)
  27.  
  28. WinWaitActive("Ez3D Plus")
  29. WinWaitClose("Ez3D Plus")
  30.  
  31. ProcessClose("PicassoViewer.exe")
  32.  
  33. Sleep(2000)
  34.  
  35. CDTray("d:","open")
  36.  
  37. Sleep(15000)
  38.  
  39. CDTray("d:","closed")
  40.  
  41. DirRemove("C:\Ez3D2009\Picasso",1)
  42. DirCreate("C:\Ez3D2009\Picasso")
  43.  
  44. EndIf
  45.  
  46. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement