Answer the question
In order to leave comments, you need to log in
How to write a desktop application? (Windows)?
A small application that should hang in the tray and have access to:
- emulate keyboard keystrokes
- know the name of the active process (whose window is currently active on the screen)
- access the network, connects to a mobile device
Should be lightweight. Should contain a small amount of GUI for customization. Now the application is written in java+swing. From java, working with WinAPI is a crutch, really. Yes, and JRE have to carry with you.
Therefore, the question is, what is the best way to write such an application?
Options came to my mind:
- Python + web-muzzle for GUI
- Adobe AIR
- Chrome extension
- Silverlight
But it is not clear whether it is possible to access low-level Windows functions through them. What do you advise?
Answer the question
In order to leave comments, you need to log in
For python, there is a Win32 package, which has everything you need for programming under Windows. For GUI - several libraries to choose from (native Tk, wx, Qt). The project can be compiled to exe. Look at the Dropbox client - an example of what can be raised in python.
Plain C++ "Win32 application" in Visual Studio, why bother with frameworks and stuff?
I wrote an application in c # that hangs in the tray and intercepts button presses, it took 2 pm, there is a lot of documentation, it’s very easy to work with WinAPI, it’s nice to write.
If Windows, then either C# (although you may have to tinker a bit with calls to WinAPI), or C ++ / Delphi, because, unlike the options you suggested, native code, plus you don’t need to drag frameworks with you (as in C #). C++ may require the installation of C++ Redistributables.
I would also choose C #, you can quickly add windows and an interface using the WPF designer, and there is enough documentation for the evening in the tray and hooks of the WinAPI ®MSDN keys.
And I will be non-standard and in the context of my advertising campaign of this language I will advise D. There are some for the GUI, there is even Qt binding, the language itself is very pleasant. But it's certainly not mainstream (yet).
Dig towards Windows Script Host. I'm not sure if it will fit, but it's worth digging.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question