Advertisement
Guest User

Untitled

a guest
Jul 11th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Option Explicit
  2.  
  3. 'Dim objWshShell
  4. Dim IE
  5. Dim Shell_Windows
  6. Dim oInputs
  7. Dim elm
  8.  
  9. 'Set objWshShell = Wscript.CreateObject("Wscript.Shell")
  10. Set IE = CreateObject("InternetExplorer.Application")
  11.  
  12.  
  13. With IE
  14.   .Visible = True
  15.   .Navigate "http://qprwva007.mpoad.local:81/jde/servlet/com.jdedwards.runtime.virtual.LoginServlet"
  16.  
  17.   Do While .Busy
  18.     WScript.Sleep 100
  19.   Loop
  20.  
  21.   .Document.getElementsByName("User").Item(0).Value = "FRPMPB"
  22.   .Document.getElementsByName("Password").Item(0).Value = "FRPMPB"
  23.   .Document.getElementsByName("Environment").Item(0).Value = "JPD7333"
  24.  
  25.   Set oInputs = .Document.getElementsByTagName("input")
  26.   For Each elm In oInputs
  27.     If elm.Value = "Connexion" Then
  28.       elm.Click
  29.       Exit For
  30.     End If
  31.   Next
  32.  
  33.   Do While .Busy
  34.     WScript.Sleep 100
  35.   Loop
  36.  
  37.   .Document.parentWindow.execScript "launchApp('FRPR1000', 'Visualisation+OF+m%e8re-matrice+au+pr%e9mast', '10', '01', getTaskViewsSelection(), 'OWHTML', '1')"
  38.  
  39.   Do While .Busy
  40.     WScript.Sleep 100
  41.   Loop
  42. End With
  43.  
  44. Dim objShell
  45. Set objShell = CreateObject("Shell.Application")
  46. Dim IE_count
  47. IE_count = objShell.Windows.Count
  48. Dim x
  49. For x = 0 To (IE_count - 1)
  50.   msgbox("foo")
  51. next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement