מעבר לשלוחה שלא קיימת ⛔🎫⛪
-
אני מפנתז אולי אם צריך שרק שלוחה אחת יעבוד וכל השאר ניתוק וכדו' אפשר לעשות שלוחה עם סיסמא והסיסמא יהיה 1 ושמי שלא הקיש סיסמא נכונה יעבור לשלוחה אחרת....
-
@נועם-אלימלך כתב במעבר לשלוחה שלא קיימת


:@פלוס תגדיר בMessages מקשים 1 2 3 4 5 6 7 8 9
type=go_to_folder go_to_folder=/שלחה למעברלא ניבדק
למה שאני מתקשר לפורום פלוס זה מנתק את הסיחה
ישראל מיבני ברק
זה טוב?
-
@פלוס תעשה את מה ש @sh0548534047 הציע תגדיר למקש השגוי לעבור לשלוחה אחרת
מה הרעיון? אולי יש פתרון אחר -
@BEN-ZION כתב במעבר לשלוחה שלא קיימת


:למקש השגוי לעבור לשלוחה אחרת
אין כזה הגדרה, והוא לא הביא כזאת.
הוא הציע ששלוחה 6 תעבור למקום אחר.
אבל אני צריך למשל שרק שלוחה 456 תהיה שלוחה טובה - כל השאר למקום אחר שאני אגדיר.
כזה דבר יש? -
@פלוס כתב במעבר לשלוחה שלא קיימת


:אין כזה הגדרה, והוא לא הביא כזאת.
לא הסברתי טוב
יש את הקובץExtensionNumbersAndAssociations.iniשאתה יכול הגדיר בו בשלוחה מה קורה שמקישים כל ספרה משמש בעיקר למעבר לשלוחות שהשם שלהם הוא אותיות ולא ספרות אתה יכול ליצור את הקובץ הזה
אם כל השלוחות מ 1 עד 999 ולבחור מה יקרה לכל מקש
דוגמא לקובץ HTML שיכין לך את כל השלוחות אם ברירת מחדל שלוחה מסוימת ולשלוחות ספציפיות הגדרה שונה<!DOCTYPE html> <html lang="he" dir="rtl"> <head> <meta charset="UTF-8"> <title>מחולל קובץ שלוחות מתקדם</title> <style> body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f0f2f5; display: flex; justify-content: center; padding: 20px; } .card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 500px; } h2 { color: #1a73e8; text-align: center; margin-top: 0; } label { font-weight: bold; display: block; margin-top: 15px; } input { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; } .exception-row { display: flex; align-items: center; gap: 10px; margin-top: 5px; background: #f9f9f9; padding: 5px; border-radius: 4px; } .exception-row span { min-width: 80px; font-size: 0.9em; } button { width: 100%; padding: 12px; margin-top: 20px; cursor: pointer; border: none; border-radius: 6px; font-weight: bold; transition: 0.3s; } .btn-generate { background-color: #1a73e8; color: white; } .btn-download { background-color: #34a853; color: white; margin-top: 10px; display: none; } button:hover { opacity: 0.9; } #result { margin-top: 20px; background: #272822; color: #f8f8f2; padding: 15px; border-radius: 6px; white-space: pre-wrap; font-family: monospace; font-size: 0.9em; max-height: 200px; overflow-y: auto; } </style> </head> <body> <div class="card"> <h2>הגדרות שלוחות</h2> <label>טווח שלוחות (מ- עד-):</label> <div style="display: flex; gap: 10px;"> <input type="number" id="from" placeholder="מכלוחה" value="1"> <input type="number" id="to" placeholder="עד שלוחה" value="10"> </div> <label>נתיב ברירת מחדל לכל הטווח:</label> <input type="text" id="defaultPath" placeholder="לדוגמה: /02" value="/02"> <label>מספרי שלוחות חריגות (הפרד בפסיק):</label> <input type="text" id="exceptionInput" placeholder="לדוגמה: 3, 7" oninput="updateExceptionFields()"> <div id="dynamicExceptions"></div> <button class="btn-generate" onclick="processData()">תצוגה מקדימה</button> <div id="result">הקוד יופיע כאן...</div> <button id="downloadBtn" class="btn-download" onclick="downloadIni()">הורד קובץ ExtensionNumbersAndAssociations.ini</button> </div> <script> let finalContent = ""; function updateExceptionFields() { const container = document.getElementById('dynamicExceptions'); const val = document.getElementById('exceptionInput').value; const nums = val.split(',').map(n => n.trim()).filter(n => n !== "" && !isNaN(n)); // שומרים ערכים קיימים כדי לא למחוק למשתמש בזמן הקלדה const currentValues = {}; document.querySelectorAll('.ex-path').forEach(input => { currentValues[input.dataset.num] = input.value; }); container.innerHTML = nums.length > 0 ? "<label>הזן נתיב לכל חריג:</label>" : ""; nums.forEach(num => { const row = document.createElement('div'); row.className = 'exception-row'; const savedVal = currentValues[num] || ""; row.innerHTML = `<span>שלוחה ${num}:</span> <input type="text" class="ex-path" data-num="${num}" value="${savedVal}" placeholder="נתיב לשלוחה ${num}">`; container.appendChild(row); }); } function processData() { const from = parseInt(document.getElementById('from').value); const to = parseInt(document.getElementById('to').value); const defaultPath = document.getElementById('defaultPath').value; const exceptionPaths = {}; document.querySelectorAll('.ex-path').forEach(input => { exceptionPaths[input.dataset.num] = input.value; }); let output = ""; for (let i = from; i <= to; i++) { const path = exceptionPaths[i] !== undefined ? exceptionPaths[i] : defaultPath; output += i + "=" + path + "\r\n"; } finalContent = output; document.getElementById('result').textContent = output; document.getElementById('downloadBtn').style.display = "block"; } function downloadIni() { if (!finalContent) return; const blob = new Blob([finalContent], { type: 'text/plain' }); const elem = window.document.createElement('a'); elem.href = window.URL.createObjectURL(blob); elem.download = 'ExtensionNumbersAndAssociations.ini'; document.body.appendChild(elem); elem.click(); document.body.removeChild(elem); } </script> </body> </html>זה יגדיר לכל שלוחה ברירת מחדל לאן לעבור ושלוחות חריגות לכל שלוחה תוכל לבחור נתיב
תעלה לשלוחה גם את ההגדרה הזוtext_extensions=yes -
@BEN-ZION כתב במעבר לשלוחה שלא קיימת


:ייש"כ על כל הטרחה.
אני עושה את זה לשלוחות במערכת שלוחת המשחקים - ולצורך כך יש גם שלוחה עם 8-9 ספרות!
זה גם יעזור? -
@פלוס אני עשיתי את הקוד עד 999 שלוחות אני יגדיל את זה כמה הכי הרבה?
-
@BEN-ZION
לא יותר מ9 ספרות.
ממש תודה!! -
כלומר 999 מליון, תשע מאות תשעים ותשע אלף...
-
@פלוס ניסיתי זה לא מגיע לכזה מספר אבל זה גם לא אפקטיבי למערכת ייקח לה הרבה זמן לבדוק,
מה זה השלוחה של המשחקים אולי יש פתרון אחר