Scripty Posted November 11, 2008 Posted November 11, 2008 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?....
Bert Posted November 11, 2008 Posted November 11, 2008 (edited) Are you asking to make a macro type tool for msn messenger? 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 November 11, 2008 by Volly The Vollatran project My blog: http://www.vollysinterestingshit.com/
Scripty Posted November 11, 2008 Author Posted November 11, 2008 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
oMBRa Posted November 11, 2008 Posted November 11, 2008 (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 November 11, 2008 by oMBra
UltraFine Posted November 11, 2008 Posted November 11, 2008 (edited) Posting Reply of your PM.I have a questien and you look Smart I want to make a scriptthatif i put on aktive i cane use F10and 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 workHi, 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=84156or anyone else? Edited November 11, 2008 by L0veUK
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