Silverlight 4 Screen Capture - silverlight-4.0

I'm writing a timesheet helper utility in Silverlight 4. This will be a trusted out of browser application that will periodically ask the user (with a SL4 Notification Window) what they have been working on. What I'd like to do is have it capture images of their desktop (or better yet, active window) from time to time in order to remind them of what they have been working on since they last submitted their status report. Is this idea even possible? Do I need to use COM? If so, what COM component would I use?

I don't know of any installed COM object you could use -- you'd have to create one and install it.

Related

VB.NET - is there a way to programmatically create a scheduler just to call a certain url/api?

I have looked everywhere but I cant really find what I wanted. Here is the scenario. I have a web application, when a user clicks a button, it will send api request to the vendor to activate a device. The problem is, the vendor does not have the api method to set start and end time for the device. So, my idea now is, once i get the "green light" from the vendor to activate the machine, i will also programmatically schedule a task in the server to call my web application after 15 minutes to turn off the device (by url with query string, www.xxxx.aspx?deviceid=123).
really appreciate the help or any pointers on how to achieve this. thanks in advance!
Sorry about the way answer is typed i am on phone right now. it was fun researching for it and i would like to hear from you if it works
So assuming you have access to your api.
The way i think you can make it work is by using a backgroundworker in your api / web application it is a nuget you download to your web application
If you open and scroll in that link it has example talking about having background task similar to windows task schedular however for any type of webapplication it is open source project called backgroundworker and many task schedulers you can add on web application give it a try
https://www.hanselman.com/blog/HowToRunBackgroundTasksInASPNET.aspx

Mac Post Events to specific background windows

I am trying to create an accessibility app that will type in multiple windows at once, neither of which are owned by my app. For instance, let's say you have two Microsoft word documents open. When you hit a keystroke I want the command to go to both windows.
I have tried using Quartz events services, but it looks like it will only allow you to post to events either on a global or process level. But if two windows are running for the same process, how do I post to a specific window?
There's also the issue of the person typing in one window, while the content is being copied to the next.
Is it possible to post to a single window?
PS I know it's possible to do this in Windows
MacOS X includes a few tools which may be helpful. You should look into the Accessibility framework, Automator actions, and AppleScript. You should also be aware of application-specific solutions; in the case of Word, for example, you might look at VBA (Visual Basic for Applications). All of these tools provide ways that you can modify the content of other applications. Unfortunately, the level of support for each one varies from one application to another, and the way they're used also varies. So, it's unlikely that you'll find a single solution that works for all applications.
It's unlikely that you'll find a way to insert events directly into another process's event queue. That'd be a huge security hole, for one thing. Even if you could do that, you really wouldn't be able to target specific windows with your events. Mac applications use a responder chain that sends keystrokes to the "first responder", usually a component of the active window.

How to add dynamic text to live tile in windows 8 with javascript

Well, the topic says it all. I'm dabbling with windows 8 app development using html/css/javascript and I'm having a hard time finding information on how to dynamically manipulate the live tiles.
There is a lot of information out there on how to create multiple tile xml files and launch them after each other but if anyone had a good resource, or even better, a first-hand explanation, on how to create these tiles programatically to, say, make a countdown tile, it would be greatly appreciated.
There's no way to programmatically update the text/image on a live tile directly in real time.
The only APIs available are those in the Windows.UI.Notifications namespace, such as are shown in the Sending a tile update Quickstart.
You can use the notification queue, as shown here, to provide multiple updates that will automatically cycle, or you can use an external service, such as Windows Azure Mobile Services to send tile updates. Using push notifications from an external service will probably get you closest to the behavior you're looking for, since it will not rely on the app being active in order to update the tile. Be aware, however, that the app will need to run at least once in order to create the channel URI that's needed for the external service to update the tile.
For more info on Windows Store app development, register for Generation App.

how to get embedded flash movie to communicate with .net winforms app

Hi I've used the shockwave flash com object to embed my flash file. I have buttons you can click on within the flash movie. Is it possible to get flash to notify my winform app which button has been pressed. It's developed using actionscript3. I'm using the latest vb.Net.
You can either use FSCommand, or use ExternalInterface. The later is better, although it may be harder to understand at first because of the format it uses, although if you've already solved the CallFunction (or SendFunction?) method argument, it's the same.
There are documentation and a sample C# project in Adobe's site, but I don't know the exact URL.
EDIT: To catch FSCommand and ExternalInterface calls there are two events you can subscribe to.
Also, you could also use sockets (either binary or XML).
That's a very open question as there would be many ways to do this depending on how your website and winforms applications are setup.
My initial suggestion would be to have your flash movie call some client side javascript on the button clicks. The javascript could post to a .Net SOAP webservice for instance which logs the button interaction to an associated database. Then your winforms application could finally check the database for the presence of new button click records.
This is just one high level suggestion based on the very high level question asked. If there's more specific information available then this can be refined.
Brian.

How do I create a button to check for updates and install them?

I can get the program to easily, upon startup, look for updates and then install them.
I want to have a button that the user can click that will check/install updates. Is this possible, if so how?
Edit: Sorry all, not ASP.NET; VB.NET only
This msdn page outlines your different options for ClickOnce updates. It explains how to check for updates before your application starts, after you application starts, or programmatically.
My guess is that you would probably want to combine one of the automatic checks (before or after application starting) with your programmatic check (on your button click).
This is not difficult. Presumably the update/install code is in its own routine. In the button's click event code, simply call the update/install routine used by the startup code.
Add an event to the button. In this event, you use something like the WebClient to retrieve an newer installation package from your server. Then verify its signature to make sure the code is really yours and install it on the local machine.
I noticed the asp.net tag on your question. Are you talking a desktop app or like from an admin page of a customer installed web application?
If it's a desktop app, just look into a ClickOnce deployment. It has that functionality built in.
Either I am not getting the big picture or it's because i work on a asp.net environment...
Anyway, I did something like you asked for our products (web applications) and it was anything but a simple task.
Here is how I did it:
1 - Build a back office application to release new product versions.
2 - Build a webService that received a given product and a version, checked if there was an update available, if so send it to the client.
3 - On the client when received an update, installed it.
I guess the update process will be easier to do on a windows application, my only advice is to be extremely careful when doing it. Always make a safe copy of your application so if anything goes wrong you can roll-back to the previous version.