Sending whatsapp message via web-based app

Sending whatsapp message via web-based app

Postby hua » Tue Oct 17, 2023 4:46 am

I saw someone showing his invoice module.
He claims invoice can be sent out from within the program directly but must be running web-based whatsapp before that is done.
Anyone has any idea of how that is done?
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Sending whatsapp message via web-based app

Postby Antonio Linares » Tue Oct 17, 2023 5:42 am

Dear Hua,

whatsappw.prg
Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

   ShellExecute( 0, "open", "https://web.whatsapp.com/send?phone=34722461100&text=Hello" )
   SysWait( 8 )
   CreateObject( "WScript.Shell" ):SendKeys( "~" )

return nil  


Alternatively you can use the whatsapp app instead of the web based whatsapp:

viewtopic.php?p=264367&sid=ef96896e428d02d9a4e04210e8ee8fe2#p264367
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42065
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Sending whatsapp message via web-based app

Postby hua » Tue Oct 17, 2023 7:15 am

Thanks for the tip Antonio!
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Sending whatsapp message via web-based app

Postby nageswaragunupudi » Tue Oct 17, 2023 9:18 am

I am using it and working perfectly for me.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Sending whatsapp message via web-based app

Postby karinha » Tue Oct 17, 2023 12:42 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7794
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Sending whatsapp message via web-based app

Postby hua » Wed Oct 18, 2023 3:03 am

Thanks for the link Karinha
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Sending whatsapp message via web-based app

Postby hua » Wed Oct 18, 2023 3:04 am

nageswaragunupudi wrote:I am using it and working perfectly for me.

Were you able to attach files to send out? Can you share the code please?
Thanks!
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 34 guests