Jump to content

MALS

Members
  • Posts

    10
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

MALS's Achievements

Newbie

Newbie (1/10)

1

Reputation

  1. Strange. So you literally have something like this in your code; log("About to open tab"); getTabs().openTab(Tab.Inventory); log("Opened tab"); and it only prints those 2 lines and doesn't open tab? In that case I guess its a bug in the API
  2. You mean the slider in the settings menu?
  3. For me it works as expected. I've isolated the code in a empty script: @Override public void onStart() throws InterruptedException { getTabs().open(Tab.FRIENDS); sleep(1000); getTabs().open(Tab.INVENTORY); sleep(1000); getTabs().open(Tab.IGNORES); } Only thing that seems wrong is that the friends and ignores tab seem to be swapped. This code opens the ignores tab first. Next time you have a problem try isolating the problem and adding print statements. This solves most problems for me.
  4. Hey, In a script I would like to zoom out the camera. I've tried using getMouse().scrollDown(); but this method only works when input is enabled, and there seems to be no way to enable input by code. I would like to know if this is possible without using the camera zoom widget. Thanks in advance! SOLUTION: the mouse was not focused on the game screen, to fix i just hovered the mouse over some random game object and then used getMouse().scrollDown();
  5. Yeah you'd think this would work but in the problem is that getKeyboard().pressKey(KeyEvent.VK_SPACE); doesn't actually seems to hold the spacebarm, but only press it once in a dialogue. Overnight I might have came up with a solution though, if you long press a key in the chatbox, it types like 10 characters a second, the same as calling typeKey(' ') 10 times a second would do. I might just simulate that.
  6. It's about 100% faster in my case. Simulating a spacebar press 100x a second would also work, but thats not something what humans do.
  7. Nope, this would press the spacebar repeatedly and not hold it
  8. Hey, I am writing a script that has to do a lot of talking with NPC's. In order to speed this up I want to simulate holding down the spacebar, but I can't seem to get it working. The build in Dialogues class does press spacebar to continue, but doesn't hold it down. The Keyboard class has a pressKey() method but this also doesn't seem to hold down spacebar. My question; is it possible to simulate holding down the spacebar in dialogues? Thanks in advance! edit: Found a solution myself! public void holdSpacebar() throws InterruptedException { while (getDialogues().isPendingContinuation()) { getKeyboard().pressKey(' '); sleep(30); } getKeyboard().releaseKey(' '); } By testing I found that a key gets repeated about 2000 times a minute on Windows 10 with the repeat rate set to max in keyboard properties. This translates to a key press every 30ms. This method seems to have the same behavior as a human holding down spacebar. The talking process in my script seems to be sped up by about 100%!
  9. Excuse me do you mean the script constantly hovers the Attack skill?
  10. Hi, This is the release of my first OSBot script. The script has 2 dummy locations built in; Varrock east and Varrock castle. It can also attack any nearby dummy. The script will walk to the selected location and start attacking a dummy until it reaches the desired Attack level (MAX level 8). If you have feedback/suggestions/problems, please let me know! «MALS» MALSDummies.jar
×
×
  • Create New...