jabedbd's Forum Posts

  • I try to compare the value ( which i get from RegexMatchAt expression and set as text to a text object ) with another value.

    if the the values are equal it trigger another object to Visible .

    but it dont work.

    Here is my event sheet system:

    At first i add File Reader to read a text file (Set text Text bOx)

    then i use the RegexMatchAt expression to get data from the Text Box and set the data to Text1.( Working Fine)

    I add Dictionary key "test" with value "myname"(working)

    after that i compare the Text1 data with with the dictionary key value as trigger to visible the textbox

    but do not work.

    can anyone help me to solve it?

  • mindfaQ bro. now i'm facing another problem. I try to compare the value ( which i get from RegexMatchAt(RegexMatchAt(UnknownTexT.Text,"[([^\]\r\n]+)\]","gi",0),"[([^\]]+)\]","i",1) ) with another value.

    if the the values are equal it trigger another object to Visible .

    but it dont work.

    Here is my event sheet system:

    At first i add File Reader to read a text file (Set text Text bOx)

    then i use the expression to get data from the Text Box and set the data to Text1.

    I add Dictionary key "test" with value "myname"

    after that i compare the Text1 data with with the dictionary key value as trigger to visible the textbox.

    but do not work.

    can you help me to solve it?

  • Of course like always with regex the necessary complexity depends on the data you can expect / want to work with.

    If the string always looks like "Hi my name is [myname].", a simple RegexMatchAt(AdvancedTextBox.Text,"Hi my name is [(.+)\]\.","i",1) or even RegexMatchAt(AdvancedTextBox.Text,"[(.+)\]\","i",1) will work.

    If you expect multiple [] in the text and you want to match them all plus wanna filter out newlines, it could look like this:

    thanks a lot bro

  • Ok bro.

    i set the Expressions on a Text object (as set text) : RegexMatchAt(AdvancedTextBox.Text,"[[(\w+)\]]\.","i",1)

    and add "[[word]]" on my txt file.

    but when i load my text file it it set nothing on the Text

    mindfaQ

  • bro simulate open is not work for me

  • you cand do that by calling in the text, the word after a [comma] or a [dot] or a [-] and the text automatically will read the next word, had a capx of that is really simple thing actually! let me find it and will give it to you

    waiting for the capx. please send me it

  • RegexMatchAt(yourstring,"Hi my name is [(\w+)\]\.","i",1) (only works when it's one word, no spaces)

    RegexMatchAt(yourstring,"Hi my name is [([\w ]+)\]\.","i",1) (spaces are allowed)

    RegexMatchAt(yourstring,"Hi my name is [([\w ]+)\]\.","i",1) (any characters are allowed, must be at least one character)

    one of these should do the job, depending on what you need

    if you give me a sample capx file it will be very helpful for me.

    mindfaQ

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Suppose my text file has "Hi my name is [myname]."

    now i want to pick the word which is covering by the "[]" bracket.

    I use File Reader plugin to read the text file and Advance text box to show the data on construct 2.

    If someone know how can i do it please help me...

  • plugin is working good. but when it use in android it show only 2 options (Gallery & music). is there any way to open the "sd card" with the file reader? Pode bro help me please...

  • is there any way to copy protect the textbox content? set disabled is only work for preview mode, when i open this on a android device and make a long press all text are make selected and ready to copy it Pinco bro help me please...

  • is ti support touch Pode ?

  • download link not work rexrainbow

  • where is plugin download link ? rexrainbow

  • jabedbd

    thanks bro

  • jabedbd as is explained just a few posts above, the plugin preceded the official debugger built into construct and so you should use that instead (click run preview in debug mode).

    but i need it to open a old capx file which is created using the plugin. i can't open the project without install the plugin.