set trade amount with macro
I need to set trade amount with a macro, can be done?
With this I got the name of the frame I need to modify: Code:
/run local f = GetMouseFocus(); if f then DEFAULT_CHAT_FRAME:AddMessage(f:GetName()) end Now I have this macro: Code:
/tar [PLAYERNAMEHERE] Could you helpme? |
I don't think there is a /select command.
/click only works on buttons and is to securely execute Lua onclick handlers. If you're looking to select the editbox to type in a value, you need to call a Lua method to activate it. Code:
/run TradePlayerInputMoneyFrameGold:SetFocus() To have the macro set a value, you can use this. This example sends 1 gold. (10000 copper) The editbox does not need to be "selected" in order for this to work. Code:
/run MoneyInputFrame_SetCopper(TradePlayerInputMoneyFrame, 10000) |
Omg!! Thanks a lot It worked!!!!
Code:
/tar [NameplayerHere] |
I think so, though I've had the trade window cancel the accept from lag and make you click it again. That might prevent this kind of macro from auto accepting 100%.
|
Just as you told to me! I must click 2 times, or make 2 macros. Thanks a lot for the help!
|
All times are GMT -6. The time now is 06:03 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI