February 24, 20178 yr I've searched the forums but couldn't find a muling snippet. Does anyone have a working muling script they are willing to share? Edit: What I'm really looking for is a snippet to send a message to the mule (via sockets?) signalling it to log in. The rest I can code with ease myself. Thanks for your help though. Edited February 24, 20178 yr by Adept
February 24, 20178 yr I haven't seen any, just go to the API and read about Trading https://osbot.org/api/org/osbot/rs07/api/Trade.html Pretty simple to read the API and create one yourself Edited February 24, 20178 yr by Juggles
February 24, 20178 yr 6 minutes ago, Adept said: I've searched the forums but couldn't find a muling snippet. Does anyone have a working muling script they are willing to share? sent you a pm
February 24, 20178 yr 10 minutes ago, Juggles said: I haven't seen any, just go to the API and read about Trading https://osbot.org/api/org/osbot/rs07/api/Trade.html Pretty simple to read the API and create one yourself Just curious when you call the accept method will it accept both trade screens or do you have to call it for the first screen then again for the second? not really important just wondering
February 24, 20178 yr Just now, lizzzerd said: Just curious when you call the accept method will it accept both trade screens or do you have to call it for the first screen then again for the second? not really important just wondering The accept method works for both the first and second trade screens
February 24, 20178 yr Author 8 hours ago, Juggles said: I haven't seen any, just go to the API and read about Trading https://osbot.org/api/org/osbot/rs07/api/Trade.html Pretty simple to read the API and create one yourself What I'm looking for is the bit where a message is sent to the mule (via sockets?) signalling it to log in. As you rightly pointed out yourself, the rest is fairly easy to make using the API. Edited February 24, 20178 yr by Adept
February 24, 20178 yr 12 minutes ago, Adept said: What I'm looking for is the bit where a message is sent to the mule (via sockets?) signalling it to log in. As you rightly pointed out yourself, the rest is fairly easy to make using the API. A lil google won't hurt I've found these examples very useful. http://cs.lmu.edu/~ray/notes/javanetexamples/ Other options would be to use file system. Creating a file in OSbot directory and reading/writing info to it. Of course you can think of other methods also. Edited February 24, 20178 yr by nosepicker
February 24, 20178 yr 6 hours ago, Adept said: What I'm looking for is the bit where a message is sent to the mule (via sockets?) signalling it to log in. As you rightly pointed out yourself, the rest is fairly easy to make using the API. I use glassfish servers and tyrus standalone client library. You'll need to be fairly experienced to set it up but im sure you can figure out using google. Or you could also use sockets. I like to use the server because I do more than just muling in a lot of my scripts that use it. Mine sends requests via JSON to the server which then sends it out to the specified bots. Sometimes I do some server sided stuff such as logging among other things. Its cool because if you want you can serialize objects, convert to base64 and send whole objects over the server (which can also be done with sockets). You can also just send plain text and what not. I usually have some header data such as the request type, who is sending it, where its going to, and then a hashmap with parameters, for example (master, zezima), (Coins, 142000), etc. Edited February 24, 20178 yr by LoudPacks
February 24, 20178 yr Author 56 minutes ago, LoudPacks said: I use glassfish servers and tyrus standalone client library. You'll need to be fairly experienced to set it up but im sure you can figure out using google. Or you could also use sockets. I like to use the server because I do more than just muling in a lot of my scripts that use it. Mine sends requests via JSON to the server which then sends it out to the specified bots. Sometimes I do some server sided stuff such as logging among other things. Its cool because if you want you can serialize objects, convert to base64 and send whole objects over the server (which can also be done with sockets). You can also just send plain text and what not. I usually have some header data such as the request type, who is sending it, where its going to, and then a hashmap with parameters, for example (master, zezima), (Coins, 142000), etc. Mighty cool. I'll definitely look into the stuff you mentioned. Thank you so much for such a detailed answer. Edited February 24, 20178 yr by Adept
February 24, 20178 yr Author 7 hours ago, nosepicker said: A lil google won't hurt I've found these examples very useful. http://cs.lmu.edu/~ray/notes/javanetexamples/ Other options would be to use file system. Creating a file in OSbot directory and reading/writing info to it. Of course you can think of other methods also. Rest assured that I've done PLENTY of Googling but figured I'd ask the community for help while the bot is down and can't put the methods to the test. Thanks for your help. Very valid ideas, thank you Edited February 24, 20178 yr by Adept
February 25, 20178 yr On 2/24/2017 at 2:58 AM, Chris said: I use it but I had to modify it a bit. You mind sharing? I tried debugging it but couldn't get it working 100% properly.