Jump to content

dreameo

Scripter II
  • Content Count

    404
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    100%

dreameo last won the day on February 22 2019

dreameo had the most liked content!

Community Reputation

184 Steel

About dreameo

  • Rank
    Black Poster

Profile Information

  • Gender
    Male

Recent Profile Visitors

1890 profile views
  1. https://pastebin.com/B7GexCCy Offers: - Thread Safe (same object can be used by multiple threads) - Throws lock exception if two or more distinct objects pointing to the same file try to acquire a lock (locks acquired by performing read/write) (One minor thing: Assumes EOF contains new line - you can put some hack to fix it but I didn't bother) Notes (from java lib): This file-locking API is intended to map directly to the native locking facility of the underlying operating system. Thus the locks held on a file should be visible to all programs that have access to the file, regardless of the language in which those programs are written. Whether or not a lock actually prevents another program from accessing the content of the locked region is system-dependent and therefore unspecified. The native file-locking facilities of some systems are merely advisory, meaning that programs must cooperatively observe a known locking protocol in order to guarantee data integrity. On other systems native file locks are mandatory, meaning that if one program locks a region of a file then other programs are actually prevented from accessing that region in a way that would violate the lock. On yet other systems, whether native file locks are advisory or mandatory is configurable on a per-file basis. To ensure consistent and correct behavior across platforms, it is strongly recommended that the locks provided by this API be used as if they were advisory locks.
  2. you could just write to a file: if the information is not there, go to bank, get info, dump it to file this information will be persistent and can/should be updated each time you have the bank open
  3. tldr: This is all a conditional sleep does: while(timeRunningFor < timeout && !myBooleanCondition){ Thread.sleep(some_small_value_in_ms); }
  4. Both sides don't agree, you have to manually go in and define a new packet for every type of message.
  5. I think there's a bit of over complication here. Instead of defining a 'packet' for every kind of message, just define a protocol. This way, you have a single send and receive. Internally, you decide how you make sense of the data. I'd also suggest keeping your classes minimal and light.
  6. https://osbot.org/api/org/osbot/rs07/event/webwalk/PathPreferenceProfile.html -You can try disabling all the preferences -Don't think there's a list anywhere -use getPositions from WebWalkEvent
  7. You have two different 'bank' objects and only one is being initialized using 'exchangeContext'. What you could do is make those classes singletons and ensure the main class exchange context prior to them being used elsewhere
  8. @Override public void onStart() throws InterruptedException { getBot().getMouseListeners().add(new BotMouseListener() { @Override public void checkMouseEvent(MouseEvent mouseEvent) { // on shift + left click if(mouseEvent.getModifiersEx() == 1088){ } } }); } Didn't find any documentation but this will do (for win 10 at least).
  9. You can add key listeners - press the key(s) which triggers the file read. or if you're real lazy -> https://osbot.org/api/org/osbot/rs07/input/mouse/ClientMouseEventHandler.html
  10. @Patrick Using mirror mode produces this -> That's without any script running. (AKA, start mirror mode and those errors will start spewing out right away)
  11. hi can I leech a trial, thanks.
  12. dreameo

    Stealth NMZ

    Script works well in Mirror Mode. Would recommend. Provides all options for custom NMZ use. Thanks Token
  13. dreameo

    Stealth Quester

    I've been using this in mirror mode 4.0 and it works pretty well. Even did monkey madness flawlessly.
  14. This could be your problem. Try getKeyboard().pressKey(VK_Z) // z constant
  15. You could print it to the screen itself using graphics. Implement painter and make use of the graphics 2d object from onPaint method.
×
×
  • Create New...