How can I create a GUI program using batch programming. How can I program the mouse? I tried installing mouse.com file and the mouse worked in DOS. How to make such stuff using just batch or other programming languages.
Using batch is totaly wrong for such tasks. You should take a look at AutoIt (https://www.autoitscript.com/site/). It's an easy to learn script language that can be compiled to exe files and allows you to work with GUI, simulate mouse and keyboard actions etc.
Besides using visual studio or other Windows GUI tool,
i'm not sure if this can be done from batch file directly.. :/
there seems to be no command for GUI in batch script..
so, in other words, Batch file cannot create GUI..
Maybe i'm wrong..
Related
I'm looking for function that Open window explorer in C language. I have found this [answer](How can I open Windows Explorer to a certain directory from within a WPF app?), but this is C# language. C can't have these features? I use VS 2010.
I'm a beginner of C. So my question may seem ridiculously easy. But if you give me the answer I really appreciate it. Thanks :)
The simplest way to open a certain directory in an explorer (here c:\program files) may be:
system("start \"\" \"c:\\program files\"");
Try using SHOpenFolderAndSelectItems() function, which can open files in windows explorer.
https://msdn.microsoft.com/en-us/library/windows/desktop/bb762232(v=vs.85).aspx
Given the stslib.h library contains the system() function that let's you run shell commands, you should be able to run the command to open a new windows explorer window using the same command you would use in the terminal window.
A guideline: http://www.programmingsimplified.com/c-program-shutdown-computer
I'm quite in a basic project for now which is recoding a unix shell in C. It is of course intended to work in a tty which means without a GUI. Though I'd like to add an option to use it with a graphical mode. As it's a text based program, when I launch it with Gnome (using alacarte) it launches itself in a Gnome Terminal. What I want to add is a sort of graphical interface like the Gnome Terminal app. Is there a simple way to put a text based program in a sort of frame with graphical elements in it ? I want to get rid of any other application to launch my shell so when I'm in graphical mode (when not using tty) I want my own frame and not another application that launches it.
Can anyone help me ? =)
You cannot create a GUI using the standard C library. You can make one with an external library though.
With OpenCV, it is possible to make a GUI, and there is a large community behind the project. You can find lots of code examples and tutorials on their website. In addition, you can use OpenCV for lots of other computer vision related things.
You could also use GTK+ to write a GUI for your program. It is very simple, and easy to use for beginners. It's more focused on graphics though, and if you want another functionality required by an external library, you might not be able to use GTK+.
As we know, we can write a PowerShell script to show a windows form.
Is there a automatic converter that converts a WinForm assembly or *.designer.cs (designer generated C# code) into PowerShell script?
There was a "PrimalForms 2011" community version, but it seems that it's now called "PowerShell Studio 2012" and has a 45 days trail version.
Is there another choice? A simpler converter or something?
Thanks!
I steel use two solutions (well hidden on the web but still existing) to solve your problem :
First, You can use Sapiens PrimalForms Community Edition (It's free, you just have to sign to Sapiens and go to download).This Framwork allow you to graphicaly build your DialogBox and then it generates the PowerShell Code for Windows Forms (still avalaible as shown here under).
Second you've got a script called PowerShell Form Converter writen by Arnaud Petitjean (11-05-2007). Once again you have to register, the article is writen in french, but you can download a Powershell script that transform a Windows Form from a .CS file to a PS1. Like in Sapiens editor, the transformation is commented (here in french) with the place to code events.
I am using eclipse and would like to integrate some sort of version control. Ideally, I do not want to use a plugin. I would really like to somehow write the version to a text file in some way.
The reason I would like to do this is because I have a program that needs to track the current version of the workspace. Right now I am manually creating a text file in the workspace folder called "Version.XXXX" and just reading the name of the file to get the version number. However, I would like to somehow have eclipse do this automatically in case I forget to make the text file manually.
Any help or suggestions is greatly appreciated. Thanks!
If you want a simple source version control system I suggest you use Mercurial. All the versioning information is stored in the root folder of your project in a .hg folder. There is no server and log-ins. Like SVN and Git, it has gui support from Tortoise and plug-in for your IDE. The logic and commands behind it are similar to other solutions.
i am looking for obfuscator tool to secure the assembly. and i need to do reverse enginnering on that obfuscated assembly to invoke methods.
right now i tried with dotfuscator tool which is integrated with VS 2005,2008.
and i follow following steps.
1. Make obfuscated assembly using GUI tool.
2. Import in reflector.
3. i am able to see converted methods and variable name in reflector.
4. After that i try out to access methods using converted name and its working fine.
i need to secure assembly even user can see method name using reflector but developer can do re-engineering on opfuscated assembly.
Is there any tool available to make secure assembly ???
and i want to run obfuscator tool from command line witout opening GUI application.
Check the Command Line Option Summary in the PreEmptive Dotfuscator Documentation.
To run Dotfuscator without opening Visual Studio, you need to purchase it. The Community Edition requires Visual Studio be open.