About Easy Language Question I want to read TXT text coordinates with Easy Language

Updated on technology 2024-04-14
20 answers
  1. Anonymous users2024-02-07

    Version 2 supports library specs

    Local variable file number, integer.

    Local variables text, textual.

    Local variables Text Array, Textual, ,"0"

    The local variable r, an integer type.

    The local variable t, an integer.

    Open the file first, in a read-only way.

    File number Open File (take the coordinates of the running directory(). txt", read in, unlimited).

    Move to the file header (file number).

    Circular judgment first ().

    Read from the first line.

    The text is read into one line (file number).

    After reading the text, the text is separated by a comma, and the judgment is added to prevent the occurrence of no comma and the array error.

    If true (looking for text (text, "false"≠1) text array split text (text, "text".

    If true (take the number of array members (text array) 1)r to the integer (text array [1]).'Assignment.

    t to an integer (text array [2]).'Assignment.

    Handling event(s).

    Mouse movement (,r, t).

    Delay (500).

    If it's really over.

    If it's really over.

    Loop judgment tail (whether it is false at the end of the file (file number), ).'Determine whether the file has been read to the end, and if not, continue the loop.

    If I'm not mistaken, it should be the effect you want.

    Directly copy the above ** into the easy program.

    If you don't understand, ask again!

  2. Anonymous users2024-02-06

    Use. Split text().

    Read every line of the txt file.

    Then just move the mouse, it's very simple.

  3. Anonymous users2024-02-05

    Split the text and read it into the array one at a time.

  4. Anonymous users2024-02-04

    Version 2 Assembly Window Assembly 1

    Subroutine button 2 is clicked.

    If true (General Dialog 1.)Open ().

    Box 1Content to text (read into a file (Generic dialog 1.)File name))).If it's really over.

    Subroutine button 1 is clicked.

    Local variable a, textual, ,"0"

    a Split text (Box 1.)Contents, Box 2Content A [2] Line break A [3].

  5. Anonymous users2024-02-03

    .Version 2

    Support for library specs

    Subroutine button 1 is clicked.

    Local variable file number, integer.

    Local variables txt file content, textual.

    File number Open file ("d: ,'Please change the path and file name according to the file you need to read.

    txt file contents read into text (file number, ) debug output (txt file contents).

  6. Anonymous users2024-02-02

    **: Read in the file (take the file name of the current directory (). txt”)

    Read in the file (c: filename. txt”)

  7. Anonymous users2024-02-01

    The ** under the subroutine reads like this:

    Box 1Content to text (read into the file ("c: similar you can also write something else:

    Label 1The title to text (read into the file ("c:.")

  8. Anonymous users2024-01-31

    lz, do you mean run or read in?

    Find two with different meanings.

    If it's running, use it directly.

    Run("Full path to the file you want to read").

    If you want to read in, you can use the method above.

  9. Anonymous users2024-01-30

    There is a text box.

    The name Box 1 writes **: in the triggering event of the button

    Version 2Local variables.

    bin, byte set bin

    Read in the file. “c:\documents

    andSettings Administrator desktop to create a new text document. txt”)

    Box 1Content.

  10. Anonymous users2024-01-29

    The character set enclosed by "" will only match one byte in the easy language regex, and the expression should be repeated by "*" or "+" after it!

  11. Anonymous users2024-01-28

    .Version 2

    Assemblies Window Assembly 1

    Subroutine button 2 is clicked.

    If true (General Dialog 1.)Open ().

    Box 1Content to text (read into a file (Generic dialog 1.)File name))).If it's really over.

    Subroutine button 1 is clicked.

    Local variable a, textual, ,"0"

    a Split text (Box 1.)Contents, Box 2Content A [2] Line break A [3].

  12. Anonymous users2024-01-27

    As for the time, you can use the commands to take the hour, take the minute, take the second, these commands to operate, if it is text processing.

    You can take out the information after the first space on the left side of the text, and take out the information after the second space in the middle of the text.

    Or you can just split the text with a space, and then take the second index and the third index and you're going to have what you want.

  13. Anonymous users2024-01-26

    If it's a web source filter, I recommend regular expressions.

  14. Anonymous users2024-01-25

    Hour = Hour (to the time (10:54 in 2012)).

    Year = Take the year (to the time (2012 10:54)).

    Note: The hour and year are textual variables.

  15. Anonymous users2024-01-24

    .Version 2

    Assemblies Window Assembly 1

    Subroutine button 1 is clicked.

    If true (General Dialog 1.)Open ().

    Box 1Content to text (read into a file (Generic dialog 1.)File name))).If it's really over.

    The subroutine Startup Window is created.

    Box 1Whether multiple lines are allowed true.

  16. Anonymous users2024-01-23

    .Version 2

    Support library dialogexSubroutine button 1 is clicked. Local variables: file path, textual.

    Local variable file number, integer box 1Whether to allow multiple lines True File Path to open the extension dialog ("Open", txt", all files (*.)0, "False, False, False).

    File number Open file (file path, box 1.)The content reads into the text (file number, ).

  17. Anonymous users2024-01-22

    Add the Common Dialog Control to the page Box 1 Button 1Version 2Subroutine button 1 is clicked.

    Local variable file number, integer. If true (General Dialog 1.)Open () File Number Open File (General Dialog 1.)File name, Box 1The content reads into the text (file number, ).

    Close the file (file number).

  18. Anonymous users2024-01-21

    Quite simply, the following source code:

    Version 2 Local Variable File content, textual.

    Local variables Segmentation, Textual, ,"0"

    File Content to Text (Read into the file ("Write your file to the directory here")) Split Split Text (File Contents, "player:", Box 1Content Segmentation [2].

  19. Anonymous users2024-01-20

    **:.Version 2

    Local variable a, textual, ,

    Local variables k, textual, ,"0"

    a to text (read into the file ("l:.").

    k Split text (a, "player:", if true (take the number of array members (k) 2) box 1Content k [2].

    If it's really over.

  20. Anonymous users2024-01-19

    To see if it's what you want, take the text in the middle, look for the text, and read it into the file.

Related questions
9 answers2024-04-14

If you don't change the program, it won't change. Be careful not to confuse the concepts of system and procedure. The QQ** you wear with the SkinSharp program will not change because your computer** is changed to "classic".

10 answers2024-04-14

Hotkey. Registration (Tab 1.)Take the window handle ()0, F1, > register F1 >>>More

12 answers2024-04-14

I'll tell you the standard answer!Version 2Support library iext >>>More

6 answers2024-04-14

I'm not going to do it, but I'll give you an idea:

List the names of all the files first, then use the charms to sort them and correspond to them. It's a simple problem, but it's too complicated to implement. >>>More

15 answers2024-04-14

Doesn't the key wizard come with a footstep?,There's this function.,Find it yourself.。