Jump to content

Sending a line in a txt to MSN


SimplyWile
 Share

Recommended Posts

Hello, i've tried to make a script that would simply pick a line from a .Txt file (i don't know how to make it pick all the lines...anyway)

and would send it to a MSN messenger window.

ReadLn>C:\Hekk.txt,1,$text

WindowAction>maximize,"**** - Conversation"
Send $text

PRESS ENTER

End

"Hekk" is the name of a file i gave to my friend for a test,

"***** - Conversation" the name of my msn window

but now when i try to compile it to an .exe (so that my friend would be able to launch it) it doesn't work :)

it says :

Posted Image

PS: to make this script i used macro scheduler (there is a list of commands which helped me), but then i copied pasted it to AutoIt to compile it.

Thanks for reading mates =)

Link to comment
Share on other sites

Hello, i've tried to make a script that would simply pick a line from a .Txt file (i don't know how to make it pick all the lines...anyway)

and would send it to a MSN messenger window.

ReadLn>C:\Hekk.txt,1,$text

WindowAction>maximize,"**** - Conversation"
Send $text

PRESS ENTER

End

"Hekk" is the name of a file i gave to my friend for a test,

"***** - Conversation" the name of my msn window

but now when i try to compile it to an .exe (so that my friend would be able to launch it) it doesn't work :)

it says :

Posted Image

PS: to make this script i used macro scheduler (there is a list of commands which helped me), but then i copied pasted it to AutoIt to compile it.

Thanks for reading mates =)

Your not formating your commands right I dont know what Macro Scheduler is but I dont think it does AU3

Theres a very big diffrence between Macro Scheduler and AutoIt code its like 2 different languages which is why there called programing/scripting languages

$Text = FileReadLine("C:\Hekk.txt, 1)
WinActivate("**** - Conversation")
Send($Text)


; Alternate way that works even if window is minimized (Might not work with your IM program though)

$Text = FileReadLine("C:\Hekk.txt, 1)
ControlSend("**** - Conversation", "", "", $Text)

You should probly look at some of the tutorials for AutoIt3

Edited by frostfel
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...