Sign in to follow this  
Followers 0
McGod

Reading a Text File and Sending the lines

4 posts in this topic

I want my Script to be able to read a text file that has quotes like

Haha

Yo

Lol

In that way.

Then i want to be able to use the Send function to send theses out.

Any way possible to do this?

If so how

Share this post


Link to post
Share on other sites



I want my Script to be able to read a text file that has quotes like

Haha

Yo

Lol

In that way.

Then i want to be able to use the Send function to send theses out.

Any way possible to do this?

If so how

It's all in the help file, but you can study this, and you could get some general ideas: http://www.autoitscript.com/forum/index.ph...ndpost&p=146697

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

alright thanks for help.

Still new to this whole autoit thing

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Well that script was confusing couldnt make a clue of what it tried to do :lmao:

What commands would i need to be able to do what i need?

like i know:

FileReadLine

FileOpen

Send

If its any help ill post script

Global $Paused

HotKeySet("{PAUSE}", "TogglePause")

HotKeySet("{ESC}", "Terminate")

HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d

Run ( "Diablo II.exe -w -skiptobnet" )

WinWaitActive( "Diablo II" )

WinSetOnTop ( "Diablo II", "Diablo II", 1 )

MouseMove ( 615, 486 )

MouseClick ( "left" )

MouseClick ( "left" )

Send ( "13-37" )

WinWaitActive( "ezpk", "", 5)

MouseClick("left", 584, 540, 10)

WinWaitActive( "ezpk", "", 3)

Send ( "*****" )

MouseMove ( 568, 614 )

MouseClick ( "left" )

MouseClick ( "left" )

MouseClick("left", 303, 650, 10)

While 1

MouseClick("left", 579, 418, 10)

Send ( "name" )

MouseClick("left", 881, 711, 10)

MouseClick("left", 598, 478, 10)

I want to be able to get "name" to be tried off a list

so like

"Name1"

"name2"

Edited by Chip

Share this post


Link to post
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
Sign in to follow this  
Followers 0