I realized that today you can use batch files on Windows computers to enter keyboard commands on websites or other applications if necessary. See here for initial coding information.
The core of the team you find here just looks like
@if (@CodeSection == @Batch) @then @echo off rem Use %SendKeys% to send keys to the keyboard buffer set SendKeys=CScript //nologo //E:JScript "%~F0" %SendKeys% "{ENTER}" goto :EOF @end // JScript section var WshShell = WScript.CreateObject("WScript.Shell"); WshShell.SendKeys(WScript.Arguments(0));
While I am still experimenting and testing this batch file program in different applications, Iโm not sure that the internal work is on what this program does. All I know is to use the java script installed on every Windows computer to enter keyboard commands that will be executed. However, in my experiment, I found that it can also serve as a means to fill in passwords and usernames.
@if (@CodeSection == @Batch) @then @echo off rem Use %SendKeys% to send keys to the keyboard buffer set SendKeys=CScript //nologo //E:JScript "%~F0" START FIREFOX "WWW.EXAMPLE.COM" rem the script only works if the application in question is the active window. Set a timer to wait for it to load! timeout /t 5 rem use the tab key to move the cursor to the login and password inputs. Most htmls interact nicely with the tab key being pressed to access quick links. %SendKeys% "{TAB}" rem now you can have it send the actual username/password to input box %SendKeys% "{U}" %SendKeys% "{s}" %SendKeys% "{E}" %SendKeys% "{r}" %SendKeys% "{N}" %SendKeys% "{a}" %SendKeys% "{M}" %SendKeys% "{e}" %SendKeys% "{TAB}" %SendKeys% "{P}" %SendKeys% "{4}" %SendKeys% "{S}" %SendKeys% "{S}" %SendKeys% "{W}" %SendKeys% "{O}" %SendKeys% "{R}" %SendKeys% "{D}" %SendKeys% "{ENTER}" goto :EOF @end // JScript section var WshShell = WScript.CreateObject("WScript.Shell"); WshShell.SendKeys(WScript.Arguments(0));
Thus, register your grandmother on a specific website. Although this is an approximate example of the code I would try to run, it should still work. If this is not the case, start from scratch with the link I provided. Also, if you need ways to include these special characters, check here .
* EDIT:
Later, I did something similar for myself and found a simpler way instead of printing all% SendKeys%. You can just do
%SendKey% "Username{TAB}" %SendKey% "Password{ENTER}"
as an easier way to go through the login process. The only drawback of any of them is that if she decides to change her username, you will have to change the password from the program.
Jouster500
source share