TariqMehmod
Programmer
Sir I am using these code to send text message on whatsapp.
There is no issue.
But now I want to send PDF document or image on whatsapp
to do this, I visited these links
Link
Link
But could not found how to modify this line of code
I mean what to add in api string to send document?
Update:
While using codes from this link
I modified my string like this
but it still not work
Please help
Code:
Declare Integer FindWindow In WIN32API String , String
Declare Integer SetForegroundWindow In WIN32API Integer
Declare Integer ShowWindow In WIN32API Integer , Integer
Declare Integer ShellExecute In shell32.Dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
Local lt, lhwnd
cPhone=[9203000000000]
cMessage='How are you sir?'
cmd='whatsapp://send?phone=&cPhone&text=&cMessage'
=ShellExecute(0, 'open', cmd,'', '', 1)
Wait "" Timeout 3
lt = "Whatsapp"
lhwnd = FindWindow (0, lt)
If lhwnd!= 0
SetForegroundWindow (lhwnd)
ShowWindow (lhwnd, 1)
ox = Createobject ( "Wscript.Shell" )
ox.sendKeys ( '{ENTER}' )
Else
Messagebox ( "Whatsapp no activated!" )
Endif]
There is no issue.
But now I want to send PDF document or image on whatsapp
to do this, I visited these links
Link
Link
But could not found how to modify this line of code
Code:
cmd='whatsapp://send?phone=&cPhone&text=&cMessage'
I mean what to add in api string to send document?
Update:
While using codes from this link
I modified my string like this
Code:
mediaName="conversational-commerce"
mediaUri="[URL unfurl="true"]https://www.cm.com/cdn/web/nl-nl/blog/conversational-commerce.jpg"[/URL]
mimeType= "image/jpg"
cmd='whatsapp://send?phone=&cPhone&media=&mediaName&Url=&mediaUri&type=mimeType'
but it still not work
Please help