What does /notify really do?

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

wasted
a ghoul
a ghoul
Posts: 89
Joined: Thu Sep 02, 2004 10:10 am

What does /notify really do?

Post by wasted » Sat Sep 18, 2004 9:57 am

the manual says thet /notify is lick /click (very not helpful actually) and it will click a button for you without the benefit of the mouse. Perhaps I am missing the actual implications of this. My problem is thus:

I have an EQ macro called "gsay" which contains the command "/gsay blah blah blah" and have it bound to HotButton1. With that in mind, the following works:

Code: Select all

#event LangHelp "Type /language help for a list" 

Sub Main 
	|SetDeclares 
	/declare LangNum outer 
	/declare MinLangNum outer 
	/declare MaxLangNum outer 

	|SetVars 
	/varset MinLangNum 2 
	/varset MaxLangNum 25 

  	:MainLoop 
   	/if (${Target.Name.Equal[${Me.Name}]}) /goto :end 
  	|GroupChat 
	/varcalc LangNum ${LangNum}+1 
	/if (${LangNum}>${MaxLangNum}) /varset LangNum ${MinLangNum} 
	/lang ${LangNum} 
	/notify HotButtonWnd HB_Button1 leftmouseup 
	/delay 2s
	/doevents 
	/goto :MainLoop 
  	:end 
/endmacro 

Sub event_LangHelp 
	/varset LangNum ${MinLangNum} 
/return
But, if I change

Code: Select all

	/notify HotButtonWnd HB_Button1 leftmouseup 
to

Code: Select all

	/gsay blah blah blah
the macro stops using different languages. EQ tells me that my languages are cycling, which is correct. I can even use /gsay on the command line directly and it works, just from the macro, it will not use the language the character is set to. Any ideas?

Whrip
orc pawn
orc pawn
Posts: 19
Joined: Tue Jun 22, 2004 1:03 pm

Post by Whrip » Mon Sep 20, 2004 12:57 am

If your using multiple chat windows, i would try and rule that out as a possibility. Make sure all your windows are set to "common". Then use the "always chat here" option on the "Main" chat window, set language accordingly. Not a solution, just something to rule out. I havn't used any of the language macro's floating around but i've seen some weird stuff happen in the past with multiple windows with different languages selected for each. I think there may lie some heirachy as to which chat window gets precedence for the output language. Maybe one of the devs can shed some light on how its coded.

TheAFKBard
a ghoul
a ghoul
Posts: 133
Joined: Tue Dec 30, 2003 9:48 pm

Post by TheAFKBard » Mon Sep 20, 2004 4:59 am

Using the search button might have obviated the need for this thread. Search macro forum for language and read the extensive explanation of why your macro is behaving like it is.

efudd
a lesser mummy
a lesser mummy
Posts: 50
Joined: Sun Jan 04, 2004 8:00 pm

Post by efudd » Mon Sep 20, 2004 11:15 am

......

/notify is kinda like "click the mouse button".

So... "Click HotButton1 on the Hotbutton window Please!"

and hotbutton1 should have /gsay spam foo bar baz in it.

just using /gsay directly in the macro won't do skillups. Dunno why... "feature"... use a hotkey...

-jbl

wasted
a ghoul
a ghoul
Posts: 89
Joined: Thu Sep 02, 2004 10:10 am

Post by wasted » Mon Sep 20, 2004 4:29 pm

TheAFKBard wrote:Using the search button might have obviated the need for this thread. Search macro forum for language and read the extensive explanation of why your macro is behaving like it is.
You know, you're right. Perhaps the proper title of the thread should be "Why doesn't /gsay work as a command when called from a macro?" Although all the language threads I have found mention this problem, none mention a way by which I can use /gsay instead of the /notify (or any other "clickety" method) nor why the problem occurs in the first place. If you can answer that question, indeed this thread will be unnecessary.