Jump to content

HotKey Text Send


TynaKu
 Share

Recommended Posts

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
Link to comment
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
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...