Jump to content

Paste Text in Chat Box


Recommended Posts

This is killing ME. Ive been trying make this in AutoIt. Its probably a simple function to.

I want code this:

I press enter, it paste the text from text.txt into like an msn conversation box or any dialog chat box that is open, and Send it.

Also I was also told that I can import the script into mmb. Thats what I would like to do.

So far. Ive gotten no where. Can anyone help me and point me in the right direction? Im so confused and I got a huge headache. :D

Link to comment
Share on other sites

So far I have

HotKeySet( "ENTER" [, "Send"] )

In line 1. Am I even doing this right? Im so confused :D

Welcome to the forums.

- Look at the help file entry for Send()... "ENTER" should be "{ENTER}"

- Brackets "[]" indicate that the parameter is optional. Do not type them.

- Send() already exists, so pick a new name for your function.

Please re-read the help file entries for these functions. When in doubt, run the examples and try to tweak them to gain a better understanding.

Good luck!

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Link to comment
Share on other sites

here is something to get you started.. SORRY VOLLY this guy needs help..

Hotkeyset ('{ENTER}', '_Send')

Func _Send ()
;YOUR CODE HERE
Endfunc
Link to comment
Share on other sites

ok... place Msgbox(0,'','') instead of :YOUR CODE HERE.... then run it

Yes thats what a HotKey does

Link to comment
Share on other sites

Try this:

HotKeySet('{ENTER}', '_Send')
HotKeySet('{ESC}', '_EXIT')

While 1
   Sleep(50)
WEnd

Func _EXIT()
   Exit
EndFunc

Func _Send()
   MsgBox(0x40, 'Title', 'Text')
EndFunc

Hit enter to run _Send function to see the message box and hit ESC to exit the script. The idea is to make a hot-key script that process code when you hit the hot-key and do nothing but sleep when no matching hot-key was pressed, such as the enter with this script.

Link to comment
Share on other sites

yes.. or you can use _ispressed() inside the While and clear up some of the lines... but this is goood for a begginer

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...