-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrunbots.py
More file actions
73 lines (56 loc) · 2.12 KB
/
runbots.py
File metadata and controls
73 lines (56 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
from selenium import webdriver
import pandas as pd
import time
import psutil
import pyautogui
import os
os.startfile('Multiple_ROBLOX.exe') #runs program to allow multiple roblox windows
#gets username and password form xlsx
data = pd.read_excel(r'RobloxAccountsTest.xlsx')
names = pd.DataFrame(data,columns=['names'])
passwords = pd.DataFrame(data,columns=['passwords'])
nameList = names.values.tolist()
passwordList = passwords.values.tolist()
print(nameList)
print('')
print(passwordList)
print("Wazzup my homi")
#enters username and password into roblox and goes to the game link.
for x,y in zip(nameList, passwordList):
time.sleep(1)
print(x)
print(y)
driver = webdriver.Chrome('C:\webdrivers\chromedriver')
driver.get("https://www.roblox.com/login")
usernameStr = x
passwordStr = y
username = driver.find_element_by_id('login-username')
username.send_keys(usernameStr)
password = driver.find_element_by_id('login-password')
password.send_keys(passwordStr)
signInButton = driver.find_element_by_id('login-button')
signInButton.click()#game-details-play-button-container > button
time.sleep(4)
driver.get("https://www.roblox.com/games/6852386028/Warehouse-v-1?refPageId=70c151ea-dc06-4bad-a565-d5591af398a9")
time.sleep(4)
# <button type="button" class="btn-full-width btn-common-play-game-lg btn-primary-md btn-min-width"><span class="icon-common-play"></span></button>
# //*[@id="game-details-play-button-container"]/button
try:
playbutton = driver.find_element_by_xpath('/html/body/div[6]/div[2]/div[2]/div[2]/div[3]/div[2]/div[2]/div/button')
playbutton.click()
time.sleep(3)
start = pyautogui.locateCenterOnScreen('OpenRoblox.PNG')#clicks the "open roblox" popup
print(start)
time.sleep(2)
pyautogui.moveTo(start)
pyautogui.click(start)
time.sleep(4)
print("Done one loop.")
driver.close()
except:
break
print("All bots online.")
time.sleep(5)
#focus on window for afkness
FocusOnWin = "python RobloxAFKBots\FocusONWindow\FocusOnWin.py"
psutil.Popen(FocusOnWin)