Asked — Edited
Resolved Resolved by fredebec!

Calling Skycams From ARC

I wanted to bring up skycams after directing my robot to show them. The following code brings up the skycam I want, but I would like it to scroll down 2 clicks, and close out after a time period, returning to ARC. Steve S

$ISUcam = "http://www.cinewsnow.com/weather/skywatch-cameras/illinois-state";
Browser($ISUcam)
say("I have opened a browser on your computer to I S U")
sleep(3000)
$attributes = "/F /IM dllhost.exe"
sleep(3000)
Exec( "taskkill", $attributes )

ARC Pro

Upgrade to ARC Pro

Your robot can be more than a simple automated machine with the power of ARC Pro!

#9  

@Steve S, I have tried out your code and have it working so far as it opens up the skycam but it doesn't shut down after a specified time. Did you get it working so that it will close out after a time period and return to ARC ?

#10  

Technpro and fredebec, Thank you, I have not tried the scroll down yet, but I appreciate your help. Having it scroll down would be great.

bhouston, Yes, it returns back to ARC. I had to use the correct wording for my browser. I am running windows 8.1

$ISUcam = "http://www.cinewsnow.com/weather/skywatch-cameras/illinois-state"
Browser($ISUcam)
say("I have opened a browser on your computer to a sky camera at I S U")
sleep(4000)
$attributes = "/F /IM iexplore.exe"
sleep(5000)
Exec( "taskkill", $attributes )

EDIT- the ; is not suppose to be at the end of line one. Not sure why it showing up, make sure you delete it if you copy and paste.

#11  

@Steve, When I run it, it opens the page and then the Command Prompt window flashes on my screen and that's it. The browser page stays up. By "returns back to ARC" do you mean that it shuts down the browser and ARC comes back up on your screen?

#12  

@bhouston, are you using the exact same code than Steve? Just to be sure, is Internet Explorer your default browser ? Because, ARC will open the default browser, not specifically Internet explorer...

#13  

bhouston, That is how mine acted before I had the right browser wording. This is how it acts now.

#14  

Yes, I am using the same code. The browser is the probably the problem, I am using Google Chrome.

#15  

I have tried changing to this: $attributes = "/F /IM googlechrome.exe" No Luck. Any suggestions? Thanks

#16  

The name of Google Chrome is chrome.exe, not googlechrome.exe (open task manager on your computer to see the name of running tasks).

Now, an issue you might have is that when Chrome starts, it opens numerous instances of the chrome.exe process, one for every plugin, plus one per open tab. It is part of the "sandboxing" that keeps the entire browser from crashing if you have an issue with one extension or tab. I am not sure if taskkill will take out all instances, or just one of them, or if it will simply fail.

edit: Just tried it. It kills all instances. The next time you open Chrome it will show an error that it was not closed properly last time with the option to restore the previous session. You can just ignore the error and it will go away as soon as you go to a new page.

Alan