sendkeys

send a pic from excel via whatsapp

心已入冬 提交于 2020-08-05 09:37:17
问题 How can we send a pic from excel via whatsapp? I have found the vba code to send messages via https://web.whatsapp.com, Sub Test() Dim text As String Dim contact As String text = Range("C2").Value ActiveWorkbook.FollowHyperlink Address:=" https://web.whatsapp.com/" If MsgBox("Is WhatsApp Loaded?" & vbNewLine & vbNewLine & "Press No To Cancel", vbYesNo + vbQuestion + vbSystemModal, "WhatsApp") = vbYes Then Fazer (100) startrow = 2 startcol = 2 Do Until Sheets(1).Cells(startrow, 1) = "" contact

Sending keyboard key to browser in C# using sendkey function

依然范特西╮ 提交于 2020-06-26 06:42:03
问题 Hello i am trying to send a key to browser using the code below, the new chrome window opens for me but it does not send the key to the browser. When i debugged i found out chrome process does not have any title name how can i solve this problem? Process.Start("chrome.exe", "https://labs.sketchfab.com/sculptfab/"); System.Threading.Thread.Sleep(2000); foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcesses()) { if (p.ProcessName == "chrome" && p.MainWindowTitle ==

Python selenium whatsapp- search button

血红的双手。 提交于 2020-06-17 15:53:08
问题 I am searching contacts through phone number and sending message in whatsapp using python selenium. But i am not able to find the name, when I input in the search using send keys, it is getting deleted, when it goes to next element. I want to know how to use alternate driver.executescript or where the attribute searched stays, and I can find the name of that . v_elem=driver.find_element_by_class_name('_3u328') v_elem.send_keys(phone)) driver.find_element_by_css_selector('span[class="_19RFN

Loop through, open, perform SendKeys on pdf files in one folder

一曲冷凌霜 提交于 2020-05-17 07:26:23
问题 Sub Password() 'Loop through all files in a folder Dim fileName As Variant fileName = Dir("C:\State_K-1_Info\Password\*.pdf") Do While fileName <> "" CreateObject("Shell.Application").Open ("C:\State_K-1_Info\Password\001.pdf") Application.Wait Now + 0.00005 'Insert the actions to be performed on each file 'This example will print the file name to the immediate window Application.SendKeys "{Tab}", True Application.SendKeys "^(s)", True Application.SendKeys "%{F4}", True 'Set the fileName to

Cant send email using VBA

拟墨画扇 提交于 2020-02-06 03:45:24
问题 I am creating a tool that will automatically dispatch emails out. I have started to build it using very simple code as below: Set outlookobj = New Outlook.Application Set mitem = outlookobj.CreateItem(olMailItem) With mitem .To = "A_Valid_Email@email.com" .Subject = "TEST" .Body = "test" .Display .Send End With End Sub However the company I work for seem to have locked down .send. The email will create fine but will not send. Can anyone think of a way around this? I have considered using

Trouble Installing and Importing SendKeys — Update

风流意气都作罢 提交于 2020-01-24 23:04:11
问题 I am trying to install SendKeys for Python. If I use pip install SendKeys I get a link error: _sendkeys.c(150): warning C4013: 'Py_InitModule' undefined; assuming extern returning int C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED, \10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86) LINK : error LNK2001: unresolved external symbol

C# SendKeys.Send

蹲街弑〆低调 提交于 2020-01-21 07:17:29
问题 I am running on an issue using C# SendKeys.Send method. I am trying to replace keyboard keys with other keys, for example when I press "a" in keyboard I want that key to be "s" for example, when I am doing this in my code: if ((Keys)keyCode== Keys.A) { SendKeys.Send("s"); } Right now I get only "sa" character printed in my notepad, but instead of printing "sa" I need to get only "s" character in this case because when I press "a" on my keyboard, "a" must be replaced with "s". I tried removing