|
2026-05-29 16:06
조회: 1,047
추천: 4
cpm 계산 위젯을 만들어 봤습니다![]() 333 잔재 블레이드를 하는 똥손 지표 수호자입니다.레이드를 돌면서 CPM을 확인해 실력이 늘고 있는지 줄고 있는지 확인하고 싶었는데요. 매번 계산하는 것도 번거롭고, 계산을 직접 해본 적이 별로 없다 보니 틀릴 때도 있더라고요. 그래서 GPT를 활용해 작은 위젯 창을 하나 만들었습니다. 혹시나 필요하신 분이 있으시면 사용하시라고 사용 방법 올려봅니다.저도 처음 만들어본 거라 미흡하지만, 혹시나 저 같은 분들은 유용하게 쓰실 수 있을 것 같아서 공유해 드려요. 참고로 제가 이후에 코드 수정이나 그런 건 할 줄 몰라서 관련 질문이 올라와도 답변을 못 드릴 수 있는 점 미리 죄송합니다. 계산값은 다른 분들이 올리신 CPM 인증 글들을 토대로 잘 계산되는지 대조해 봐서 맞는 것 같지만, 혹시라도 틀린 부분이 있다면 댓글로 알려주세요! 실제 적용 화면도 함께 첨부합니다! 🛠️ Step 1. 포스트잇 위젯 파일 만들기 (30초)윈도우 자체 단독 창 규격인
<!DOCTYPE html><html lang="ko"><head> <meta charset="UTF-8"> <title>CPM Widget</title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <hta:application id="cpmApp" applicationname="CPM Widget" border="thin" caption="yes" showintaskbar="yes" singleinstance="yes" sysmenu="yes" windowstate="normal" /> <style> * { box-sizing: border-box; } body { font-family: 'Malgun Gothic', sans-serif; background-color: #121212; color: #e0e0e0; padding: 10px; margin: 0; overflow: hidden; } .title { font-size: 11px; font-weight: bold; color: #ffb100; margin-bottom: 8px; text-align: center; letter-spacing: 1px; } .row { display: table; width: 100%; margin-bottom: 5px; } .cell-lbl { display: table-cell; font-size: 11px; width: 45px; vertical-align: middle; color: #888; font-weight: bold; } .cell-idx { display: table-cell; } input { width: 45%; padding: 3px 5px; border: 1px solid #2a2a2a; background-color: #1a1a1a; color: #fff; border-radius: 4px; text-align: center; font-size: 11px; outline: none; } input:focus { border-color: #ffb100; } .burst-input { width: 100%; } #result { margin-top: 8px; padding: 6px; background-color: #181818; border-radius: 4px; text-align: center; font-size: 14px; font-weight: bold; color: #00ffcc; border: 1px solid #222; } </style></head><body> <div class="title">⚡ CPM WIDGET</div> <div class="row"> <div class="cell-lbl">TIME</div> <div class="cell-idx"> <input type="text" id="min" placeholder="분" onkeyup="calcCPM()"> : <input type="text" id="sec" placeholder="초" value="0" onkeyup="calcCPM()"> </div> </div> <div class="row" style="margin-top: 5px;"> <div class="cell-lbl">BURST</div> <div class="cell-idx"> <input type="text" id="count" class="burst-input" placeholder="횟수" onkeyup="calcCPM()"> </div> </div> <div id="result">CPM: -</div> <script> // 윈도우 옛날 엔진 호환성을 위해 코드를 옛날 방식으로 안전하게 수정 function calcCPM() { var minStr = document.getElementById('min').value; var secStr = document.getElementById('sec').value; var countStr = document.getElementById('count').value; var min = parseFloat(minStr) || 0; var sec = parseFloat(secStr) || 0; var count = parseFloat(countStr) || 0; var totalMinutes = min + (sec / 60); if (totalMinutes <= 0 || count <= 0) { document.getElementById('result').innerText = "CPM: -"; return; } var cpm = count / totalMinutes; document.getElementById('result').innerText = "CPM: " + cpm.toFixed(2); } // 켜질 때 포스트잇 크기로 창 사이즈 강제 고정 (가로 210, 세로 190) window.resizeTo(210, 190); </script></body></html>
📌 Step 2. Windows PowerToys로 화면 위에 고정하기인게임 플레이 중에 위젯이 뒤로 숨지 않도록 마이크로소프트 공식 유틸리티를 활용해 '항상 위'로 박아두는 과정입니다.
💡 최종 인게임 사용 꿀팁
|





