TynaKu 0 Posted January 24, 2011 (edited) Hello! I am curently working on a program that sends text messages by pressing a hotkey. My problem is that I'm newbie and I don't know how to set the function which sends the text after pressing the hotkey . I tried also with this function : HotKeySet("{Right}", Send "{ENTER}" Send "Miss Down") , but obvious I failed . Can you please help me ? I apreciate any kind of help or advice. Edited January 24, 2011 by TynaKu Share this post Link to post Share on other sites
somdcomputerguy 103 Posted January 24, 2011 Welcome to the Forum. Read thru the Helpfile some more. There are examples in there for all the functions you'll need for this project, HotKeySet and Send. Also, browse thru the Language Reference section. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Share this post Link to post Share on other sites
TynaKu 0 Posted January 24, 2011 Thanks somdcomputerguy , but I can't get it to work. I only need to know how to set that HotKeySet in order to send the text message after pressing the Hotkey... Share this post Link to post Share on other sites
pyzonet 0 Posted January 24, 2011 HotKeySet("{Right}", "sendit") Func sendit() Send ("{ENTER}Miss Down") EndFunc #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> GUICreate("") HotKeySet("{Right}", "sendit") While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() Func sendit() Send ("{ENTER}Miss Down") EndFunc Example Script(s): Export Listview to Excel & Print!....(¯`v´¯)..... ·.¸.·´...¸.·´.. (☻//▌♥♥/ \ ... Wake up the dawn and ask her why ...╔══╗ ♥ ♫ ♥║██║ ♫ ♥ ♫║(O)║♥A dreamer dreams she never dies♥╚══╝۩۞۩ஜ1984'09ஜ۩۞۩ Share this post Link to post Share on other sites
somdcomputerguy 103 Posted January 24, 2011 Read thru the Helpfile some more. There are examples in there for all the functions you'll need for this project, HotKeySet and Send. Also, browse thru the Language Reference section.The examples in the Helpfile are code examples.. And read thru the Helpfile some more. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Share this post Link to post Share on other sites
TynaKu 0 Posted January 24, 2011 Thank you,pyzonet ! That's I was looking for Share this post Link to post Share on other sites
TynaKu 0 Posted January 24, 2011 (edited) There is a way to send the text instantly or nearly 1-2 miliseconds? I tried with ControlSetText but it gives me errors. Edited January 24, 2011 by TynaKu Share this post Link to post Share on other sites