TynaKu Posted January 24, 2011 Share 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 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted January 24, 2011 Share 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. Link to comment Share on other sites More sharing options...
TynaKu Posted January 24, 2011 Author Share 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... Link to comment Share on other sites More sharing options...
pyzonet Posted January 24, 2011 Share 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 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted January 24, 2011 Share 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. Link to comment Share on other sites More sharing options...
TynaKu Posted January 24, 2011 Author Share Posted January 24, 2011 Thank you,pyzonet ! That's I was looking for Link to comment Share on other sites More sharing options...
TynaKu Posted January 24, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now