wirebu Posted March 5, 2019 Share 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted March 5, 2019 Developers Share Posted March 5, 2019 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 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. Link to comment Share on other sites More sharing options...
Skeletor Posted March 6, 2019 Share 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 Link to comment Share on other sites More sharing options...
wirebu Posted March 6, 2019 Author Share Posted March 6, 2019 (edited) 11 hours ago, wirebu said: (...) I need to write it for Nox (it's an Android emulator). @Skeletor Edited March 6, 2019 by wirebu Link to comment Share on other sites More sharing options...
wirebu Posted March 6, 2019 Author Share Posted March 6, 2019 (edited) Doublepost can be deleted Edited March 6, 2019 by wirebu Link to comment Share on other sites More sharing options...
wirebu Posted March 6, 2019 Author Share Posted March 6, 2019 Bump Link to comment Share on other sites More sharing options...
wirebu Posted March 7, 2019 Author Share Posted March 7, 2019 Nobody? Wonder if it's that hard. Link to comment Share on other sites More sharing options...
orbs Posted March 7, 2019 Share 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 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. aa2zz6 1 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 More sharing options...
wirebu Posted March 8, 2019 Author Share Posted March 8, 2019 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 More sharing options...
Developers Jos Posted March 8, 2019 Developers Share Posted March 8, 2019 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 More sharing options...
wirebu Posted March 8, 2019 Author Share Posted March 8, 2019 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 More sharing options...
wirebu Posted March 9, 2019 Author Share Posted March 9, 2019 Bump Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 9, 2019 Share Posted March 9, 2019 13 hours ago, wirebu said: Just need the function... 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: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
rm4453 Posted March 9, 2019 Share Posted March 9, 2019 NOX also has built in automation scripting for automating clicks, which would work for what you want as well. Link to comment Share on other sites More sharing options...
wirebu Posted March 10, 2019 Author Share Posted March 10, 2019 On 3/9/2019 at 8: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. Yes but I can't do much with these functions. Link to comment Share on other sites More sharing options...
wirebu Posted March 10, 2019 Author Share Posted March 10, 2019 On 3/9/2019 at 9:16 AM, rm4453 said: NOX also has built in automation scripting for automating clicks, which would work for what you want as well. If you mean the macros recorder it isn't much helpful. Link to comment Share on other sites More sharing options...
wirebu Posted March 10, 2019 Author Share 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. Link to comment Share on other sites More sharing options...
orbs Posted March 10, 2019 Share 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 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 More sharing options...
wirebu Posted March 16, 2019 Author Share Posted March 16, 2019 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 More sharing options...
wirebu Posted March 16, 2019 Author Share 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! Link to comment Share on other sites More sharing options...
Recommended Posts