Click Button with VBS Script

Closed Posted Dec 2, 2015 Paid on delivery
Closed Paid on delivery

I have a VBS script that executes and runs the iMacro plugin in IE. How ever a trial ended window pops up and prevents the macro from running until you click continue with trial.

I tried adding code to send the enter key but it does not work. If I press enter on my keyboard the window goes away.

If you press ALT+TAB and flip through the open windows, you can see the imacro window title is blank.

Does any one know how to click the continue trial button or send the enter key to the window? Please see attachment image.

here is my vbs code:

Option Explicit

Dim iim1, iret

set iim1= CreateObject ("imacros")

iret = [login to view URL]("-ie", true, 300)

iret = [login to view URL]("chicken_coop", 30)

set WshShell = [login to view URL]("[login to view URL]")

[login to view URL](5000)

[login to view URL] ""

[login to view URL] "{ENTER}"

[login to view URL] "{ENTER}"

if iret < 0 Then

MsgBox "Error in Macro#1: "+ cstr (iret) +[login to view URL]()

End If

iret = [login to view URL]("Script completed.")

MsgBox "Close Internet Explorer"

iret = [login to view URL](1)

[login to view URL](0)

Script Install VB.NET Visual Basic Visual Basic for Apps

Project ID: #9029791

About the project

31 proposals Remote project Active Jan 8, 2016