Jump to content

Recommended Posts

Posted

(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

  • Developers
Posted
  On 3/5/2019 at 9:59 PM, wirebu said:

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

Expand  

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.
  :)

Posted

@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 9:59 PM, wirebu said:

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

Expand  

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

 

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

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

Expand  

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:

  Reveal hidden contents

 

Posted
  On 3/7/2019 at 8:21 PM, 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.

Expand  

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]

  • Developers
Posted
  On 3/8/2019 at 5: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]

Expand  

..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.
  :)

Posted
  On 3/8/2019 at 5:43 PM, Jos said:

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

Expand  

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...

Posted
  On 3/9/2019 at 8:16 AM, rm4453 said:

NOX also has built in automation scripting for automating clicks, which would work for what you want as well.

Expand  

If you mean the macros recorder it isn't much helpful.

Posted

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.

Posted

@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 5: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]

Expand  

... 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:

  Reveal hidden contents

 

Posted
  On 3/10/2019 at 10: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.

Expand  

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??

Posted

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!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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