Skip to content

Instantly share code, notes, and snippets.

@Ajak58a
Created January 22, 2023 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ajak58a/af9db9bed1e5cbd4ded82fa45ca1fd2d to your computer and use it in GitHub Desktop.
Save Ajak58a/af9db9bed1e5cbd4ded82fa45ca1fd2d to your computer and use it in GitHub Desktop.
gmail login
#include "Keyboard.h"
void typeKey(int key)
{
Keyboard.press(key);
delay(50);
Keyboard.release(key);
}
void setup()
{
Keyboard.begin();
delay(500);
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('r');
Keyboard.releaseAll();
delay(3000);
Keyboard.print("https://accounts.google.com/AccountChooser/identifier?service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&flowName=GlifWebSignIn&flowEntry=AccountChooser");
typeKey(KEY_RETURN);
delay(5000);
Keyboard.print("GMAIL-USERNAME");
typeKey(KEY_RETURN);
delay(5000);
Keyboard.print("GMAIL-PASSWORD");
typeKey(KEY_RETURN);
delay(3000);
Keyboard.end();
}
/* Unused endless loop */
void loop() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment