• 您的腳本就是針對遊戲的指令

    BlueStacks 腳本是一個強大的自動化工具,它會執行一組命令來自動化你最喜歡的 Android 遊戲中的無聊任務。任何需要重複的動作都可以透過腳本並將其設定一個按鍵來執行。
    Script Feature
  • 如果必須重複操作,則可以對其進行“腳本化”

    隨意進入和結束射擊模式,無論是拾取資源,進行日常任務,還是在無盡的地牢中打寶。使用 BlueStacks 腳本功能完成這些以及更多操作,而無需一次又一次地重複點擊鍵盤或滑鼠。
    Script Feature

如何新增和執行腳本

步驟
  • Script Feature Image

    啟動您要為其新增腳本的遊戲

  • Script Feature Image

    點擊鍵盤圖標(或按 CTRL+Shift+A)以“開啟進階編輯器”

  • Script Feature Image

    左鍵點擊或將“腳本”控制方案拖放到畫面上的任意位置

  • Script Feature Image

    點擊腳本按鈕下方的"<\>"圖標,滑鼠指標的坐標將顯示在畫面上。當您左鍵點擊時,腳本編輯器將開啟。

  • Script Feature Image

    添加腳本的指令

  • Script Feature Image

    點擊“完成”,然後點擊“保存更改”

Script First Asset

看腳本如何進入和退出PUBG中的射擊模式

腳本

指令

  • Tap 07.0390.08

    “點擊”座標表示,當我們按下“TAB”鍵時,它將在背包上點擊一次。

  • exitShoot

    “exitShoot”表示,當我們按下“ TAB”鍵時,它將退出遊戲中的射擊模式。

BlueStacks中可用於腳本的命令

Keyword

Syntax

Description

  • tap

    tap x1 y1 x2 y2 …xn yn delay

    這會執行點擊螢幕的動作。 可以指定單個或多個接觸點。 接觸點保持指定的延遲。 如果未指定延遲,則預設為50毫秒。最多支持16個接觸點。 但是請記住,來自其他控制的其他接觸點是在發送給android之前匯總的。

    Up to 16 touchpoints are supported. But keep in mind that other touchpoints from other controls are aggregated before sending to android.

  • 滑動

    swipe x1 y1 x2 y2… xn yn delay

    e.g.

    # swipe 4,5 to 40,45

    # take 100msecs

    swipe 4 5 40 45 100

    滑動。 可以指定多個要滑動的點,以毫秒為單位指定延遲。 這是整個滑動所花費的時間。

    Delay is specified in milliseconds. This is the amount of time the entire swipe gesture takes.

  • loop / loopEnd

    loop n

    .

    .

    loopEnd

    循環命令之後的命令直到loopEnd被執行n次。

    如果未指定n,則循環將無限期繼續或直到放開腳本觸發按鍵。

  • onRelease

    onRelease

    這樣可以更好地控制腳本的執行。 按下並放開觸發按鍵時,可以提供一組不同的命令來執行。按下腳本啟動鍵時,從腳本起點到onrelease命令的所有命令都將被執行。 釋放觸發鍵時,將執行onRelease命令之後的命令。

    All commands from the top of the script until the onrelease command are executed when trigger key is pressed. Commands following the onRelease command are executed when the trigger key is released.

  • enterShoot

    enterShoot

    用於玩FPS遊戲進入射擊模式用。 如果當前方案中不存在射擊模式,則將其忽略。 如果已經啟用射擊模式,則此功能無效。

  • exitShoot

    exitShoot

    退出射擊模式。 如果當前方案中不存在射擊模式,則將其忽略。 如果已經退出了射擊模式,則將其忽略。

  • toggleShoot

    toggleShoot

    切換射擊模式。 如果當前方案中不存在射擊模式,則將其忽略。

  • #

    # this is a comment

    註釋以#開頭。 直到行末的所有內容都被視為註釋,並且被忽略。註釋可以單獨放在一行中,也可以放在同一行的命令末尾。

  • keyDown

    keyDown key

    e.g.

    keyDown TAB

    使用快捷鍵,除非您需要打字等操作. 如果該按鍵有設定操作配置, 當您按下時將會優先啟動對應功能, 若沒有設定該按鍵, 則會對Andoid傳送您按下的按鍵

  • keyDown2

    keyDown2 key

    e.g.

    keyDown2 TAB

    按鍵被按下,直到放開相同的按鍵才會執行放開按鍵。

    Mapping is not executed and key down input is forwarded to android.

  • keyUp

    keyUp key

    e.g.

    keyUp TAB

    按鍵被放開。 如果存在,則執行命令。

  • keyUp2

    keyup2 key

    e.g.

    keyUp2 TAB

    按鍵被放開。

  • mouseDown

    mouseDown x y

    e.g.

    mouseDown 44.0 55.5

    在位置x,y處按下滑鼠左鍵。 所有位置均按畫面百分比顯示,以便同一腳本可以在不同解析度下運作。

  • mouseUp

    mouseUp

    放開滑鼠左鍵。 不需要坐標。

  • mouseMove

    mouseMove x y

    e.g.

    mouseMove 4.56 5.67

    游標移到新位置x,y

  • touch

    touch x1 y1 x2 y2 x3 y3

    e.g.

    # 3 fingers

    touch 4 5 6 7 8 9

    # 3rd finger lifted

    touch 4 5 6 7

    # fingers 1 and 2 move

    touch 5 6 7 8

    # fingers 1 and 2 lifted

    touch

    使用指定的點擊。 一系列點擊命令可用於新增任意多點觸控。最多支援16個接觸點。

    Up to 16 touchpoints are supported. But keep in mind that other touchpoints from other controls are aggregated before sending to android.

  • text

    text 'text'

    text backspace 2

    e.g.

    text “hello world”

    將文字輸入發送到android。 可以使用任何語言。 格式應為utf8。

    The format should be utf8.

  • mouseWheel

    mouseWheel x y d

    mouseWheel 44.0 55.5 1

    mouseWheel 44.0 55.5 -1

    發送滑鼠滾輪事件到鍵盤操控,它將轉換為相應的縮放或滾動

  • wait

    wait msecs

    e.g.

    wait 24

    在執行下一個命令之前,等待指定的毫秒數。

腳本最適合在

  • Game Controls

    Game Controls

    Play with preset controls or customize them.

    查看詳情
  • MOBA Mode

    MOBA Mode

    Move your hero freely or cast different skills with your mouse and keyboard.

    查看詳情
  • Macros

    Macros

    Record and replay actions with a single keypress.

    查看詳情
  • Multi-Instance

    Multi-Instance

    Play multiple games simultaneously.

    查看詳情
  • Multi-Instance Sync

    Multi-Instance Sync

    Replicate actions in multiple instances in real-time.

    查看詳情