דילוג לתוכן
  • דף הבית
  • קטגוריות
  • פוסטים אחרונים
  • משתמשים
  • חיפוש
  • חוקי הפורום
כיווץ
תחומים

תחומים - פורום חרדי מקצועי

💡 רוצה לזכור קריאת שמע בזמן? לחץ כאן!
Y

yits

@yits
אודות
פוסטים
1.0k
נושאים
102
שיתופים
0
קבוצות
0
עוקבים
3
עוקב אחרי
1

פוסטים

פוסטים אחרונים הגבוה ביותר שנוי במחלוקת

  • Custom MsgBox VBA
    Y yits

    @חייםיודלביץ אמר בCustom MsgBox VBA:

    @yits תודה על השיתוף, אני חפשתי הרבה זמן כזה דבר ולא מצאתי משהו נורמלי, תודה!

    אני מסתבך עם הקוד הוא כותב לי שגיאה כזאת
    שגיאה.png

    זה משה שעשיתי באקסס
    העתעקתי למודול חדש
    שמתי את הקוד הזה

    MsgBoxCB("Message","Button1","Button2","Button3",vbMsgBoxRight or vbMsgBoxRtlReading, vbInformation, "Title")
    

    בלחצן ואז הוא כתב לי את השגיאה הנ"ל

    אשמח לעזרה
    תודה

    איך קראת ל MsgBoxCB?
    אתה צריך גם לקבל תשובה מה המשתמש בחר,
    תעשה משתנה מסוג Long שמקבל את התשובה.

    תכנות

  • מי עוד משתגע מהתנהגות כרום לגבי טקסט bidi?
    Y yits

    @יוסף-בן-שמעון אמר במי עוד משתגע מהתנהגות כרום לגבי טקסט bidi?:

    @yits אמר במי עוד משתגע מהתנהגות כרום לגבי טקסט bidi?:

    @dovid אמר במי עוד משתגע מהתנהגות כרום לגבי טקסט bidi?:

    @yossiz העלית קובץ HTML והוא נפתח בדפדפן, זה חור אבטחה של ממש!
    אני רץ לטפל בזה.

    ואגב מה החור אבטחה בזה?

    זה חור חמור מאד כי זה מאפשר לכל משתמש להריץ JS בדפדפן שלך תחת הדומיין של תחומים, זה אומר שתוך כמה שניות העוגיות של המנהל נמצאות בידים שלי ואני נכנס בשמו לפורום

    הבנתי, מדובר במצב שזה נפתח עם URL של האתר כמו בתמונות שמועלות לפורום.

    תוכנה

  • מי עוד משתגע מהתנהגות כרום לגבי טקסט bidi?
    Y yits

    @dovid אמר במי עוד משתגע מהתנהגות כרום לגבי טקסט bidi?:

    @yossiz העלית קובץ HTML והוא נפתח בדפדפן, זה חור אבטחה של ממש!
    אני רץ לטפל בזה.

    אצלי זה יורד, האם זה בגלל שזה כבר תוקן.

    ואגב מה החור אבטחה בזה?

    תוכנה

  • Custom MsgBox VBA
    Y yits

    @zvinissim אמר בCustom MsgBox VBA:

    @yits שאלונת
    לא יותר פשוט לבנות טופס קטן מוקפץ עם כמה כפתורים ולהקפיץ אותו בכל פעם ולשנות את הכיתובים?

    אני עשיתי כך מספר פעמים ואז לשלוט על אירועי הכפתורים

    גם אני עשיתי כך בעבר אבל רק להודעה מסויימת.

    אם אתה רוצה לעשות משהו שיהיה דינאמי זה נראה לי קצת מסובך:

    1. איך אתה מקבל תשובה מה המשתמש בחר?
      בשביל זה אתה משתמש במשתנים גלובליים?.
    2. אם תרצה לקרוא לזה כפונקציה תצטרך ליצור משתנים גלובליים מכיוון שטופס לא יודע לקבל פרמטרים בצורה נורמלית.
      או שתשתמש ב OpenArgs ותשרשר מחרוזת ארוכה עם הפרדה של ; (או משהו כזה) ואח"כ תפענח את זה.
    3. ואם תרצה שיהיו רק 2 כפתורים במקום 3 או להיפך
      אתה צריך לעשות טופס דינאמי או להגדיר Visable לכל אחד ואז לסדר את המיקומים.

    אם יש לך משהו כזה דינאמי נשמח לקבל אותו.

    תכנות

  • Custom MsgBox VBA
    Y yits

    חיפשתי הרבה זמן איך אפשר להתאים אישית את הכפתורים ב MsgBox של Office VBA.

    מכיוון שמצאתי מודול מאוד נחמד שעושה את העבודה וגם שיפרתי אותו קצת אני יעלה אותו כאן.

    מי שרוצה לשפר את הקוד יש בעיה ב Select Case MsgBox_Style ועשיתי שם טלאי עבור RTL, נשמח לקבל פתרון יותר טוב ויפה.

    כדי להשתמש בקוד יש ליצור מודול חדש ולהעתיק את כל הקוד לתוכו.

    Option Explicit
    
    ' (C) Dan Elgaard (www.EXCELGAARD.dk)
    
    ' MsgBox Buttons/Answers ID Constants
    Private Const MsgBox_Button_ID_OK     As Long = 1
    Private Const MsgBox_Button_ID_Cancel As Long = 2
    Private Const MsgBox_Button_ID_Abort  As Long = 3
    Private Const MsgBox_Button_ID_Retry  As Long = 4
    Private Const MsgBox_Button_ID_Ignore As Long = 5
    Private Const MsgBox_Button_ID_Yes    As Long = 6
    Private Const MsgBox_Button_ID_No     As Long = 7
    
    ' MsgBox Buttons/Answers Text Variables'
    Private MsgBox_Button_Text_OK         As String
    Private MsgBox_Button_Text_Cancel     As String
    Private MsgBox_Button_Text_Abort      As String
    Private MsgBox_Button_Text_Retry      As String
    Private MsgBox_Button_Text_Ignore     As String
    Private MsgBox_Button_Text_Yes        As String
    Private MsgBox_Button_Text_No         As String
    
    ' Handle to the Hook procedure'
    #If VBA7 Then
        Private MsgBoxHookHandle          As LongPtr                                        ' 64-bit handle'
        Private MsgBoxHookHandle2         As LongPtr                                        ' 64-bit handle'
    #Else
        Private MsgBoxHookHandle          As Long
        Private MsgBoxHookHandle2         As Long
    #End If
     
    'Clip Cursor'
    Private Type RECT
        Left As Long
        Top As Long
        right As Long
        bottom As Long
    End Type
    
    Enum eVbMsgBoxIconCB
        vbCritical = 16
        vbExclamation = 48
        vbInformation = 64
        vbQuestion = 32
    End Enum
    
    Enum eVbMsgBoxStyleCB
        vbApplicationModal = 0
        vbMsgBoxRight = 524288
        vbMsgBoxRtlReading = 1048576
        vbMsgBoxSetForeground = 65536
        vbSystemModal = 4096
    End Enum
    
    ' Windows API functions'
    #If VBA7 Then
        Private Declare PtrSafe Function GetCurrentThreadId Lib "kernel32" () As LongPtr
        Private Declare PtrSafe Function SetDlgItemText Lib "user32" Alias "SetDlgItemTextA" (ByVal hDlg As LongPtr, ByVal nIDDlgItem As LongPtr, ByVal lpString As String) As LongPtr
        Private Declare PtrSafe Function SetWindowsHookEx Lib "user32" Alias "SetWindowsHookExA" (ByVal idHook As LongPtr, ByVal lpfn As LongPtr, ByVal hmod As LongPtr, ByVal dwThreadId As LongPtr) As LongPtr
        Private Declare PtrSafe Function UnhookWindowsHookEx Lib "user32" (ByVal hHook As LongPtr) As LongPtr
        Private Declare PtrSafe Function GetWindowRect Lib "user32" (ByVal hwnd As LongPtr, lpRect As RECT) As Long
        Private Declare PtrSafe Function ClipCursor Lib "user32" (lpRect As Any) As Long
        Private Declare PtrSafe Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As LongPtr, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
    #Else
        Private Declare Function GetCurrentThreadId Lib "kernel32" () As Long
        Private Declare Function SetDlgItemText Lib "user32" Alias "SetDlgItemTextA" (ByVal hDlg As Long, ByVal nIDDlgItem As Long, ByVal lpString As String) As Long
        Private Declare Function SetWindowsHookEx Lib "user32" Alias "SetWindowsHookExA" (ByVal idHook As Long, ByVal lpfn As Long, ByVal hmod As Long, ByVal dwThreadId As Long) As Long
        Private Declare Function UnhookWindowsHookEx Lib "user32" (ByVal hHook As Long) As Long
        Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
        Private Declare Function ClipCursor Lib "user32" (lpRect As Any) As Long
        Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
    #End If
    
    
    #If VBA7 Then
        Private Function MsgBoxHook(ByVal LM As LongPtr, ByVal WP As LongPtr, ByVal LP As LongPtr) As LongPtr
            SetDlgItemText WP, MsgBox_Button_ID_OK, MsgBox_Button_Text_OK
            SetDlgItemText WP, MsgBox_Button_ID_Cancel, MsgBox_Button_Text_Cancel          ' Not used
            SetDlgItemText WP, MsgBox_Button_ID_Abort, MsgBox_Button_Text_Abort
            SetDlgItemText WP, MsgBox_Button_ID_Retry, MsgBox_Button_Text_Retry
            SetDlgItemText WP, MsgBox_Button_ID_Ignore, MsgBox_Button_Text_Ignore
            SetDlgItemText WP, MsgBox_Button_ID_Yes, MsgBox_Button_Text_Yes
            SetDlgItemText WP, MsgBox_Button_ID_No, MsgBox_Button_Text_No
                    
            Dim tMsgBoxRect As RECT, sBuffer As String * 256, ret As Long
                    
            ret = GetClassName(WP, sBuffer, Len(sBuffer))
            If Left(sBuffer, ret) = "#32770" Then
                GetWindowRect WP, tMsgBoxRect
                With tMsgBoxRect
                    .right = .right - 2: .bottom = .bottom - 2
                End With
                ClipCursor tMsgBoxRect 'ClipCursor
            End If
        End Function
    #Else
        Private Function MsgBoxHook(ByVal LM As Long, ByVal WP As Long, ByVal LP As Long) As Long
            SetDlgItemText WP, MsgBox_Button_ID_OK, MsgBox_Button_Text_OK
            SetDlgItemText WP, MsgBox_Button_ID_Cancel, MsgBox_Button_Text_Cancel         ' Not used
            SetDlgItemText WP, MsgBox_Button_ID_Abort, MsgBox_Button_Text_Abort
            SetDlgItemText WP, MsgBox_Button_ID_Retry, MsgBox_Button_Text_Retry
            SetDlgItemText WP, MsgBox_Button_ID_Ignore, MsgBox_Button_Text_Ignore
            SetDlgItemText WP, MsgBox_Button_ID_Yes, MsgBox_Button_Text_Yes
            SetDlgItemText WP, MsgBox_Button_ID_No, MsgBox_Button_Text_No
                    
            Dim tMsgBoxRect As RECT, sBuffer As String * 256, ret As Long
                    
            ret = GetClassName(WP, sBuffer, Len(sBuffer))
            If Left(sBuffer, ret) = "#32770" Then
                GetWindowRect WP, tMsgBoxRect
                With tMsgBoxRect
                    .right = .right - 2: .bottom = .bottom - 2
                End With
                ClipCursor tMsgBoxRect 'ClipCursor
            End If
        End Function
    #End If
    
    
    Function MsgBoxCB(MsgBox_Text As String, _
                        Button1 As String, _
                        Optional Button2 As String, _
                        Optional Button3 As String, _
                        Optional MsgBox_Style As eVbMsgBoxStyleCB, _
                        Optional MsgBox_Icon As eVbMsgBoxIconCB, _
                        Optional MsgBox_Title As String) As Long
    
        ' * ' Initialize
        On Error Resume Next
    
        ' * ' Define variables
        If Button1 = vbNullString Then
            Button1 = Button2
            Button2 = vbNullString
        End If
        If Button2 = vbNullString Then
            Button2 = Button3
            Button3 = vbNullString
        End If
    
        Dim ButtonsToUse As Long
        ButtonsToUse = vbAbortRetryIgnore
        If Button3 = vbNullString Then ButtonsToUse = vbYesNo
        If Button2 = vbNullString Then ButtonsToUse = vbOKOnly
    
        Select Case MsgBox_Icon
            Case vbCritical:        ButtonsToUse = ButtonsToUse + MsgBox_Icon
            Case vbExclamation:     ButtonsToUse = ButtonsToUse + MsgBox_Icon
            Case vbInformation:     ButtonsToUse = ButtonsToUse + MsgBox_Icon
            Case vbQuestion:        ButtonsToUse = ButtonsToUse + MsgBox_Icon
        End Select
    
        Select Case MsgBox_Style
            Case vbApplicationModal:      ButtonsToUse = ButtonsToUse + MsgBox_Style
            Case vbMsgBoxRight:           ButtonsToUse = ButtonsToUse + MsgBox_Style
            Case vbMsgBoxRtlReading:      ButtonsToUse = ButtonsToUse + MsgBox_Style
            Case vbMsgBoxSetForeground:   ButtonsToUse = ButtonsToUse + MsgBox_Style
            Case vbSystemModal:           ButtonsToUse = ButtonsToUse + MsgBox_Style
            Case vbMsgBoxRight + vbMsgBoxRtlReading: ButtonsToUse = ButtonsToUse + MsgBox_Style
        End Select
        
        If MsgBox_Title = vbNullString Then MsgBox_Title = " Microsoft Office"               ' Default MsgBox title
    
        Dim MsgBoxAnswer As Long
    
        ' * ' Set custom buttons texts
        MsgBox_Button_Text_OK = Button1
        MsgBox_Button_Text_Cancel = vbNullString                                            ' Not used
        MsgBox_Button_Text_Abort = Button1
        MsgBox_Button_Text_Retry = Button2
        MsgBox_Button_Text_Ignore = Button3
        MsgBox_Button_Text_Yes = Button1
        MsgBox_Button_Text_No = Button2
    
        MsgBoxHookHandle = SetWindowsHookEx(5, AddressOf MsgBoxHook, 0, GetCurrentThreadId) ' Set MsgBox Hook
    
        ' * ' Show hooked MsgBox
        MsgBoxAnswer = MsgBox(MsgBox_Text, ButtonsToUse, MsgBox_Title)
    
    EF: ' End of Function
        UnhookWindowsHookEx MsgBoxHookHandle                                                ' Unhook MsgBox again
        ClipCursor ByVal 0 'Relase ClipCursor
        Select Case MsgBoxAnswer
            Case vbOK:        MsgBoxCB = 1
            Case vbCancel:    MsgBoxCB = 0                                                ' Not used
            Case vbAbort:     MsgBoxCB = 1
            Case vbRetry:     MsgBoxCB = 2
            Case vbIgnore:    MsgBoxCB = 3
            Case vbYes:       MsgBoxCB = 1
            Case vbNo:        MsgBoxCB = 2
        End Select
    End Function
    
    
    Public Property Let MsgboxClipCursor(ByVal Clip As Boolean)
        If Clip Then
            MsgBoxHookHandle2 = SetWindowsHookEx(5, AddressOf MsgBoxClipProc, 0, GetCurrentThreadId)
        Else
            ClipCursor ByVal 0
            UnhookWindowsHookEx MsgBoxHookHandle2
        End If
    End Property
    
    #If VBA7 Then
        Private Function MsgBoxClipProc(ByVal LM As LongPtr, ByVal WP As LongPtr, ByVal LP As LongPtr) As LongPtr
    #Else
        Private Function MsgBoxClipProc(ByVal LM As Long, ByVal WP As Long, ByVal LP As Long) As Long
    #End If
                
            Dim tMsgBoxRect As RECT, sBuffer As String * 256, ret As Long
                    
            ret = GetClassName(WP, sBuffer, Len(sBuffer))
            If Left(sBuffer, ret) = "#32770" Then
                GetWindowRect WP, tMsgBoxRect
                With tMsgBoxRect
                    .right = .right - 2: .bottom = .bottom - 2
                End With
                ClipCursor tMsgBoxRect
            End If
        End Function
    
    

    כדי לממש את הקוד יש לכתוב את הפקודה כך

    MsgBoxCB("Message","Button1","Button2","Button3",vbMsgBoxRight or vbMsgBoxRtlReading, vbInformation, "Title")
    
    תכנות

  • בעיה בתצוגת תמונות מצורפות בג'ימייל
    Y yits

    מצאתי את הבעיה,
    התקנתי אצלי את ‪mailtrack-blocker‬
    והוא משבית את התמונות החיצוניות.

    @magicode אולי יש אפשרות להגדיר רשימה של URL's לחסימה.
    https://chrome.google.com/webstore/detail/mailtrack-blocker/ofojcpokljmobkdmpemekdboifbeailo

    אינטרנט

  • אנטיטי ב C# - שאלות
    Y yits

    @חבלזון אמר באנטיטי ב C# - שאלות:

    כלומר, אני יכול להכניס בConnectionString שם משתמש וסיסמא קבועים, אבל "ליבי אומר לי" שזה גרוע מאוד....

    את זה אתה ממקם בתוך הקוד או בקובץ קונפיגורציה (כנראה App.config) חיצוני.

    אם זה בקוד אתה באמת בבעיה שהזכרת,
    אבל בקונפיגורציה פשוט מגדירים לכל משתמש.

    תכנות

  • בעיה בתצוגת תמונות מצורפות בג'ימייל
    Y yits

    לאחרונה משום מה אני לא רואה את התמונות המצורפות למיילים שנשלחים אלי,
    וזה בכל חשבונות המייל - כך שזה לא עניין של הגדרה בחשבון מייל.

    כמובן ניסיתי רענון קשיח וכו'.

    אינטרנט

  • אני צריך TERMINAL SERVICE לוינדוס 10
    Y yits

    https://github.com/stascorp/rdpwrap

    תוכנה

  • שינוי מחלקה חיצונית c#
    Y yits

    תנסה ככה

    line_items = [
    new OrderLineItem() {product_id = 93, quantity = 2},
    new OrderLineItem() {product_id = 94, quantity = 1}
    ]
    
    תכנות

  • טריגר באקסס
    Y yits

    @WWW אמר בטריגר באקסס:

    כנראה זה חייב להיות מאקרו DATA

    גם אני עשיתי בדיקה ואפשר להפנות רק למאקרו DATA,
    הכוונה למאקרו שיוצרים תחת "מאקרו בעל שם" (מופיע בתמונה למעלה).

    חשבתי על דרך קצת מסורבלת
    כשמשתנה נתון מסוים בטבלה לעשות פונקציה של CreatRecord על טבלה משנית
    ולכתוב לשם את ה [OLD].[ID] ואת כל השדות שאתה מעוניין [OLD].[Field]
    ואח"כ להריץ קוד רגיל כל X זמן ואם יש שורות בטבלה הזמנית לבצע את המשימה.

    תכנות

  • טריגר באקסס
    Y yits

    ראיתי כאן שניתן לעשות מקרו על טבלאות באקסס,
    d389f412-d5c9-4196-ad66-cee3df86e6b3-image.png
    האם יש אפשרות גם להריץ קוד VBA?

    תכנות

  • האם לעדכן ל 1809?
    Y yits

    @master אמר בהאם לעדכן ל 1809?:

    @yits
    ישנם תלונות על התנגשות במקרים מסוימים בעדכון האחרון עם תוכנת wifree של נטפרי שגורם לעיתים לשגיאה המלווה במסך כחול,

    גם בהתקנה נקיה או רק בעדכון.

    תוכנה

  • קוקיס של דפדפן פנימי ביישום
    Y yits

    @WWW אמר בקוקיס של דפדפן פנימי ביישום:

    אם יודעים לסנן טוב, לא אמור להיות בעיה...

    תנסה עם הכלי שהצעתי ואח"כ תעדכן אותנו מה עדיף או מה יותר נח.

    אינטרנט

  • האם לעדכן ל 1809?
    Y yits

    @aiib אמר בהאם לעדכן ל 1809?:

    אם אתה מתכוון האם יש בעיה ספציפית כעת? נראה לי שכל הבעיות סודרו כבר

    זה מה שרציתי לדעת האם יש בעיות או לא, אני מזמן לא עם Win7

    תוכנה

  • האם לעדכן ל 1809?
    Y yits

    האם מומלץ כיום לבצע עדכון מ Win 10 1803 ל Win 10 1809
    והאם לתת לוינדוס לבצע עדכון אוטמטי?

    תוכנה

  • זה מומלץ?
    Y yits

    @aiib אמר בזה מומלץ?:

    @yits מעניין, אין כמעט הבדל במחיר

    זה תלוי בחברה ובנפח
    כאן תראה כבר את הפער
    https://ksp.co.il/?list_compare=.46567..48992.

    חומרה

  • זה מומלץ?
    Y yits

    @aiib
    תראה את ההשוואה הזאת
    https://ksp.co.il/?list_compare=.55593..50254.

    חומרה
  • 1
  • 2
  • 18
  • 19
  • 20
  • 21
  • 22
  • 52
  • 53
  • 20 / 53
  • התחברות

  • אין לך חשבון עדיין? הרשמה

  • התחברו או הירשמו כדי לחפש.
  • פוסט ראשון
    פוסט אחרון
0
  • דף הבית
  • קטגוריות
  • פוסטים אחרונים
  • משתמשים
  • חיפוש
  • חוקי הפורום