Página 1 de 1

SendKeys

Publicado: 03 Feb 2017 22:54
por Pabloko
As i see this old plugin doesnt have a post (maybe was posted on the old forum)

USAGE: Put the dll on scripts folder and put on globals
require("SendKeys")


Example of use (on focus of textfield)
SendKeys("KkK ^A^C^V^V^V")

Imagen

DOC: https://msdn.microsoft.com/es-es/librar ... .110).aspx (SEE COMMENTS)

HIDE: ON
Hidebb Message Hidden Description


Source code (needs Lua.cs previously posted 1000 times)
using LuaVM.Utilities.Lua;
using RGiesecke.DllExport;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace SendKeys
{
public class SendKeysModule
{
[DllExport("luaopen_SendKeys", CallingConvention.Cdecl)]
public static int luaopen_SendKeys(IntPtr L)
{
Lua.lua_register(L, "SendKeys", luaSendKeys);
return 0;
}

public static int luaSendKeys(IntPtr L)
{
System.Windows.Forms.SendKeys.SendWait(Lua.lua_tostring(L, 1));
return 0;
}
}
}

Re: SendKeys

Publicado: 18 May 2017 20:37
por ByPoLaT
Thakns for sharing!

Re: SendKeys

Publicado: 18 May 2017 23:46
por Dow Sher
Excelente Pablo :yes: gracias por compartir, me está sirviendo de maravilla en un proyecto en el que ando. :friends:

Re: SendKeys

Publicado: 21 May 2017 03:07
por traveler
pegando obrigado

Re: SendKeys

Publicado: 11 Ago 2017 14:06
por Firmao
Top very good

Re: SendKeys

Publicado: 08 Sep 2017 00:08
por davidtxu
Estupendo, muchas gracias!

Re: SendKeys

Publicado: 10 Sep 2017 16:17
por jhonitimer
thankkkksss

Re: SendKeys

Publicado: 11 Sep 2017 15:30
por kantigo
Thanks for sharing.. i will study it how can i apply to my future project.. God Bless

Re: SendKeys

Publicado: 05 Nov 2017 19:32
por patch
what real world app would u use this for?

Re: SendKeys

Publicado: 06 Nov 2017 22:12
por Pabloko
patch escribió:
05 Nov 2017 19:32
what real world app would u use this for?
automation

Re: SendKeys

Publicado: 21 Dic 2017 01:19
por Sledmine
Gracias por la ayuda!

Re: SendKeys

Publicado: 23 Dic 2017 03:47
por MrMuh4d
Thanks

Re: SendKeys

Publicado: 27 Ene 2018 00:02
por good
Thanks

Re: SendKeys

Publicado: 03 Mar 2018 19:28
por usamakey
tnks m8

Re: SendKeys

Publicado: 23 Mar 2019 01:03
por nivaldorhk
valew amigo

Re: SendKeys

Publicado: 11 May 2020 17:46
por julian000
Gracias!

Re: SendKeys

Publicado: 12 May 2020 04:23
por sendai
Gracias

Re: SendKeys

Publicado: 09 Feb 2021 11:15
por pexabosh
thnksx

Re: SendKeys

Publicado: 16 Oct 2021 10:53
por Ams-Temp
:downvote-1417755753: