GUI and SHOWGUI will open (custom) User interfaces p.e. showgui(customized)
You can't toggle an single gui element
however you could use setproperty to set the color to #00000001 (for vanish) or #000000FF (for visible) (works bcs it uses the alpha value)
anyway now to your next problem:
if(&variable == "example" || &variable == test)
log(true)
endif
would be the first and
ifmatches(%&variable%,"hub[0-9]")
log(true)
endif
would be the second
Thanks again for the reply :), would just like to point out that for the first, ifmatches instead of if, and a little tweak for the == would be needed, as what you sent did not manage to work at all
Hey there, I was wondering how to save values from STRIP.
Basically I have something along the lines of
STRIP(&terminal,$$[Terminal])
which would bring up a prompt asking me to input data and save that exact data as &terminal.
however I want to be able to enter "fov 30" and be able to save only number value in a separate variable, such that the original &terminal would be saved as "fov 30" and I'd have a second &variable that would be saved as just "30".
that way I'd be able to then execute things like
FOV(%&variable%)
which is not possible with the full &terminal value
--------
Another thing I'd like to ask is how to place a semicolon in text.
ive tried
log("testing ;");
and
log("testing \;");
However both scripts failed to log anything at all and I've confirmed that the semicolon within the quotes was causing the issue. I wish to be able to use the raw character ";" in my code, would that be possible?
Ah well I've recoded some of my chat filter, about half of it so far, based upon an old backup of one of its small important components, had to bug fix it all over again. The rest was lost though, but it's mostly text to log stuff.
I stumbled upon more old code, and was wondering if IFMATCHES dodd exactly the same thing as IFCONTAINS when testing for chat. Thanks in advance
Ah well I've recoded some of my chat filter, about half of it so far, based upon an old backup of one of its small important components, had to bug fix it all over again. The rest was lost though, but it's mostly text to log stuff.
I stumbled upon more old code, and was wondering if IFMATCHES dodd exactly the same thing as IFCONTAINS when testing for chat. Thanks in advance
I'm in desperate need of help, I just accidentally selected everything in my chat filter, pasted over it, then saved, without realising I had done it to the chat filter instead of my onChat document. The chat filter has A TON of important stuff that works together with all my other macros & scripts, is there any way to get back the old chat filter content?...
I've always been using %CHATCLEAN% for IFMATCHES, but have had 0 success trying to use %CHAT%, could anyone explain please? Not sure if it's because the text I'm testing for it colored or something.
0
Unfortunately, $${setproperty(Customised,chat2,#00000001)}$$ and $${setproperty(armour,chat2,#00000001)}$$ didn't do anything.
0
Thanks again for the reply :), would just like to point out that for the first, ifmatches instead of if, and a little tweak for the == would be needed, as what you sent did not manage to work at all
0
how do I do an if command such that if &variable == either "example" or "test", it will do the same thing? currently I have to do this:
if(%&variable% == "example")
log(true)
endif
if(%&variable% == "test")
log(true)
endif
--------------------------
also how would I make an if command such that any number works? I can't do if(%&variable% == "hub[0-9]"
so currently I have to do
if(%&variable% == "hub1")
log(true)
endif
if(%&variable% == "hub2")
log(true)
endif
if(%&variable% == "hub3")
log(true)
endif
if(%&variable% == "hub4")
log(true)
endif
etc etc
0
That's not what I meant, I will record a video:
0
Thanks a lot :))))
I'm currently on macros 1.8 but SHOWGUI and GUI don't appear to be working at all, they dont toggle or show the custom GUIs I have.
0
Thanks a lot! I have no formal coding experience so I'll try to figure out what &var[] is and why there's [0] and [1].
I'm wondering how you entered custom macro commands directly into the chat box (e.g. Your "/macro fov") I have no idea how that's done. So far I've managed http://arkhamnetwork.org/community/threads/cloudclient7050-liteloader-macro-mod-additionals-new-mods-hover-tapper-pinger.67684/.
0
Hey there, I was wondering how to save values from STRIP.
Basically I have something along the lines of
STRIP(&terminal,$$[Terminal])
which would bring up a prompt asking me to input data and save that exact data as &terminal.
however I want to be able to enter "fov 30" and be able to save only number value in a separate variable, such that the original &terminal would be saved as "fov 30" and I'd have a second &variable that would be saved as just "30".
that way I'd be able to then execute things like
FOV(%&variable%)
which is not possible with the full &terminal value
--------
Another thing I'd like to ask is how to place a semicolon in text.
ive tried
log("testing ;");
and
log("testing \;");
However both scripts failed to log anything at all and I've confirmed that the semicolon within the quotes was causing the issue. I wish to be able to use the raw character ";" in my code, would that be possible?
Any help is greatly appreciated
0
Does* not dodd
0
-Delete-
0
Ah well I've recoded some of my chat filter, about half of it so far, based upon an old backup of one of its small important components, had to bug fix it all over again. The rest was lost though, but it's mostly text to log stuff.
I stumbled upon more old code, and was wondering if IFMATCHES dodd exactly the same thing as IFCONTAINS when testing for chat. Thanks in advance
0
I looked around and couldn't find a file for the chat filter, only those other scripts I made in the Text Editor.
0
I'm in desperate need of help, I just accidentally selected everything in my chat filter, pasted over it, then saved, without realising I had done it to the chat filter instead of my onChat document. The chat filter has A TON of important stuff that works together with all my other macros & scripts, is there any way to get back the old chat filter content?...
0
How do I do a SLOTCLICK that's a right click instead of left click?
0
I see. I assume it uses those weird S shaped symbols instead of '&'.
Is it possible to save phrases in chat with the colour it came with?
0
I've always been using %CHATCLEAN% for IFMATCHES, but have had 0 success trying to use %CHAT%, could anyone explain please? Not sure if it's because the text I'm testing for it colored or something.