#🔒 Can someone help with my anti afk program am very new to python

37 messages · Page 1 of 1 (latest)

shrewd stag
#

`import pyautogui as pag
import random
import time

input("Press enter: ")
while input(""):
x = random.randint(600, 700)
y = random.randint(200, 600)
pag.moveTo(x, y, 0.5)
time.sleep(3)
)`

undone fractalBOT
#

@shrewd stag

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

shrewd stag
#

I get the input but nothing happens

#

It worked when I had it set to just a while true statement

strange obsidian
#

!rule 5

undone fractalBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

shrewd stag
#

how is this malicous or illegal or inappropraite

strange obsidian
#

Anti afk... Wouldn't that be to work around apps that detect if you aren't at your desk for school or work? Both of which would be highly inappropriate

long oak
shrewd stag
#

omg yall are really that soft

long oak
#

What is it that you are trying to do then?

shrewd stag
#

learn

#

I just looked up a tutorail and want ot add my own stuff

long oak
#

I don't understand. What is your program trying to do?

shrewd stag
#

move the mouse randomly

#

it worked but now I want to add input so it only starts when you press enter

long oak
#

Well then there.

#

That's a program that is deemed inappropriate in this server.

shrewd stag
#

bro

#

yall are soft

long oak
#

We won't stop you from making it. That's fine.

strange obsidian
#

<@&831776746206265384>

shrewd stag
#

you are stoping me from learing

long oak
tawdry loom
shrewd stag
#

pretend that the act of using input to start a program is what I am trying learn

#

a skill that could apply to any program

#

thats all I want to know

tawdry loom
#

I’m not even sure this could ever even work, would it even prevent a screensaver from kicking in anyway?

shrewd stag
#

thats not the point

tawdry loom
#

But regardless, anti-afk certainly falls under rule 5, and that’s what you asked about.

shrewd stag
#

i just want to know how to add input to start a progrma

#

forget the afk thing

tawdry loom
#

Start another thread, and we can talk about input()

#

!close

undone fractalBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.