اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

رسائل واتساب


ansary184

الردود الموصى بها

السلام عليكم لدي مشكلة في هذا المديول الخاص بارسال رسائل واتس اب حيث انه لا يقوم بالضغط التلقائي علي زر ارسال بعد كتابة الرساله

Option Compare Database
'WhatsApp must be installed on your PC
Option Explicit
#If VBA7 Then
 Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
#Else
  Private Declare Sub Sleep Lib "kernel32" (ByVal duMilliseconds As Long)
#End If

Public Function Whatsapp_text(phone, Message)
    Dim Path As String
Path = "whatsapp://send?phone=2" & phone & "&text=" & Message

CreateObject("Shell.Application").Namespace(0).ParseName(Path).InvokeVerb "Open"

    ' إرسال الرسالة
    Sleep 2000
    SendKeys "~"
    Sleep 500
    SendKeys "~"
    Sleep 500
    SendKeys "~"
    SendKeys "{NUMLOCK}", True
End Function

 

لقطة شاشة 2023-09-23 053358.png

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information