fongka2's Forum Posts

  • goddamn intelXDK

    every when i type in textbox it auto scroll my app

    Any idea i can fix it back normal or disable auto scroll(And get keyboard size?)

    UTUBE:

  • If your input string is "name(id):hello!" ?

    Not entirely sure I understand your question. :>

    I'm making a chatroom app

    here is i use mid&find

    mid(Function.Param(0),find(Function.Param(0),"(")+1,find(Function.Param(0),"):")-find(Function.Param(0),"(")+1)

    function.param(0)=username(userid):xxxxxx (eg:fongka2(fongka2):hello!)

  • fongka2

    Wow wonderful app.

    Want to see your app soon.

    If you are happy, I also happy.

    Thanks

    God let me become your friends, is my grace

  • C2 use Javascript syntax for its Regex. Delimiters are "^" to match the beginning of a string (or line for multiline) and "$" for the end.

    Be aware though that "^www\.(.*)\.com$" won't find a match in "http://www.google.com", since the string doesn't begin with "www".

    Regex works great with C2, but it lacks one important thing, there is no capture group support, so "www\.(.*\.com)" will actually match "www.google.com" and not only "google.com" in the string "http://www.google.com". It would be great to be able to do something like RegexMatchAt(0).Groups(0) or something...

    if = "name(id):hello!"

    may i ask,if i wanna to take "id"

    what should i do C2 please?

  • fongka2

    Added Phonegap InAppBrowser as you want.

    After finish your game/app,

    reply the post: Games/Apps with phonegap related plugins (+Crosswalk), then I'll add your game/app to the list

    Thanks

    Sure i will

    my App is just like "Skout"

    (for my client,he paid)

    You will see how a lot of your plugin save my life

  • Please add In-App browser As soon as possible...I really need this right now

  • Please make update for this plugin

    (like iScroll5)

  • iriane

    You just use Phonegap Capture plugin to capture camera picture into not cache (not erased).

    See doc/example_phonegapcapture_advanced.capx

    fongka2

    Added "copy and move file" features to Phonegap File plugin.

    Added "upload file to server" feature to Phonegap FileTransfer plugin.

    Thankyou

    you are my life saver

    I hope there are more Node webkit like function

    like AppFolder(where am i?) and ListFile etc...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • >

    > but...can you please make a screen shot for me?

    > i know how to use Regex now but not in C2

    > this not working

    >

    RegexMatchCount("http://www.google.com http://www.yahoo.com http://www.scirra.com","www\.(.*)\.com","")
    >  [/code:yfxjdn64]
    >  
    > Thankyou sososooss much again
    > 
    
    I haven't used it in C2 yet, its on my todo list   
    
    Your using RegexMatchCount which is a count method, so with the example, it should return int 3.
    
    If that doesn't work can u try using "@www\.(.*)\.com@"? Not sure if C2 needs the delimiters, in this case i am using "@" just to keep it simple, i won't go too much into it
    
    Note: RegexMatchAt and RegexReplace would be more useful than RegexMatchCount
    
    With RegexMatchAt, it only would return one result so you should do each website one at a time. For example, a list of website urls in a loop
    
    One last thing i forgot in my last post is the brackets (). inside is what you want to capture. so if you had "www.google.com" with regex pattern "www\.(.*\.com)" RegexMatchAt will return "google.com"
    

    Its working

    i forgot add "Flag"

    but for now i only can add Flag*1

    I don't know how to use Flag>1

  • Regex aka Regular Expressions. Its a big topic. So I'll just give you a small example of the power of what it can do. Google should help if you want to know more

    You want to extract the website names from these website addresses, but you don't know what to expect but you know that there is a pattern of "www." and ".com"

    http://www.google.com http://www.yahoo.com http://www.scirra.com

    So you can use regex!

    with a pattern like "@www\.(.*)\.com@"

    @ is the delimiter, it tells you where the pattern starts and ends (you can add flags at the end for matching new lines, ignore case sensitivity etc), but this may only apply to php

    \. is escaping full stop

    . is match any character

    * is match 0 or more any characters

    You can test and learn with this tool: http://regexpal.com/

    In the top box, enter this:

    www\.(.*)\.com[/code:2qdnas4l]
    In the second box, enter this:
    [code:2qdnas4l]
    http://www.google.com
    http://www.yahoo.com
    http://www.scirra.com
    [/code:2qdnas4l]
    

    but...can you please make a screen shot for me?

    i know how to use Regex now but not in C2

    this not working

    RegexMatchCount("http://www.google.com http://www.yahoo.com http://www.scirra.com","www\.(.*)\.com","")
     [/code:2qdnas4l]
     <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">  <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">  <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">
    Thankyou sososooss much again
  • Regex aka Regular Expressions. Its a big topic. So I'll just give you a small example of the power of what it can do. Google should help if you want to know more

    You want to extract the website names from these website addresses, but you don't know what to expect but you know that there is a pattern of "www." and ".com"

    http://www.google.com http://www.yahoo.com http://www.scirra.com

    So you can use regex!

    with a pattern like "@www\.(.*)\.com@"

    @ is the delimiter, it tells you where the pattern starts and ends (you can add flags at the end for matching new lines, ignore case sensitivity etc), but this may only apply to php

    \. is escaping full stop

    . is match any character

    * is match 0 or more any characters

    You can test and learn with this tool: http://regexpal.com/

    In the top box, enter this:

    www\.(.*)\.com[/code:2x5tn8ln]
    In the second box, enter this:
    [code:2x5tn8ln]
    http://www.google.com
    http://www.yahoo.com
    http://www.scirra.com
    [/code:2x5tn8ln]
    

    seems very complex but powerful

    thankyou for your demo!!!!!!

  • RegexMatchAt(String, Regex, Flags, Index)
    Process the regular expression Regex on String with Flags, and in the list of results, return the entry at Index.
    
    RegexMatchCount(String, Regex, Flags)
    Process the regular expression Regex on String with Flags, and return the number of entries in the list of results.
    
    RegexReplace(String, Regex, Flags, Replace)
    In String substitute matches for the regular expression Regex (with Flags) with the string Replace. The replacement string can contain the following special characters: $$ (inserts a $), $& (inserts the matched substring), $` (inserts the portion of the string that precedes the matched substring), or $' (inserts the portion of the string that follows the matched substring).
    
    RegexSearch(String, Regex, Flags)
    Return the index of the first character in String where a match for Regex with Flags could be found.[/code:1nbjwm8u]
    
    Seems useful ! But i don't know what is this...
    Please someone post a demo for tell me what is that or how to use?  
    Thankyou!!
  • fongka2

    Now, I understand what you said.

    I'll add that to to-do list.

    Thanks

    Sorry for my english

  • fongka2

    I can't understand what you want still.

    Explain in details.

    TheWyrm

    I must try to make my games to support my living for the time being.

    Then I'll think about completion and contributing the google play native plugin.

    I wish you understand me.

    Thanks

    Go IndelXDK

    PORJECTS

    your xdk project

    CORDOVA 3.X HYBRID MOBILE APP SETTINGS

    PLUGINS AND PERMISSIONS

    Core Cordova Plugins

    ..You will see there have a "In App Broser Plugin"

    I will need to open some website in my App

    so.. will you please add this plugin for C2?

  • fongka2

    What do you mean?

    I don't understand what you want.

    http://cordova.apache.org/docs/en/3.3.0 ... er.md.html