Page 1 of 1

[Help] with WM_USER+0x4321

Posted: 2004-11-26 18:20:17
by FreeUser
Is it possible to send script command or call scripted functions instead of simple commands i.e.

i know i can:
SendMessage <uo>,WM_USER+0x4321,1,GlobalAddAtom("msg Hello")

but why i can't
SendMessage <uo>,WM_USER+0x4321,1,GlobalAddAtom("Uo.Print(\"text)\"") ?????

i need such a feature!!! or btw something to echo text to system message

i know i can let easyuo do this but i don't want to use e4zy

Sir Yoko help me pls-!!!!!!!!

Posted: 2004-11-26 18:43:56
by drcrazy
I think scripting functions couldn't be called outside from scripting module.

Only functions working also via input line of UO window could be sent.

Posted: 2004-11-26 18:47:43
by Yoko
maybe commands ,textopen ,textclose ,textprint will be enough?

Posted: 2004-11-26 19:17:08
by FreeUser
First thanks very much for interest :)

but what i'm searching for is a way to:

1. Pass arguments to script functions i.e. ,Exec Echo("Hello!")
2. a ,sysMessage command not only ,msg which displays text on the head of the character
3. If possible support for new aos spells :)

For 1-2 is 'cause i've written a prog. that reads uo map chat messages and send it to inj. but inj can only understand ,msg this way (wm_user+) and so messages are displayed on the top of the head of pg instead of bottom left corner. :)

anyway thanks again

so SHORTLY is is possible something like this : ,exec MyFunction(arg1,arg2) ?

or simply a SET which allow to set injection variables ? 'cause as i know addobject does store only numbers

Posted: 2004-11-26 20:27:26
by Yoko
FreeUser wrote:so SHORTLY is is possible something like this : ,exec MyFunction(arg1,arg2) ?

no way
FreeUser wrote:or simply a SET which allow to set injection variables ? 'cause as i know addobject does store only numbers

[yhlp_SetEasyUO] and [yhlp_GetEasyUO] using registry to store and retrieve values
you may use it

Posted: 2004-11-26 20:52:06
by FreeUser
Get/SetEasyUO I used to think that Get/SetEasyUO cannot be used from WM_USER 'since they're not commands (I've already thought this :) )

(so the only way to perform my task is to use easyuo together with inj making e4sy read vars. and inj write on sigh)

thank anyway :)

Posted: 2004-11-26 23:14:56
by Yoko
there is no need in easyuo to read/write windows registry

Posted: 2004-11-28 03:02:32
by Yoko