keyboardType("This is an example! ;)");
keyboardType("This is an example! ;)");
I'm trying to make a auto repair on rom to not need any mouseclicks, because i usually like to do something else while i bot, so i noticed that rom api has a TargetNearestFriendly function, but you cant execute it from macro's, but you can type it so that it works.
so, i need to type
keyboardPress( key.VK_ENTER );
keyboardType("/script TargetNearestFriendly();");
keyboardPress( key.VK_ENTER );
but it has no shifts! so it looks like 7targetnearestfriendly89, i've tried with
keyboardHold( key.VK_SHIFT );
yrest(100);
keyboardType("t");
yrest(100);
keyboardRelease( key.VK_SHIFT );
and
keyboardHold( key.VK_LALT );
yrest(100);
keyboardPress(key.VK_NUMPAD4 );
yrest(100);
keyboardPress(key.VK_NUMPAD7 );
yrest(100);
keyboardRelease( key.VK_LALT );
with no luck, please help!
so, i need to type
keyboardPress( key.VK_ENTER );
keyboardType("/script TargetNearestFriendly();");
keyboardPress( key.VK_ENTER );
but it has no shifts! so it looks like 7targetnearestfriendly89, i've tried with
keyboardHold( key.VK_SHIFT );
yrest(100);
keyboardType("t");
yrest(100);
keyboardRelease( key.VK_SHIFT );
and
keyboardHold( key.VK_LALT );
yrest(100);
keyboardPress(key.VK_NUMPAD4 );
yrest(100);
keyboardPress(key.VK_NUMPAD7 );
yrest(100);
keyboardRelease( key.VK_LALT );
with no luck, please help!
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: keyboardType("This is an example! ;)");
There will need to be internal changes to MicroMacro to allow for modifier keys (SHIFT, ALT, CTRL). However, you could try wrapping it in a function inside of an addon. That might work. Just something like this:
And then call targetFriendly() inside a macro.
Code: Select all
function targetFriendly()
TargetNearestFriendly()
end
Re: keyboardType("This is an example! ;)");
How can you open the merchant dialog without mouse click?droppen wrote:I'm trying to make a auto repair on rom to not need any mouseclicks, because i usually like to do something else while i bot, so i noticed that rom api has a TargetNearestFriendly function, but you cant execute it from macro's, but you can type it so that it works.
The RoM Bot Online Wiki needs your help!
Re: keyboardType("This is an example! ;)");
You attack the merchantd003232 wrote:How can you open the merchant dialog without mouse click?
Re: keyboardType("This is an example! ;)");
Thx. That's a good informatin!droppen wrote:You attack the merchantd003232 wrote:How can you open the merchant dialog without mouse click?
The RoM Bot Online Wiki needs your help!
Re: keyboardType("This is an example! ;)");
hello interested too by this function
Re: keyboardType("This is an example! ;)");
There is a new function:in the SVN. It will look for a given NPC by searchstring with the hotkey targetnearestfriend. After the bot found the given NPC, he will open the dialog window. The RoM window don't have to be in the foreground for doing that.
Caution: You still can't use any modifiers! So please change your standard ingame settings for targeting nearest friend from CTRL+TAB to 'J' (that's the default in settings.xml).
Code: Select all
player:target_NPC( npc_name_searchstring );
Caution: You still can't use any modifiers! So please change your standard ingame settings for targeting nearest friend from CTRL+TAB to 'J' (that's the default in settings.xml).
The RoM Bot Online Wiki needs your help!
-
- Posts: 104
- Joined: Mon Jan 05, 2009 8:19 am
Re: keyboardType("This is an example! ;)");
Just thought i would let you guys know how to do this ... the sendning of "/" to chat ...
** = The rest of the command
Hope this helps someone out
Zilvermoon
Code: Select all
keyboardPress( key.VK_ENTER );
yrest(100);
keyboardPress( key.VK_DIVIDE );
yrest(100);
** keyboardType("script TargetNearestFriendly();");
yrest(100);
keyboardPress( key.VK_ENTER );
Hope this helps someone out
Zilvermoon
Re: keyboardType("This is an example! ;)");
Thx for your information.
The RoM Bot Online Wiki needs your help!
Who is online
Users browsing this forum: No registered users and 6 guests