wirebu Posted March 5, 2019 Posted March 5, 2019 (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 Jos Posted March 5, 2019 Developers Posted March 5, 2019 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 FrancescoDiMuro 1 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.
Skeletor Posted March 6, 2019 Posted March 6, 2019 Which Android Emulator are you using? Kind RegardsSkeletor "Coffee: my defense against going postal." Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI
wirebu Posted March 6, 2019 Author Posted March 6, 2019 (edited) On 3/5/2019 at 9:59 PM, wirebu said: (...) I need to write it for Nox (it's an Android emulator). Expand @Skeletor Edited March 6, 2019 by wirebu
wirebu Posted March 6, 2019 Author Posted March 6, 2019 (edited) Doublepost can be deleted Edited March 6, 2019 by wirebu
orbs Posted March 7, 2019 Posted March 7, 2019 @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. aa2zz6 1 Signature - my forum contributions: Reveal hidden contents 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
wirebu Posted March 8, 2019 Author Posted March 8, 2019 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 Jos Posted March 8, 2019 Developers Posted March 8, 2019 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.
wirebu Posted March 8, 2019 Author Posted March 8, 2019 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...
FrancescoDiMuro Posted March 9, 2019 Posted March 9, 2019 On 3/8/2019 at 6:04 PM, wirebu said: Just need the function... Expand Did you take a look at what @orbs suggested to you? You have to wait a 24 hours before bump your thread. Click here to see my signature: Reveal hidden contents ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
rm4453 Posted March 9, 2019 Posted March 9, 2019 NOX also has built in automation scripting for automating clicks, which would work for what you want as well.
wirebu Posted March 10, 2019 Author Posted March 10, 2019 On 3/9/2019 at 7:47 AM, FrancescoDiMuro said: Did you take a look at what @orbs suggested to you? You have to wait a 24 hours before bump your thread. Expand Yes but I can't do much with these functions.
wirebu Posted March 10, 2019 Author Posted March 10, 2019 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.
wirebu Posted March 10, 2019 Author Posted March 10, 2019 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.
orbs Posted March 10, 2019 Posted March 10, 2019 @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 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
wirebu Posted March 16, 2019 Author Posted March 16, 2019 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??
wirebu Posted March 16, 2019 Author Posted March 16, 2019 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!
Recommended Posts