Consulta Para Antonio Linares (Mensaje a Wathsapp)

Re: Consulta Para Antonio Linares (Mensaje a Wathsapp)

Postby leandro » Thu Jun 13, 2019 8:37 pm

Que buen aporte :D

Gracias
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1669
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: Consulta Para Antonio Linares (Mensaje a Wathsapp)

Postby Sistem » Fri Jun 14, 2019 5:58 am

https://youtu.be/ESk_XIycGt8
Code: Select all  Expand view
Function Whatsapp(cPara, cMsg)
 Local oShell, oClp, hBmp := FWSaveScreen( GetDesktopWindow() )

   DEFINE CLIPBOARD oClp FORMAT BITMAP OF oWndP
   oClp:Open()
   oClp:SetBitmap( hBmp )
   oClp:Close()

   oShell := CreateObject( "WScript.Shell" )
   oShell:run("chrome.exe https://api.whatsapp.com/send?phone="+cPara)
   Sleep(1500)
   oShell:sendkeys("{tab}{tab}")
   oShell:SendKeys("~")
   Sleep(5000)
   oShell:sendkeys("^(v)")   // Ctrl+v
   Sleep(2500)
   oShell:sendkeys(cMsg)
   oShell:SendKeys("~")
Return nil
 
FWH2008 | xHarbour | BCC74 | SQLRDD
User avatar
Sistem
 
Posts: 226
Joined: Sun May 13, 2012 7:52 am

Re: Consulta Para Antonio Linares (Mensaje a Wathsapp)

Postby Silvio.Falconi » Fri Jun 14, 2019 6:37 am

perhaps in Italy not run
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7016
Joined: Thu Oct 18, 2012 7:17 pm

Re: Consulta Para Antonio Linares (Mensaje a Wathsapp)

Postby jvtecheto » Fri Jun 14, 2019 7:04 am

Xevi wrote:Gracias por el aporte.

FUNCIONANDO!!!

Code: Select all  Expand view

Function Main()
   Local oShell

   oShell := CreateObject( "WScript.Shell" )
   oShell:run("chrome.exe https://api.whatsapp.com/send?phone=34666666666" )
   Sleep(1500)
   oShell:sendkeys("{tab}{tab}")
   oShell:SendKeys("~")
   Sleep(5000)
   oShell:sendkeys("Mensaje de prueba")
   oShell:SendKeys("~")

Return nil
 


Ahora, estaría bien poder hacer que se ejecutara en modo silencioso... sin abrir ventana alguna.


Hola Xevi:

No logro compilar, la funcion createobject no la reconoce,

Error: Unresolved external '_HB_FUN_CREATEOBJECT' referenced from C:\USERS\JOSÉ VTE. CHETO\DOCUMENTS\HARBOUR\PROJECTS\WHATSAPP\OBJ\MAIN.OBJ
Error: Unresolved external '_HB_FUN_SLEEP' referenced from C:\USERS\JOSÉ VTE. CHETO\DOCUMENTS\HARBOUR\PROJECTS\WHATSAPP\OBJ\MAIN.OBJ
Error: Unresolved external '_HB_FUN_FW_GT' referenced from C:\USERS\JOSÉ VTE. CHETO\DOCUMENTS\HARBOUR\PROJECTS\WHATSAPP\OBJ\MAIN.OBJ
Error: Unable to perform link
1 Files, 1 Warnings, 4 Errors
Tiempo de compilación: 0.84s Tiempo de enlazado: 0.38s Tiempo total: 1.22s

falta algun include
tengo el fivewin.ch
alguno mas?
Fwh 24.07 64 bits + Harbour 64 bits 3.2dev(r2407221137) + MSVC64
User avatar
jvtecheto
 
Posts: 592
Joined: Mon Mar 04, 2013 4:32 pm
Location: Spain

Re: Consulta Para Antonio Linares (Mensaje a Wathsapp)

Postby Xevi » Fri Jun 14, 2019 8:25 am

Alguna lib te está faltando incluir.
Yo lo compilo, mínimamente con...

Code: Select all  Expand view

      <Library Filename="C:\FW\fwh\lib\FiveH.lib"/>
      <Library Filename="C:\FW\fwh\lib\FiveHC.lib"/>
      <Library Filename="[Harbour]hbwin.lib"/>
      <Library Filename="[Harbour]gtgui.lib"/>
      <Library Filename="[Harbour]gtwin.lib"/>
      <Library Filename="[Harbour]hbrtl.lib"/>
      <Library Filename="[Harbour]hbvm.lib"/>
      <Library Filename="[Harbour]hblang.lib"/>
      <Library Filename="[Harbour]hbmacro.lib"/>
      <Library Filename="[Harbour]hbrdd.lib"/>
      <Library Filename="[Harbour]rddntx.lib"/>
      <Library Filename="[Harbour]rddfpt.lib"/>
      <Library Filename="[Harbour]hbsix.lib"/>
      <Library Filename="[Harbour]hbdebug.lib"/>
      <Library Filename="[Harbour]hbcommon.lib"/>
      <Library Filename="[Harbour]hbpp.lib"/>
      <Library Filename="[Harbour]hbcpage.lib"/>
      <Library Filename="[Harbour]hbcplr.lib"/>
      <Library Filename="[Harbour]hbct.lib"/>
      <Library Filename="[Harbour]hbpcre.lib"/>
      <Library Filename="[Harbour]xhb.lib"/>
      <Library Filename="[Harbour]hbziparc.lib"/>
      <Library Filename="[Harbour]hbmzip.lib"/>
      <Library Filename="[Harbour]hbzlib.lib"/>
      <Library Filename="[Harbour]minizip.lib"/>
      <Library Filename="[bcc]c0w32.obj"/>
      <Library Filename="[bcc]cw32.lib"/>
      <Library Filename="[bcc]import32.lib"/>
      <Library Filename="[bcc]\lib\psdk\shell32.lib"/>
 
Un Saludo,
Xevi.

Aprendiz de la vida!!!
User avatar
Xevi
 
Posts: 173
Joined: Wed Nov 29, 2017 11:42 am
Location: Girona

Re: Consulta Para Antonio Linares (Mensaje a Wathsapp)

Postby jvtecheto » Fri Jun 14, 2019 9:17 pm

Gracies Xevi.

Era culpa mia, para pruebas rapidas utilizo otro ide para no cargar de proyectos a FivEdit. Pero luego tengo problemas, jaja.
Me faltaban las librerias de Fivewin.

Saludos.

Jose.
Fwh 24.07 64 bits + Harbour 64 bits 3.2dev(r2407221137) + MSVC64
User avatar
jvtecheto
 
Posts: 592
Joined: Mon Mar 04, 2013 4:32 pm
Location: Spain

Re: Consulta Para Antonio Linares (Mensaje a Wathsapp)

Postby Marcelo Roggeri » Fri Jun 14, 2019 9:21 pm

Siguiendo el hilo, alguien pudo ocultar el Chrome al enviar un mensaje, osea que sea algo transparente al usuario
Saludos
Marcelo
FWH - Harbour - BCC7 - PellesC
User avatar
Marcelo Roggeri
 
Posts: 342
Joined: Sat Jul 22, 2006 9:04 pm
Location: Venado Tuerto - Santa Fe -Argentina

Re: Consulta Para Antonio Linares (Mensaje a Wathsapp)

Postby Admpss » Mon Jun 17, 2019 1:47 am

HI, can i use with Microsoft edge? i can use in network, send a message from an remote computer in network connected with whats? and to send pdf files? very thanks
Admpss
 
Posts: 26
Joined: Wed Oct 31, 2018 7:37 pm

Re: Consulta Para Antonio Linares (Mensaje a Wathsapp)

Postby Sistem » Mon Jun 17, 2019 7:48 pm

Admpss wrote:HI, can i use with Microsoft edge? i can use in network, send a message from an remote computer in network connected with whats? and to send pdf files? very thanks


can i use with Microsoft edge?
yes...you can use another browser
i can use in network, send a message from an remote computer in network connected with whats?
i do not understand the question
send pdf files?
you can upload files to some web server...use the web server link :idea:
FWH2008 | xHarbour | BCC74 | SQLRDD
User avatar
Sistem
 
Posts: 226
Joined: Sun May 13, 2012 7:52 am

Previous

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 87 guests