- SHAMEEM KAKKAD
- PowerBuilder
- Thursday, 21 July 2022 12:44 AM UTC
HI,
I need to send a file through whatsapp. I used below method. but a small doubt.
int li_connect
ole_wsh = Create OleObject
li_connect = ole_wsh.ConnectToNewObject("WScript.Shell") //
ole_wsh.Run(whatsapp exe path here )
ole_wsh.appActivate("Whatsapp")
sleep (2)
ole_wsh.SendKeys("+{TAB}")
ole_wsh.SendKeys("{ENTER}")
ole_wsh.SendKeys("{DOWN}")
ole_wsh.SendKeys("{DOWN}")
ole_wsh.SendKeys("{DOWN}")
ole_wsh.SendKeys("{DOWN}")
ole_wsh.SendKeys("{ENTER}") // now it is reached file attachment dialogbox.
In this box I need to paste my file in the file name area without use manual selection.
Have any chance ?.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.