I am looking a tutorial for develop a C# application for windows, which can give a extra functionality to the browser controls. i.e. input fields such as input box, text area.
When I using Google+, Facebook, and Twitter also my blog I use my native language. (Sinhala)
My native language has a complexity when is it come to using in computer. it has its own keyboard but it is really difficult to remember. In this case there are some tools to convert English characters in to its phonetic word in my language
i.e.
http://www.ucsc.cmb.ac.lk/ltrl/services/feconverter/t2.html
this above online tool help to convert English character in to is phonetic meaning in my language
i.e. Apal => ඇපල් (Apple)
This tool is developed by University of Colombo School Of Computing SriLanka. That English to Sinhala conversion control by JS.
My requirement is how this get in to C# application and running in particular pc, and when I open my web browser (Firefox, IE, Chrome, etc. ).
It should have run on system background and there should be a system tray icon to on/off it functions on browser (or Short cut key). And when it turn on.
I am wondering how I write a C# app for control Browser inputs and so on.
if you can show me a way to start or If I can have any suitable tutorial, guideline, or code sample, it will be great.
p.s. C# or Java is my prefer language
many thanks
Cheers
Umanda
I would check out the MSDN documentation here for the Web Browser Control. It also provides a sample of the source code at the bottom of the page.
It should have run on system background and there should be a system tray icon to on/off it functions on browser (or Short cut key). And when it turn on.
What you require is a Windows Service, that can be found here.
Related
I'm developing an application for Windows CE with Compact Framework 2.5.
The application I'm developing is basically a WebControl. The customer wants the scrollbars hidden (which I have managed), but still wants to be able to scroll through the loaded webpage using the arrow keys on the PDA. However I cannot find a way to control were in the document the WebBrowser currently is?
Does anyone have any ideas? Or a possible alternative to the WebBrowser control, since I have come to the conclusion that the implementation in the Compact Framework is very poor considering the full framework.
Is this a Windows CE or Windows Mobile device?
For windows mobile there are two rendering engines available since AKU 6.1.4: the 'old' PIE and the new IE6 'compatible' engine (http://www.hjgode.de/wp/2013/11/04/windows-mobile-6-internet-explorer-mobile-modes/). The reg key HKLM/security/internet explorer/mshtml value controls the rendering engine used by "Internet Explorer Mobile" (iexplore.exe). The PIE engine display scrollbars by default, the IE6 one not, it can be navigated by the navigation keys. There is a hotfix for compact framework correcting the navigation keys usage: http://support.microsoft.com/kb/975281
If this is a real Windows CE device: if it is a Windows CE 5 based device then there are examples of using the webbrowser control in C/C++ called iesimple etc (AFAIR). Comapct Framework only implements part of the webbrowser API.
It sounds like you are trying to write yet another kiosk mode browser although there are already many out there. Some are device manufacturer dependent, like Intermec Browser, some are usable on generic Windows Mobile devices, like Naurtech Browser (http://www.naurtech.com/products_em.php). These browsers support a bunch of options to control the kiosk mode and usage. I would only write my own kiosk mode browser for simple usage scenarios.
AFAIK there is no way to know from program code, which part of a web page is shown to the user. And it makes no sense to me for a program to know what is currently rendered to the screen. The html and javascript code controls the workflow and data display and change.
There maybe others but the only html engine supporting a SDK beside the MS webbrowser control is ZetaKey. There webkit engine is available for Windows CE/Mobile and they offer a SDK (I do not know there licensing and pricing model). Some open source initiatives have been discontinued, like MiniMo (Mozilla/Firefox).
Please let us know more details about the device and your intention to write your own kiosk mode browser if you need further assistance.
First of all, sorry for my English :)
I'm web developer. Generally coding in PHP.
Recently started to learn C++.
I want to create simple application which will simplfy daily routine works. For ex,Every time when I check my internet banking account, must login to my account via any browser. What I wanna do is, to create mini windows application which will store my login and pass, will login to my account, and show exact page what I see on browser directly after login. Website that I'm talking about is here
The problem, I can't find any tutorial about creating such application. Don't know where to start. Did research but found nothing about this. (Maybe I selected wrong keywords :)) So decided to post question here. I don't need your code, just give me starting point, where to learn to create applications as I described above.
And one more question: Is it important to know website's coding language before building such windows apps? I mean: PHP/C#... etc
Thx in advance
Not sure why you would pick C++ for this type of project, though it's possible, it would be quite tedious. I would recommend looking into Java, perl, ruby, python, or some other language that supports the Selenium Webdriver API. You can also use the mechanize API with Perl, which is also a bit tedious. I've done things like this in the past with success using Selenium (http://seleniumhq.org). Unfortunately, I don't think there is a Webdriver API for C++ as of yet (you could try writing one!), but there are definitely APIs available for the other languages I posted. Check out: http://seleniumhq.org/about/platforms.html#programming-languages.
EDIT
If you're more interested in screen scraping with C++, this question, and some answers within the thread, may prove useful to you as well: https://stackoverflow.com/questions/489522/library-recommendation-c-html-parser
I'm attempting to put together a telnet client for wp7 mango, so I can play some muds on my dev phone. I am having difficulty finding a decent open source terminal emulation library that will work for Silverlight (mango is roughly equivalent to the sl 4 stack). I see amuse, but that was written for wpf and sl doesn't seem to have that flow layout control it uses to display the telnet console. Any suggestions? I am already able to connect to a telnet server and get a two way stream, but of course i get mostly garbage without term emulation.
Edit: I ended up implementing my own ascii escape code (a sub-set of VT100 essentially, with unsupported options parsed but ignored) and telnet server command parsing engine (it wasn't as difficult as I thought it would be), and also my own rendering code using the RichTextBox control, which was necessary due to limitations of silverlight on the phone which aren't there in either silverlight for the browser or WPF in windows.
You could try to contact Stefan Olson, who implemented a FlowDocument Viewer for Silverlight (unfortunately he didn't have time yet to clean it up and release the code):
http://www.olsonsoft.com/blogs/stefanolson/post/Introduction-to-FlowDocument-for-Silverlight.aspx
Are you asking for a technical layout, or a complete component? In regards to the flow layout, all you need is to represent text, so a StackPanel with TextBlock's in should work just fine.
A TextBlock can support multiple Run elements, which pratically gives you a flow-layout.
Either way, for a phone you should look into customizing the UI to suit your needs, rather than expecting a component to do it for you. If there was a component for it, there most likely would be a app for it, and then there wouldn't be a reason to write another app for it, would there now?-)
I ended up implementing my own terminal emulation/telnet negotiation code from scratch.
I want to develop a windows based application in silverlight. I went through many articles and every where I found that "Silverlight is for web based application". I don't know whether I am wrong or right, as my superiors told me that in Silverlight5 we can develop Windows based application. Can any body help me to give a clue for how to start. Any help would be highly appreciated.
Thanks in advance
If you mean a Windows based application which can connect with internet you go for Out of Browser application which silverlight supports but if you want simple plain desktop application, there is no point in using Silverlight, WPF would be the right choice in that case.
Look at this article for building an out of browser app using Silverlight.
Silverlight specializes in building rich UI based Web applications and WPF is best for making UI rich applications for Desktop.
You can run silverlight apps "Out Of Browser", its just a setting in the config. Here's a video with more info: http://www.silverlight.net/learn/videos/all/out-of-browser-experiences/
silverlight is a web-based technology that runs on the client machine. it is, basically, Microsoft's version of Flash.
Now, that being said, you CAN write silverlight apps that run out of the browser. but, they are not "really" windows apps. silverlight is a sub-set of WPF. However, you can also make WPF apps that run in a browser. Confused yet?
The bottom line is that WPF is for desktop apps and is full-featured with access to the machine resources.
while silverlight is a light-weight version of WPF that is intended to be run in a browser, similar to flash. it does not have all the features of a full desktop application due to security model and that sort of thing.
Both have elements that cross into the domain of the other.
Like all good things, the answer is "it depends on what you're trying to do". If you want an application that can run inside the browser, outside the browser, plus on Windows and Mac then Silverlight is the answer. You also get for free/are restricted by a security sandbox; you can get around this sandbox by requiring additional permissions from the user. If you're trying to do something that requires multiple monitor support, access to COM objects, stroke/pen/stylus input, 3D hardware acceleration, or access to a large local file store then WPF is probably the better answer. Silverlight out of browser applications also have a nice "phone home" feature that will automatically download updates; WPF requires you to roll this by hand.
Some folks have mention XBAPs (running WPF inside of a browser). Stay away from this error prone steaming pile of stuff. It's good for demoware, but is not something which you'd want to support.
You heard right.
This is called "out of browser":
Silverlight-based applications typically run within Web pages, but you can enable users to install them from the Web and run them outside the browser.
Using ExternalInterface in AS3 is it possible to call OS (C#?) functions within XP?
Example: Set the desktop background to a image supplied by a flash app?
If it is possible would it be different calls when applied to different OS. And what about cross over the Mac?
Any information would be great
Thanks
If you're launching the swf from within a C# app, external interface will do just fine. Nothing will change on the flash side, but you'll need to go through a couple hoops to get it to work in C#. It's not as simple as AMF or External Interface to JS.
All the communications to C# get converted to XML describing the data, and you've gotta write XML to send back to flash. Other than that though, its relativly simple.
Here's some info on how to do it. The AS portion is Flash 8/AS2, but the C# portion should say the same.
When working with Flash from a webpage or as a desktop app, you are limited to a small security sandbox and you will not be able to make any relevant OS call. I thought that switching to AIR would give the developper more flexibility but it doesn't seem correct either. From "The Pros and Cons of Adobe Air":
AIR apps have
file access, clipboard access, support
multiple windows, support drag and
drop, and can trigger notifications
(toast in Windows). If you app needs
to interact with the desktop in other
ways, the chances are that AIR is not
suitable. For example, there is no
access to COM automation, and no way
to execute external applications. The
reason is to maintain cross-platform
compatibility. That's a worthy goal,
but it would be good to have a way out
of the sandbox. Unlike Java or .NET,
you cannot extend AIR with custom
native code libraries. Nor can you
call operating system APIs.
As Alex Jillard commented, if your swf is called inside a C# desktop application, you should be able to access more OS funcionalities although I'm not sure how.
You could use as already mentioned AIR. Another idea would be to use HippoHX (I haven't written this, the similarity with my username is just coincidence). It runs on top of the NekoVM and gives you unrestricted (so no limitations like in AIR ) access to the system.