Jump to content

Simple script with a problem


Dry
 Share

Recommended Posts

Sleep (5000)

AutoItSetOption)("SendKeyDelay", 10)

ClipPut ("................................................_,,,,,,,,,,,,,_")

Send ("{Enter}^v{Enter}")

ClipPut (".......................................,,-~"`` . . . . . . . . .""`~-,")

Send ("{Enter}^v{Enter}")

ClipPut (".............................._,-~""`. . . . . . . . . . . . . . . . . `"-,")

Send ("{Enter}^v{Enter}")

ClipPut ("...........................,-'` . . . . . . . . . . . . . . . . . . . . . . . "-,")

Send ("{Enter}^v{Enter}")

ClipPut ("..........................'\ . . . . . . . . . . . . . . . . . . . . . . . . . .|")

Send ("{Enter}^v{Enter}")

ClipPut ("...........................'\, . . . . . . . . . . . . . . . . . . . . . . . . .|'")

Send ("{Enter}^v{Enter}")

ClipPut ("............................'\, .. . . . . . . . . . . . . . . . . . . . . . . |'")

Send ("{Enter}^v{Enter}")

ClipPut ("..............................'\ . . . . . . . . . . . . . . . . . . . . . . ./'")

Send ("{Enter}^v{Enter}")

ClipPut ("...............................'\, . . . . . . . . . . . . . . . . . . . . /'")

Send ("{Enter}^v{Enter}")

ClipPut ("................................."-, . . . . . _,--~~,','-'-','~~--,,./'")

Send ("{Enter}^v{Enter}")

ClipPut ("...................................."-,_,-~" . . . . (;;;;;;;B) . . . |")

Send ("{Enter}^v{Enter}")

ClipPut (".......................................'\ . . . . . . . ."-,_,-" . . . .|")

Send ("{Enter}^v{Enter}")

ClipPut ("........................................|, . . . _,,-----~~~~--,,,_|")

Send ("{Enter}^v{Enter}")

ClipPut ("........................................'|,-~'"``. ,,---,, . . . . . . . "~-,,")

Send ("{Enter}^v{Enter}")

ClipPut ("......................................,-' . . . . .( . . .) . . . . . . ,-```- .'-,")

Send ("{Enter}^v{Enter}")

ClipPut ("...................................,-' . . . . . . .````` . . . . . . . ."----' . .''\,")

Send ("{Enter}^v{Enter}")

ClipPut (".................................,/' . . . . . . . . . . . . . . . . . . . . . . . . \........,__,,-~"""-,")

Send ("{Enter}^v{Enter}")

ClipPut ("............,--,_ ..............'| . . . . . . . ..~'--,_ . . . . . . .,- . . . . . .|....,-' . . . . . . ./")

Send ("{Enter}^v{Enter}")

ClipPut (".,~"""~'"` . . .""'~-,_ .....'\, . . . . . . . . . '\, ."~----~','-' . . . . . . .'|,-'` . . . . . . .,/'")

Send ("{Enter}^v{Enter}")

ClipPut (".'\, . . . . . . . . . . . ."~-,_ '\, . . . . . . . . . '\,__,,-~" . . . . . . . ./. . . . . . . . ,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("..."~-,,_ . . . . . . . . . . . ."-' ',~-,,_ . . . . . . . . . . . . . . . . .,-' . . . . . . . ,-'")

Send ("{Enter}^v{Enter}")

ClipPut ("............"""~,, . . . . . . . . . . '-, . ."~~--,,,_ . _,,,,,,_ . .,,~" . . . . . . .,-'")

Send ("{Enter}^v{Enter}")

ClipPut ("...................."~-, . . . . . . . . ..`"~,,_ . . . ```( . .. . ) . . . ) . . . . . ,~"")

Send ("{Enter}^v{Enter}")

ClipPut (".........................."~-, . . . . . . . . . . "~---,,,/. .,- ./ .--,~" . . . . ,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("...............................''-, . . . . . . . . . . . . .'| . . . \'\ . . '\, . . . .,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("..................................'\, . . . . . . . . . . . .| . . . .').\. . .'\ . . ,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("....................................`\ . . . . . . . . . . . \, . .,-' . .'-, . ) . /'")

Send ("{Enter}^v{Enter}")

ClipPut ("......................................') . . . . . . . . . . . "-"` . . . . '-" . /")

Send ("{Enter}^v{Enter}")

ClipPut ("......................................| . . . . . . . . . . . . . . . . . .. . . \")

Send ("{Enter}^v{Enter}")

ClipPut (".....................................,| . . . . . . . . . . . . . . . . . . . . ..\")

Send ("{Enter}^v{Enter}")

ClipPut ("....................................,|' . . . . . . . . . . . . . . . . . . . . . . |")

Send ("{Enter}^v{Enter}")

ClipPut ("...................................,/ . . . . . . . . . . . . . . . . . . .. . . ,/")

Send ("{Enter}^v{Enter}")

ClipPut ("..................................,/ . . . . . . . . . . . . . . . . .. . . . .,/'")

Send ("{Enter}^v{Enter}")

ClipPut (".................................,/'. . . . . . . . . . . . . . . . . . . . .,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("................................,/'. . . . . . . . . . . . . . . . . . . ..,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("..............................,/'. . . . . . . . . . . . . . . . . . .. .,/'")

Send ("{Enter}^v{Enter}")

ClipPut (".............................,/'. . . . . . . . . . . . . . . . . . . .,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("............................,/'. . . . . . . . . . ._ . . . . . . . ,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("...........................,/'. . . . . . . . .,-~".|. . . . . . .,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("..........................,/ . . . . . . . ,~" . . '| . . .. . ..,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("..........................| . . . . . . .,-' . . . . .'\, . .. . ,/'")

Send ("{Enter}^v{Enter}")

ClipPut ("..........................."~,, . .,,~" . . . . . . ."~,_,-'")

Send ("{Enter}^v{Enter}")

I get an error:

Line 5

ClipPut (".......................................,,-~"`` . . . . . . . . .""`~-,")

ClipPut (".......................................,,-~"^ ERROR

Error: Unable to parse line.

This happens to other ASCII art too. It really is just copy and paste so it should be working 100% of the time. I think it has something to do with the characters in the ClipPut but I really don't know what. Thanks in advance.

Edited by Dry
Link to comment
Share on other sites

Is there a way around it? AutoIt must have ways to copy a quote.

Sure, just use ' instead of "" on the outsides... like this. Sorry, I should have pointed this out before... brain shut down from the storm.

ClipPut ('".......................................,,-~"`` . . . . . . . . .""`~-,"')

Or like this

ClipPut ('.......................................,,-~"`` . . . . . . . . .""`~-,')
Edited by kpu
Link to comment
Share on other sites

  • Developers

Is there a way around it? AutoIt must have ways to copy a quote.

Double the " inside "" to get a single "

"""" = "

see : http://www.autoitscript.com/autoit3/docs/i...g_datatypes.htm

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Welcome to the forums!

Have you considered storing the art in a separate file and then doing this:

Local $File = 'C:\TheCookieMan.txt'
Local $Art = FileRead($File, FileGetSize($File))
ClipPut($Art)
Send('^v')
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...