User Tag List

Page 6 of 8 FirstFirst ... 4 5 6 7 8 LastLast
Results 51 to 60 of 78

Thread: Read a specific line of text in chat, and automatically paste?

  1. #51
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Recording the time at 8:06, it records it as 20:6.
    Recording the time at 8:10, it records it as 20:10.
    this is correct, if you need leading zeroes for 20:6 see answer above

    Sure you can upload these data online,
    but that's a completely different thing to do and depends on a lot ot things (mostly your webserver, your database)

    Making different lists for each user would require you to do an authentication system for users (inside and/or outside Fusion)

    If you'll need that, that's something we can do, but could possibly require another 5 page thread

  2. #52
    Clicker Fusion 2.5 DeveloperSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,306
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Though you said that code was for hours. If I wanted it for minutes, would it be this?
    Left$("00",2-len(Str$(minutes of( "Date & Time" )))) + Str$(minutes of( "Date & Time" ))

    So I suppose the entire code would be this:

    Edittext$( "List" ) + NewLine$ + Alterable String A( "Web Control Object" ) + Right$(FoundText$( "Web Control Object" ), 20 ) + " - Submitted at " + Str$(hours of( "Date & Time" ) ) + ":" + Left$("00",2-len(Str$(minutes of( "Date & Time" )))) + Str$(minutes of( "Date & Time" )) + " on " + Str$(year of( "Date & Time" ) ) + "/" + Str$(month of( "Date & Time" ) ) + "/" + Str$(day of month of( "Date & Time" ) )

    EDIT: Yup. That worked like as expected. Nice!

  3. #53
    Clicker Fusion 2.5 DeveloperSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,306
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    I've got another idea.

    If someone posts an id such as 0A1B-2C3D-4E5F-6G7A the first time. Then posts 0A1B-2C3D-4E5F-6G7A AGAIN, is there a way to detect this and NOT list the same ID more than once? That way, the list will not be spammed by the same ID by different users.

    If not, then I can probably work around this manually.

  4. #54
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Sure you can do,
    but I think you'll have to store codes while peoples send them,
    (i.e. in a string array)
    and then check against this database before posting new lines
    (if find_array routine gives no result >> do the "newline" stuff)

  5. #55
    Clicker Fusion 2.5 DeveloperSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,306
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Hmm...... I was thinking along the lines of "[Web Object] On Found Text = Alterable String A", or maybe "Edittext$("List") = [Web Object] FoundText". You know, like instead of storing the data in an array, just search from top to bottom of the edittext$("List") for the same text that was just submitted, minus the !id part.

    Would that work?

  6. #56
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    You're right, I think this could be actually a faster way!

    You could simply perform a Fusion find:

    Find(Edittext$("List"),"***newly submitted id***", 0) < 0
    >>> add the newline

    Always assuming you just need to search in the current active "log" and don't need to search ids submitted in previous sessions,
    otherwise you'd better save them in an array, so you could load previous sessions and optimize searchs after more days

  7. #57
    Clicker Fusion 2.5 DeveloperSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,306
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Well... If I save the text document (example, list.txt), then when I exit, and load it back up again on another day, when a person submits the ID, have a condition to check, or read all text in list.txt to make sure that certain ID is not already saved.

    I don't know what what code means, if I'm supposed to replace ***newly submitted id*** with a script that does something like 'string A = foundtext$ of list.txt'.

  8. #58
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    I'm not sure about how good this would perform after many, many days,
    I guess the array could be faster on the long run, but It's something you'll have to test
    (and decide also thinking for how "long" your records will be kept)


    Find(Edittext$("List"),"***newly submitted id***", 0) < 0


    ***newly submitted id*** = 0A1B-2C3D-4E5F-6G7A
    (i.e.)


    should search "0A1B-2C3D-4E5F-6G7A" in the Edittext and return -1 if the string is not found

    so when this condition is met (< 0)
    it means this code "0A1B-2C3D-4E5F-6G7A" has not been found in the edit box
    and thus you can add it to the list, making all the newline stuff we already know

  9. #59
    Clicker Fusion 2.5 DeveloperSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,306
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    The thing is I don't want to make a LONG list of triggers that would check for specific 1 million codes saved to the list.

    I was thinking of maybe one trigger that when, for example: !id 0000-1111-2222-3333 was posted, have the condition to do its usual check for "!id + 20", store the 20+ characters temporary in an alterable string, but before posting it in the text editor, to find if the same 20+ characters exist in the saved list.txt. If that were the case, either to ignore posting it again, or have a message written saying the id was already submitted.

  10. #60
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Sure, the above example was meaning that in ****newly submitted id****
    you would feed the ids right when they get submitted by users,
    so that:

    1) you search for !id with the web control
    2) on !id found, you parse the string to extract the code, only when = 20 character

    you already have this, then comes the new stuff:

    3) before appending lines in the editbox, perform the above Find(etc.) condition with the code extracted in point 2)
    4) if condition is met, add new line in the edit box

Page 6 of 8 FirstFirst ... 4 5 6 7 8 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 11th June 2015, 03:54 PM
  2. Pulling a specific line from a text string?
    By fwtep in forum Fusion 2.5
    Replies: 4
    Last Post: 9th March 2014, 09:38 PM
  3. Rich Text Object - Get specific line and letter
    By HadHaw in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd February 2013, 07:28 PM
  4. chat program - changing color from line to line.
    By jhad9 in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 16th October 2011, 11:30 PM
  5. Help Get specific line text
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th February 2010, 09:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •