FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Sending whatsapp message via web-based app
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Sending whatsapp message via web-based app
Posted: Tue Oct 17, 2023 04: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Sending whatsapp message via web-based app
Posted: Tue Oct 17, 2023 05:42 AM
Dear Hua,

whatsappw.prg
Code (fw): Select all Collapse
#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:

https://fivetechsupport.com/forums/viewtopic.php?p=264367&sid=ef96896e428d02d9a4e04210e8ee8fe2#p264367
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Sending whatsapp message via web-based app
Posted: Tue Oct 17, 2023 07:15 AM

Thanks for the tip Antonio!

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Sending whatsapp message via web-based app
Posted: Tue Oct 17, 2023 09:18 AM

I am using it and working perfectly for me.

Regards



G. N. Rao.

Hyderabad, India
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Sending whatsapp message via web-based app
Posted: Tue Oct 17, 2023 12:42 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Sending whatsapp message via web-based app
Posted: Wed Oct 18, 2023 03:03 AM

Thanks for the link Karinha

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Sending whatsapp message via web-based app
Posted: Wed Oct 18, 2023 03: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

Continue the discussion