How to automatic login Facebook on windows.

Опубликовано: 11 Апрель 2026
на канале: Lucas FOURNIER
701
3

Code:




@if (@CodeSection == @Batch) @then




@echo off


rem Use %SendKeys% to send keys to the keyboard buffer
set SendKeys=CScript //nologo //E:JScript "%~F0"
SET BROWSER=chrome.exe




rem the script only works if the application in question is the active window. Set a timer to wait for it to load!


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.
for /l %%x in (1, 1, 100) do (

START %BROWSER% -new-window "https://vi-vn.facebook.com/"
timeout /t 5
rem now you can have it send the actual username/password to input box
%SendKeys% "yourusernam"
%SendKeys% "{TAB}"
%SendKeys% "yourpassword"




timeout /t 2


%SendKeys% "{ENTER}"
timeout /t 5


timeout /t 2000
)
goto :EOF




@end
// JScript section


var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0));