Jump to content

Recommended Posts

Posted

Hi i need a code who cane write a sentence i decide

I have try

send("H")

sleep(100)

send("i")

sleep(100)

send("F")

sleep(100)

send("R")

sleep(100)

send("I")

sleep(100)

send("E")

sleep(100)

send("N")

sleep(100)

send("D")

sleep(100)

but its not work.. Only with keys like f10... Enter.. you know...

Do you know any key who cane write a line in a things like msn and word?....

Posted (edited)

Are you asking to make a macro type tool for msn messenger? :mellow:

Ok, You ae off to a good start, but you need to look at the following commands to add to your code:

HotKeySet

ControlSend

To give you an example from the help file:

; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d

;;;; Body of program would go here;;;;
While 1
    Sleep(100)
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

Func ShowMessage()
    MsgBox(4096,"","This is a message.")
EndFunc
Edited by Volly
Posted

Hmm but i need it in word

when i have put the Script on aktive... i want it to do this:

When i select F12

it should automatical write : A line i have decide

do you think you cane make me that code?

It should write is... as a human do.. i want my friend to think some one is on my computer :mellow:

Posted (edited)

play around this

HotKeySet("{F12}", "SendMessage"); F12 to call the function

While 1
    Sleep(10)
WEnd

Func SendMessage()
    Send('Hi this is some text')
EndFunc ;==>SendMessage
Edited by oMBra
Posted (edited)

Posting Reply of your PM.

I have a questien and you look Smart :mellow:

I want to make a script

that

if i put on aktive i cane use F10

and then its write a line (that i have decide)

in that window i have open...

I have try

Send("H")

Send("I")

Send("M")

Send("A")

Send("T")

Send("E")

But its not work

Hi, first of all remember not to PM anyone because you may get banned. always post your questions or problems and wait for at least 24hrs before bumping and never create duplicate threads regarding the same thing.

read the help file for HotKeySet() and Send()

also it's like the following.

Send("Hi Mate, how are you?")

not like sending each key.

just use a hotkey and on pressing it the text will be sent.

Edit::

say thanks to oMBra for providing a good example. :(

i think he can also help me here http://www.autoitscript.com/forum/index.php?showtopic=84156

or anyone else?

Edited by L0veUK

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
  • Recently Browsing   0 members

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