ฟอรั่ม PSsix

Would you like to react to this message? Create an account in a few clicks or log in to continue.

ฟอรั่มของบล็อก http://pssix.blogspot.com


2 posters

    ขอวิธี การ input ข้อความ เข้า notepad

    avatar
    wearevip
    สมาชิกทั่วไป
    สมาชิกทั่วไป


    ขอวิธี การ input ข้อความ เข้า notepad Empty ขอวิธี การ input ข้อความ เข้า notepad Empty
    จำนวนข้อความ : 13
    ความนิยม : 0
    เข้าร่วมเมื่อ : 12/02/2014

    ขอวิธี การ input ข้อความ เข้า notepad Empty ขอวิธี การ input ข้อความ เข้า notepad

    ตั้งหัวข้อ by wearevip 19/02/14, 11:10 pm

    ยกตัวให้ทีครับ ขอบคุณครับ

    อย่างเช่น พิมข้อความเข้า input
    ไปใส่ notepad
    Arm
    Arm
    PSsix Member Super Class III
    PSsix Member Super Class III


    PSsix Master PSsix Program Coder
    จำนวนข้อความ : 268
    ความนิยม : 54
    เข้าร่วมเมื่อ : 31/03/2011
    อายุ : 27

    ขอวิธี การ input ข้อความ เข้า notepad Empty Re: ขอวิธี การ input ข้อความ เข้า notepad

    ตั้งหัวข้อ by Arm 20/02/14, 01:38 am

    Code:
    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>

    Run("notepad.exe")
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Send text to Notepad", 289, 228, -1, -1)
    $Button1 = GUICtrlCreateButton("Send", 96, 160, 99, 41)
    $Edit1 = GUICtrlCreateEdit("", 48, 32, 185, 89)
    GUICtrlSetData(-1, "Write something....")
    GUISetState(@SW_SHOW)
    WinSetOnTop($Form1, "", 1)
    #EndRegion ### END Koda GUI section ###

    While 1
       $nMsg = GUIGetMsg()
       Switch $nMsg
          Case $GUI_EVENT_CLOSE
             ProcessClose("notepad.exe")
             Exit
          Case $Button1
             ControlSend("[CLASS:Notepad]", "", "Edit1", GUICtrlRead($Edit1) & @CRLF)
       EndSwitch
    WEnd
     em219 
    avatar
    wearevip
    สมาชิกทั่วไป
    สมาชิกทั่วไป


    ขอวิธี การ input ข้อความ เข้า notepad Empty ขอวิธี การ input ข้อความ เข้า notepad Empty
    จำนวนข้อความ : 13
    ความนิยม : 0
    เข้าร่วมเมื่อ : 12/02/2014

    ขอวิธี การ input ข้อความ เข้า notepad Empty Re: ขอวิธี การ input ข้อความ เข้า notepad

    ตั้งหัวข้อ by wearevip 20/02/14, 02:34 am

    สมมุติถ้าผมมี input5 ตัว มันใช้ while...wend ให้มันทำทีละ input จะเขียนยังไงครับ ขอบคุณครับ

      เวลาขณะนี้ 08/05/24, 05:02 am