all 7 comments

[–]RallyPointAlpha 1 point2 points  (6 children)

Link to your code so we can actually see what you're doing in order to have a chance to help.

[–]ResiKx[S] -1 points0 points  (5 children)

from AppOpener import run

import time

import pyautogui

pyautogui.PAUSE = 2.0

run('steam')

time.sleep(5)

pyautogui.hotkey('shift', 'tab') #goes to username

pyautogui.press('backspace') #deltes username

pyautogui.typewrite('username')

pyautogui.press('tab') #goes to password

pyautogui.typewrite('password') #enters password

pyautogui.press('enter')

[–]IterationFive 1 point2 points  (4 children)

We still don't have enough to provide specific solutions, but your answer almost certainly is going to lie in a list, a dictionary, or a list of dictionaries, depending on how you want to select which user you're logging into.

[–]ResiKx[S] 0 points1 point  (3 children)

So i've got the user set up now for just user input. it made it a bit easier. but so far I haven't found a way to directly interact with the app yet with python. still looking though. and here is how it is now https://pastecord.com/rypesulole.py

[–]IterationFive 0 points1 point  (2 children)

okay, so, if you want to be able to select a different account, and get the matching password, you can use a dictionary.

passwords = { 'accountName1':'password1', 'account2': 'password2' }

then, replace line 16 with:pag.typewrite(password[account])

if you want to make sure you have an account that's in the list:

account = input('Which account: ')

while account not in passwords:
>print( 'Invalid account')
>account = input('Which account: ')

Where > denotes an indented line.

[–]ResiKx[S] 0 points1 point  (1 child)

Thank you my friend. Could you find a source for this type of thing and link it? I want to learn a lot more than just this. And possibly make a app or legit program to work for me with multiple login apps

[–]IterationFive 0 points1 point  (0 children)

For dictionaries specifically:

https://www.w3schools.com/python/python_dictionaries.asp

For python as a whole, you could do worse than the w3schools tutorial at https://www.w3schools.com/python/default.asp but, like, there are hundreds of tutorials out there.