Jump to content

Autoclick on emulator


Recommended Posts

(Already talked to a mod; he said it's fine)

Hello,

I have the following problem right now: I need to write a bot that deletes my friends on PS4 (have over 1500 random people; needed them back in the day for glitches). Since it's not working on the PS4 (obviously), I need to write it for Nox (it's an Android emulator). An Internet browser would work too, but the friendlist is there messy and I don't want to change the IP (will explain below why) for the whole operating system. The bot IS required as I don't want to go to each individual profile and then delete them individually. First problem: I need a function that clicks in the background. So far it worked pretty well with MouseClick but it doesn't click in the background. Second problem: After a while my IP gets blocked so I need to change it with a VPN app (I can write that myself with opening the app and choosing a server). So, the problem here is that if the bot reads a certain text (in this case for example: "Your IP is blocked because of too many requests and therefore you can't enter the server bla bla") or a certain word ( e. g. "server") then he should do the task (changing IP).

So in summary (tl;dr), I need a function that clicks in the background (in an Android emulator) and a IF THEN function combined with a function for reading a certain text/word (to be clear: "IF you read this word THEN do this...")

I really hope someone can help me out (if possible could you write an example code, so I only need to change the mouse coordinates?).

Thanks in advance!

 

wirebu

Link to comment
Share on other sites

  • Developers
22 minutes ago, wirebu said:

(Already talked to a mod; he said it's fine)

correct... as long as it is about other stuff than automating the game. :)

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

@wirebu, what you are asking is not trivial, to put mildly. Nox is not a native Windows application (built with the QT5 framework) hence very unlikely to be automated successfully (if at all), especially in the background.

 

On 3/5/2019 at 11:59 PM, wirebu said:

An Internet browser would work too, but the friendlist is there messy ...

given the powerful _IE* and WebDriver UDF, i would recommend exploring the web browser approach.

 

On 3/5/2019 at 11:59 PM, wirebu said:

... and I don't want to change the IP (will explain below why) for the whole operating system.

that is understood, and solutions to that exist - run the browser-based script on a dedicated virtual machine running its own VPN client, for example.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

21 hours ago, orbs said:

@wirebu, what you are asking is not trivial, to put mildly. Nox is not a native Windows application (built with the QT5 framework) hence very unlikely to be automated successfully (if at all), especially in the background.

 

given the powerful _IE* and WebDriver UDF, i would recommend exploring the web browser approach.

 

that is understood, and solutions to that exist - run the browser-based script on a dedicated virtual machine running its own VPN client, for example.

That would work too. Didn't think about that. So, which function would be needed if I want that the program reads a specific text? If possible, could you please write the code (with IF function preferably)?

[Btw. Idk if you know mybot but that is a bot that automates a mobile game. The bot is completely written with autoit (open source) and it clicks in the background and works with Nox; just saying]

Link to comment
Share on other sites

  • Developers
7 minutes ago, wirebu said:

[Btw. Idk if you know mybot but that is a bot that automates a mobile game. The bot is completely written with autoit (open source) and it clicks in the background and works with Nox; just saying]

..but we aren't going down that path!

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

19 minutes ago, Jos said:

..but we aren't going down that path!

Of course not. Just wanted to draw attention to the possibilities.

So yeah it's possible on Nox but like @orbs has suggested, I will do it with Firefox on a VM.

Just need the function...

Link to comment
Share on other sites

Is there no one who can help me? If it's too complex I'd also do it with Firefox (on a VM). So, all I need is the name of the function that reads a text and if it contains a specific word it does a certain task.

Link to comment
Share on other sites

@wirebu, either way you go - automating either Nox or a web browser - it's time for you to show some effort. you'll need to study the relevant methods, start writing your code, and when asking for help, post what you have done so far (even if not working properly).

if you try to automate a web browser - no matter which - along with your code, also post the HTML content of the page you want to automate, so we may advise you on how to detect, read and manipulate the relevant objects.

if you try to automate Nox - when you say...

On 3/8/2019 at 7:34 PM, wirebu said:

[Btw. Idk if you know mybot but that is a bot that automates a mobile game. The bot is completely written with autoit (open source) and it clicks in the background and works with Nox; just saying]

... it seems to me that you are the Nox expert around here. if you have a bot that works with Nox, modify it to do whatever you want.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

On 3/10/2019 at 11:04 AM, orbs said:

@wirebu, either way you go - automating either Nox or a web browser - it's time for you to show some effort. you'll need to study the relevant methods, start writing your code, and when asking for help, post what you have done so far (even if not working properly).

if you try to automate a web browser - no matter which - along with your code, also post the HTML content of the page you want to automate, so we may advise you on how to detect, read and manipulate the relevant objects.

if you try to automate Nox - when you say...

... it seems to me that you are the Nox expert around here. if you have a bot that works with Nox, modify it to do whatever you want.

Sorry for the late response but I was busy...

I studied nearly every function that I need for the working of the bot. And yes, I could also post the code but I really doubt you could do anything with it since it's only the coords of the mouse.

I'm sorry but unfortunately I don't know how to post the HTML content of the page.

And I'm not a Nox expert. Someone just suggest me the built in automation scripting in Nox but that's not useful at all nor have I coded that bot for the mobile game myself. If I could change the code myself, why would I ask here for help??

Link to comment
Share on other sites

To @everyone reading this thread: Since it seems too complicated to you, I suggest to change the code a bit.

So, the new question is if it there's a function where the the bot does a specific thing after a specific time?

For example:

After 10 minutes do "this" (not sleep)

I think this should be easy for you but unfortunately not for me.

Thanks in advance!

Link to comment
Share on other sites

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...