Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I loop the program for specified period of time#40

Unanswered
iamraghav1503 asked this question inQ&A
Discussion options

pe.moveTo(132,475,1),pe.click(132,475,1),pe.typewrite(superb bro i want this because of camera),pe.click(917,515,1)

i want to loop this program for 2 hours and after the word 'camera' in the sentence i want to add non repeating unique numbers

You must be logged in to vote

Replies: 1 comment

Comment options

Hello@iamraghav1503 !
To loop this program for 2 hours and append non-repeating unique numbers to the word "camera" in the sentence, you can use Python. Here's an example script that achieves this:

importpyautoguiaspeimporttime# Start timestart_time=time.time()# Initialize a counter for unique numberscounter=1# Run the loop for 2 hourswhiletime.time()-start_time<2*60*60:# Perform the actionspe.moveTo(132,475,1)pe.click(132,475,1)# Create the unique sentencemessage=f"superb bro i want this because of camera{counter}"pe.typewrite(message)pe.click(917,515,1)# Increment the counter for unique numberscounter+=1# Optional: Add a delay between iterations if needed (e.g., 1 second)time.sleep(1)
You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@iamraghav1503@ferid333

[8]ページ先頭

©2009-2025 Movatter.jp