ฟอรั่ม 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


    ช่วยดูของผมทีครับ

    avatar
    chocoberer
    มือใหม่เพิ่งสมัคร
    มือใหม่เพิ่งสมัคร


    ช่วยดูของผมทีครับ Empty ช่วยดูของผมทีครับ Empty
    จำนวนข้อความ : 4
    ความนิยม : 0
    เข้าร่วมเมื่อ : 02/02/2014

    ช่วยดูของผมทีครับ Empty ช่วยดูของผมทีครับ

    ตั้งหัวข้อ by chocoberer 09/05/14, 08:42 pm

    Code:


    HotKeySet("{HOME}", "_startProg") ;
    HotKeySet("{END}","_stopProg") ;
    HotKeySet("{F5}", "_pauseProg") ;

    Global $Paused = False , $GameHD , $gtitle  ;

    While 1 ;
    Sleep(200)
    WEnd

    Func _startProg() ;
       If _PSsixLoadH("Ragnarok") = 1 Then
          playGame()
       EndIf
    EndFunc ; end function



    Func _PSsixLoadH($gtitle)
       $GameHD = WinGetHandle($gtitle)
       If @error Then
          MsgBox(4096, "Error", "ไม่พบเกม")
       Else
          Return 1
       EndIf
    EndFunc ; end function



    Func playGame()
    While 1
    ControlSend($GameHD, "", "", "{F2}")
    Sleep(500)
       WEnd
    EndFunc ; end function

    Func _pauseProg()
        $Paused = NOT $Paused
        While $Paused
            sleep(100)
            ToolTip('Script is "Paused"',0,0)
        WEnd
        ToolTip("")
    EndFunc ; end function

    Func _stopProg()
       Exit 0
    EndFunc ; end function
    ผมต้องการให้มันกดพร้อมกันทั้งสองจอเลยครับ

      เวลาขณะนี้ 09/05/24, 07:29 am