Python Forum
How to make a simple automation process of login using "if condition"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a simple automation process of login using "if condition"
#1
Hi all,

I am new here, and I am beginner level on coding, so if I appear ignorant, please bear with me.

So here is the scenario, I play a game called World of Warcraft, and the game some time would disconnect me if I am inactive. Because the server I am on have huge population, if I am kicked out, I have to wait for like hours in queue to play again. However, if I am discounted, but I log back in within 5min, I don't have to wait in the queue.

Thus I have the thought of using Python to automate this process. Basically, here is how I want to design the code:

1. Python monitor the game in the background
2. If game doesn't disconnect, then do nothing
3. If game disconnect me, the game will go to the login page, Python detects this page, and click on "start" so I log back in

Note that, I don't need to enter user name or password, I just need to click on "Play" button on another interface, it would automatically log me in.

The logic is pretty simple, however I don't know how I ask python detect different interfaces. But I am pretty sure there is an unique ID for different interfaces and windows. Anyone know how should I do this? Or for each functionality if you can kindly tell me what they are and where to find, I can try to piece them together myself the code.

Thank you!
Reply
#2
Here is an article on making a Python bot that plays a sushi game - https://code.tutsplus.com/tutorials/how-...tive-11117 - I'm sure that you can use the same concept from this article to achieve your goal. If you run into any problems while trying to improvise the method into your purpose come back and ask on this question.
Reply
#3
Hi, are you able to proceed further without loops?

Regards,
H. Smith
Reply
#4
(Jan-06-2020, 07:17 PM)hinay Wrote: are you able to proceed further without loops?
Sorry, I don't quite get what your asking here.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make app run only when process is aviable Mawixy 1 1,178 Apr-19-2022, 03:45 PM
Last Post: Axel_Erfurt
  How would you (as an python expert) make this code more efficient/simple coder_sw99 3 1,804 Feb-21-2022, 10:52 AM
Last Post: Gribouillis
  in a login interface when i try login with a user supposed to say test123 but nothing NullAdmin 3 2,273 Feb-20-2021, 04:43 AM
Last Post: bowlofred
  want to make auto login with data R3born 3 2,220 Sep-11-2020, 07:06 PM
Last Post: R3born
  else condition not called when if condition is false Sandz1286 10 5,870 Jun-05-2020, 05:01 PM
Last Post: ebolisa
  [HELP] Nested conditional? double condition followed by another condition. penahuse 25 7,942 Jun-01-2020, 06:00 PM
Last Post: penahuse
  Iterate through all files in a folder and make simple calculation danielappleton 2 2,321 Apr-01-2020, 09:57 AM
Last Post: danielappleton
  simple login problem MMOToaster 2 2,405 Feb-25-2020, 09:28 AM
Last Post: MMOToaster
  How to sharing object between multiple process from main process using Pipe Subrata 1 3,667 Sep-03-2019, 09:49 PM
Last Post: woooee
  help with simple LOGIN code pedrosa06 3 2,496 Jun-27-2019, 03:58 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020