WoW Macros Forums  

Go Back   WoW Macros Forums > Macro Talk
Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-09-2008, 03:18 PM
Junior Member
 
Join Date: Nov 2008
Posts: 2
bossmansmith is on a distinguished road
Default macro for chatting

im trying to figure out how to do chat notifications (/s) in repsonse to different mouse buttons used

example for spell:
/cast [button:1] spell1
/cast [button:2] spell2

i am trying to get something like this
/s [button:1] hello
/s [button:2] good bye

but this is not working.

thanks for help
Reply With Quote
  #2 (permalink)  
Old 11-10-2008, 11:57 AM
MiracleMage's Avatar
Senior Member
 
Join Date: Feb 2008
Location: Adana, Turkey
Posts: 125
MiracleMage is on a distinguished road
Default

/run if (GetMouseButtonClicked() == "LeftButton") then SendChatMessage("hello", "SAY", "COMMON", nil) elseif (GetMouseButtonClicked() == "RightButton") then SendChatMessage("good bye", "SAY", "COMMON", nil) end

try this it should be something like this. But for long strings 255char limit might cause problems

EDIT: Addition
A better way is:

/run b=GetMouseButtonClicked() if b=="LeftButton" then s="Hello" else s="Good bye" end SendChatMessage(s,"SAY","COMMON","")

This type would be more suitable for left, right, middle etc multiple selections. SendChatMessage would be used once and thus less characters would be used.

For example Left> hello , Right> good bye, Middle(etc)>Whats up

/run b=GetMouseButtonClicked() if b=="LeftButton" then s="Hello" elseif b=="RightButton" then s="Good bye" else s="Whats up" end SendChatMessage(s,"SAY","COMMON","") ==> 165characters

/run if(GetMouseButtonClicked()=="LeftButton") then SendChatMessage("hello", "SAY", "COMMON", nil) elseif(GetMouseButtonClicked()=="RightButton") then SendChatMessage("good bye","SAY","COMMON","") else SendChatMessage("Whats up","SAY","COMMON","") end ==> 252characters
__________________
..Born in hell, boy of fire..
Topic: What macros can not do
CastBySpellName() Only thing needed in macros where blizz don't permit it.

Last edited by MiracleMage : 11-10-2008 at 12:59 PM.
Reply With Quote
  #3 (permalink)  
Old 11-10-2008, 03:17 PM
Junior Member
 
Join Date: Nov 2008
Posts: 2
bossmansmith is on a distinguished road
Default

ok i think this one will work:

/run b=GetMouseButtonClicked() if b=="LeftButton" then s="Hello" elseif b=="RightButton" then s="Good bye" else s="Whats up" end SendChatMessage(s,"SAY","COMMON","")

if i want it to say %t i assume i would replace "Hello" with %t (or would it be "%t"). i think i understand the SendChatMessage as this (<phrase wanted>, "<channel>", <what does common refer to???>)

thanks for help
Reply With Quote
  #4 (permalink)  
Old 11-11-2008, 02:32 AM
MiracleMage's Avatar
Senior Member
 
Join Date: Feb 2008
Location: Adana, Turkey
Posts: 125
MiracleMage is on a distinguished road
Default

WoWWiki API SendChatMessage

SendChatMessage("message", "chat_type", "Languge", "Channel")

where message is what you want to say,
chat type is SAY, RAID, WHISPER, EMOTE etc
Language is COMMON, ORCISH, DARSANNIAN, TAURAHE etc
channel is generally used for target in whisper type. For details you can check the wowwiki link above.

If you need for a specific thing i'm here.

///// \\\\\
For

/run b=GetMouseButtonClicked() if b=="LeftButton" then s="Hello" elseif b=="RightButton" then s="Good bye" else s="Whats up" end SendChatMessage(s,"SAY","COMMON","")

script if it doeesn't work try to add local keyword as following: /run local b=Get... Atm i don't play so not able to check myself.
__________________
..Born in hell, boy of fire..
Topic: What macros can not do
CastBySpellName() Only thing needed in macros where blizz don't permit it.

Last edited by MiracleMage : 11-11-2008 at 03:20 AM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 06:29 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0