Read Mode
Default

Input Function v.1.0 | By Kvc

Input Function v.1.0 | By Kvc
Input.exe plugin (mouse) | By Kvc
Hey hello guys, #TheBATeam is again back with an awesome batch plugin or Function. As we all know, that almost from last decade we (batch programmers) are using the same plugins or similar plugins to get user interaction with our created programs. As we all came across some of the famous plugins such as, Batbox.exe, Fn.dll, Bg.exe, colous.exe etc. in batch programming. And if you've created some of your awesome batch projects using these plugins, then you are not different form #TheBATeam. We've also created some amazing batch programs using these awesome and reliable plugins. 

Input Function v.1.0 | By Kvc
Meanwhile in Requested Batch Scripts Section
Also we've got a request from KKZiomek, another awesome batch programmer, but we have not got pleasure of including any of his good batch projects in our blog yet. But we'll try to do so. He has asked us for a Batch plugin, which can detect mouse hovering effect in batch programs, we were already working on Input.exe Plugin. And after reading his request, it seems to us as one post can accomplish both tasks. So, we've included his request in this post also.

Input.exe plugin (Keyboard) | By Kvc
Back to our previous talk. As now, if we will not update ourselves, we'll always be same as from last 10 years. To take batch programming to a new level, we need to update our tools, which we are using to create awesome programs. That's why, #TheBATeam has created an awesome and reliable, plugin using CPP programming language, which can only do one task, i.e. To Detect the User input Type, and which Input he/she has given. 

As from the above two Images, you've got a little idea about the working of this batch plugin. We needed to create this plugin in order to make things easier in batch programming. As all the available plugins makes our scope limited for getting user input. In other words, We can Either Take mouse input, or Keyboard input. As you've seen some of my older batch projects uploaded on this blog, they are either Totally mouse based programs, or totally keyboard based. So, This is a kind of limitation in Batch programming. That we definitely need to fix.

Input Function v.1.0 | By Kvc
Input.exe plugin (with parameters) | By Kvc
So, In the ERA of #TheBATeam, we are presenting this awesome Batch Plugin, which will make life of all batch programmers easy, as now no need of doing Multi-threading in order to get both keyboard and mouse inputs simultaneously. You only need to call this Function once via your batch program, similarly as you are calling other plugins to get user input. The plugin will take care of multi-threading itself.

Input Function v.1.0 | By Kvc
Input.exe plugin (with parameters) | Mouse Hovering
You can also get the mouse hovering details via using this function in a loop. Below Within the Download link, we've provided an example file which will show you simply how to use it for showing hovering effect in the batch programs. As now you almost know everything about this Awesome Batch plugin, but you still don't know about its full usage. So, Now we gonna talk about using this awesome plugin with the help of its HELP menu.

Input Function v.1.0 | By Kvc
Help Menu | Input plugin By Kvc

As most of the details are given in the image above, and we can't explain things more than that. You'll also get an 'Example.bat' file as always with our downloads. where you can test this plugin out. Here, We wanna explain a thing that is not given in Help menu.

i.e. The Output

Input Function v.1.0 | By Kvc
Explorer view | Input.exe
The Output 
'Explained'
Basically, we've considered that only two types of inputs are possible in windows, i.e. Keyboard or mouse. (Our assumption for making this plugin work) Although there can be many other types of inputs, which can be given to windows. But we kept our focus only on these basic and standard inputs, so that our batch program can easily interact with user.
Above, You've seen two types of output that Input.exe plugin can return, corresponding to two types of inputs that a user can give. i.e. Keyboard and mouse. Let's talk about both of them separately.

The Keyboard input:
When user presses any key via keyboard, e.g. 'K'. Then the plugin will return following kind of output.

k:K:75

Here, First 'k' represents that user has given input via Keyboard. And Second 'K' represents the key pressed on the keyboard. The last parameter will tell you the ASCII Code for the key pressed, as in some of the previous plugins, (like Batbox) returns the ASCII Code instead of character. So, this plugin contains both properties, you can use any one, either key directly or its ASCII Code in your program.


The Mouse input:
When user presses any key via mouse, e.g. 'Left Click'. Then the plugin will return following kind of output.

m:1:75:6

Here, First 'm' represents that user has given input via Mouse. And Second '1' represents the key pressed on the Mouse. The last parameter will tell you the X:Y Co-ordinates of the mouse clicking location.

That's All from our side. We hope we've explained everything in order to make it easy to use this plugin. If you still has any doubt in using it, You can simply watch the video Embedded below. OR You can clarify your doubts by posting a comment below. We'll try to reply you as soon as possible, But we can't log on to internet daily due to our real life. which is much more different than this virtual life. There We are separated persons, and I'm working in a firm as an trainee Engg. My team-mate Brother, on the other Hand, is a great graphics designer. So, Life is not so much easy as it was in our childhood. That's the reason for our delayed posts, or not posting regularly. We hope, you'll understand us. Please Do comment. we'll appreciate it. 

Keep learning, keep sharing…
Be happy, spread happiness…

6 comments:

  1. Replies
    1. Thanks for the precious response.
      We think, You wanna ask, " How did we create it? "
      And #TheBATeam has already explained everything in the article above. We think you need to have another look at it.

      Thanks for your time. :)
      #TheBATeam

      Delete

    2. it is possible that with the mouse can click to equal it for example that if you do echo %time% that continues to run while you hovert it and you then it can clicking through batbox / m and it just keeps running ?

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. You can visit the 'Learn Batch' Section. For this purpose. We'll be happy to help you. :)
      #TheBATeam

      Delete
    2. why will this http://prntscr.com/etwrrt not work?

      Delete

Powered by Blogger.