(adsbygoogle = window.adsbygoogle || []).push({});
It's pretty easy but this tutorial is for the people
who don't know how to do this. This is also my first tutorial so don't judge :3
First you'll need to click on your form and then go to the properties tab at bottom right of your page and click on events:
You must login or register to view this content.
Scroll down till you find Keydown event:
You must login or register to view this content.
And then double click on it so that this pops up:
You must login or register to view this content.
Go back to properties and click on the properties button:
You must login or register to view this content.
Scroll down till you find Keypreview. By default, it will be set to false. Change it to true:
You must login or register to view this content.
Now go back to the piece of code that we generated and enter this:
You must login or register to view this content.
What this code does is that when CTRL + A is pressed, it will execute whatever is in the if function.
For example, i'll put a Messagebox code:
You must login or register to view this content.
Now, when I press CTRL + A while in the application, it will show this:
You must login or register to view this content.
And that's how you do it! You're probably thinking why the hell do I wanna know this? Well my old computer broke which was a laptop and so I built a gaming PC but I only have a monitor so if I want to mod I have to switch HDMI cables every time I want to do something so I created an application that instead of pressing buttons, its just shortcuts on my keyboard. for example, if i want to change my prestige to 9, I just press CTRL + 9 and boom! I was planning on releasing it for those who don't want to click on buttons on screen but just keyboard buttons but NGU requires people to have 25 posts or more to post a thread on the tools section.