I am Creating a Reminder wpf application where user can select time, repeat type and seta reminder on his machine.
Based on his inputs I would like to add scheduled task. I need some help how to accomplish this using taskscheduler.(Nudget package) or if any other alternative.
I want to pop up a reminder window which I would create in my wpf application.
The Execute method of TaskScheduler allows triggering exe files.
But how to open my reminder window as a trigger action?
Please help...!
I did this long time ago, but I guess to setup the task we had one project and to show message we had another one.
Have a look here to see how to create a task, and in ExecAction provide path to your other application(pop up one)
Related
I am in the middle of a project where we want to use ace code editor embedded in the browser. I would like to implement it just like how codeschool or any other teaching platform do using ace library. I want users to solve a given prompt in the code editor and want to grab it and run some test in the background before giving the result back to the result window. I am new to this field and would like to get some advice from someone who has the similar experience. Can anyone let me know where I can start and like a brief summary of flow I should follow? e.g
user solve the prompt
user hit "Run or Submit" button
the code will be delivered to a server that handles the result or it will be handled on the client side.
give the user the result of the prompt.
In my app, I've created the mechanism to create a custom tile. Lets say, CreateTile() this is the function which will create live tile and also will update the value.
But I want to update the live tile automatically every one minute. I have heard of Background Task Agent and Scheduled Notifications. But I don't know how to use them.
Can anyone help me out, assuming that there is already a function CreateTile() which updates my tile information?
Periodic background agents run at roughly 30 minutes interval. You cannot configure this interval.
Here are the details for background agents: Background agents for Windows Phone 8
I have a site which runs a quite intensive job from the admin panel.
I would somehow like to run it without interfering with the output it produce.
To make it more clear. On submitting a form I must unzip a big zip file, and for every image I fin, I must insert it to my database. This process takes more than 3-4 minutes. So I would like to put the job running and output that the job is being processed.
I don't know if I can notify user then (maybe through an ajax call) but I don't mind that.
Is it possible?
thanks
It depends on what you want the user to do while you're processing the data.
Do you want him to wait? Then use a AJAX call and display a progress bar (or whatever you like) until the task is complete. When the task is complete, inform the user (via ajax again) and proceed with (whatever) functionality you've got in store.
If you want the file to be processed while the user is doing something else, you can call (CakePHP) ShellTask in the background and let it do its' magic. If you want for the User to be able to view what the status of a import is, you can create a imports table, that stores information about all imports. By using a "status" field, the user can know that, for e.g. the task is still running.
When the shell task completes you can change the "status" of the import and do what ever. This needs to be done in the task itself, but it wouldn't be a problem because you can use models in Shell Tasks - the same way you can use models in Shells.
Hope this helps, comment if you need any further clarification.
I want a automatic update notification in my application. A message box should appear which tells that an update is available, if user wants then it can download the latest version in downloads folder of windows. Nothing else (user will install it manually) not application.
-I'm using Installshield so no Click once solution.
Thanks
If you want an out-of-the-box solution to this problem you're likely to be disappointed. I haven't found anything that works except ClickOnce, and I dislike it. I did find this:
http://windowsclient.net/articles/appupdater.aspx
My solution was to roll my own. It's actually not that difficult. I wrote a small bootstrapper application that first checks for updates, downloads them if necessary, and then launches my application in a new AppDomain. Pretty easy.
If you want to check for updates while your app is running, you need to write and add a component/class to your project that performs that task, and informs the user (MessageBox or whatever) that an update is available. If they choose to perform the update then you need to launch your bootstrapper (so it can fetch the updates) and kill your current process.
All of this is very possible with a little time and some custom code. It's not as difficult as it sounds. The biggest thing is determining how configurable you want your custom solution to be because that can affect when/where your bootstrapper goes to look for updates (I built mine to look for updates on a network share).
http://autoupdatewpf.codeplex.com/
i found one. This one is quite simple and solve the purpose.
I want to have my app which is minimized to capture data selected in another app's window when the hot key is pressed. My app definitely doesn't have the focus. Additionally when the hot key is pressed I want to present a fading popup (Outlook style) so my app never gets focus.
At a minimum I want to capture the Window name, Process ID and the selected data. The app which has focus is not my application?
I know one option is to sniff the Clipboard, but are there any other solutions.
This is to audit the rate of data-entry in to another system of which I have no control. It is a mainframe emulation client program(attachmate aka java-hosted telnet with 3250 support).
The plan is
complete data entry in Application X.
Select a certain section of the screen in App X which is proof of data entry (transaction ID).
Press the Magic Hotkey, which then 'sends' the selection to my App.
From System.environment or system.Threading I can find the Windows logon.
Similiarly I can also capture the time.
All the data will be logged to SQL.
Once Complete show Outlook style pop up saying the data entry has been logged.
Any thoughts.
Hooking the keyboard/mouse & screen scraping is pretty much the limit of what you can do with an applet. Remember Java is compiled to bytecode and run in the JVM. Because of the nature of the JVM, portability, and security concerns, you don't really have access to anything inside of the applet. All you will probably see from .Net is a "SunAwtFrame" classed window with no children.
The focus thing is doable, just use SendMessage (& other) API's to do what you need in the background and as long as you don't change the focus it will remain as is (ie. running code does not require focus)
As far as the data extraction goes, its going to come down to whether or not you can pull that info from the screen using some (potentially hardcore) image processing. Applets are a sort of no-mans land (from within .Net atleast), there is no JavaWindow.Textbox.GetAStringForMePlease().
For the record, there is an exception, if you physically control the applet. In that case you can make a sort of applet shell to hook the guts of the applet.
It sounds like you need to set up a global keyboard hook to capture the hot key this code project article shows how to do that (in C# but it's not much different):
http://www.codeproject.com/KB/cs/globalhook.aspx
And then you could use the FindWindow API to find the other apps window, then find the control that contains the "transaction ID" and use the WM_GETTEXT message to copy the text from it.