Squiso는 간단한 스크립트를 사용하여 Twitch 스트림을 사용자 정의할 수 있는 무료의 강력한 자동화 도구입니다.

How to Simulate Keyboard Key Presses Using Twitch Channel Points

This script example listens to all Twitch Channel Point redeems and simulates typing "POG" on the keyboard.

스크립트 예제

import com.squiso.*; import com.squiso.exception.*; import com.squiso.scripting.*; import com.squiso.scripting.data.*; import com.squiso.keyboard.*; import com.squiso.twitch.*; import com.squiso.datatypes.*; import com.squiso.utils.*; // Important - Please do not change the row below - otherwise you will get a compilation error! public class Script_Example extends SquisoScript { @Override public void onTwitchChannelPointRedeem(OnTwitchChannelPointRedeemData data, API api) throws SquisoException { // If the reward name equals "POG" if (data.getRewardName().equals("POG")) { // Wait 5 seconds (5000ms) api.sleep(5000); // Simulate key press SHIFT + p + o + g api.keyPress(KeyboardKey.SHIFT, KeyboardKey.P, KeyboardKey.O, KeyboardKey.G); } } }