Jump to content

Recommended Posts

Posted

Hello,

I've pretty much stepped through my whole way through this silving majoirty of problems my self. I'm left with one more ! All the info of my item bot logger is stored to a txt file, and I want to send that text file from my email to my other email. (So I can see the items that I got at school..)

Everything works, except I can't seem to find a decent way to get the text to the clip board. (Or even just the text) of the entire text file.

Any advice?

Posted (edited)

Heres a good example.

$File=@ScriptFullPath
$Text=FileRead ($File,FileGetSize($File))
ClipPut($Text)

Just replace @scriptfullpath with the path of your file.

@Alek

Your script does not function properly as written. You forgot the closing parenthesis on the 4th line and even when set up properly only the last line would show up as it keeps replacing the previous line.

Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Posted

$TxtFile = "log.txt"
ClipPut(FileRead($TxtFile))

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted (edited)

Question.

I can't seem to use something like @Scriptdir

Example, why doesn't this work?

#include <file.au3>

$TxtFile = @SystemDir & "Bot.txt"
ClipPut(FileRead($TxtFile))
Edited by lolp1
Posted (edited)

  lolp1 said:

Question.

I can't seem to use something like @Scriptdir

Example, why doesn't this work?

#include <file.au3>

$TxtFile = @SystemDir & "Bot.txt"
ClipPut(FileRead($TxtFile))

Try:

$TxtFile = @SystemDir & "\Bot.txt"
ClipPut(FileRead($TxtFile))

You forgot to put a backslash.

Also,The #Include is not necessary as you are not calling any udfs.

Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

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