I
I
Ivan Ivanov2019-04-16 12:00:11
Windows
Ivan Ivanov, 2019-04-16 12:00:11

How to write an application for Windows?

Guys tell me where to start. I myself am engaged in web development, I write in JS, but I want to try to do something under Windows. For example, every time before going to bed, I set a timer to turn off the PC through the shutdown -s -t command. It took me away to write this command every time, I want to write a mini program myself that would simulate the input of this command in cmd, while having an interface, with a window for entering the time when to turn off the PC. I know that there are a lot of such programs on the Internet, but I want to learn how to do it myself. Tried to find video tutorials but couldn't find it. Maybe some books?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander Lykasov, 2019-04-16
@ZZiliST

As an option, since you are familiar with JS, write it in WSH. And to create a GUI, use some kind of OLE server wrapper over WinAPI. About ten years ago, we used this approach in software for one regional network of payment terminals.

R
Ronald McDonald, 2019-04-16
@Zoominger

Tin. Trash.
To begin with, you should choose the language in which you would like to write applications.

V
VoidVolker, 2019-04-16
@VoidVolker

For example C# + WPF.

J
John Smith, 2019-04-17
@ClearAirTurbulence

It took me away to write this command every time, I want to write a mini program myself that would simulate the input of this command in cmd, while having an interface, with a window for entering the time when to turn off the PC.

If you need a GUI, shutdown /i
If you need a convenient GUI and wider functionality, then you don’t need to reinvent the wheel, but take PowerOff from koeniger

I
irishmann, 2019-04-16
@irishmann

Isn't it easier to write a batch file, which you just run, and do not prescribe everything manually?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question