Sign in to follow this  
Followers 0
TynaKu

HotKey Text Send

7 posts in this topic

#1 ·  Posted (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 by TynaKu

Share this post


Link to post
Share on other sites



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

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

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

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

Thank you,pyzonet !

That's I was looking for :)

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by TynaKu

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0