Sign in to follow this  
Followers 0
Dry

Simple script with a problem

7 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



I'm pretty sure it's because of the quotes.

""

''

You would need to add another quote in a couple places. It of course would reck the art work.

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Edited by Dry

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks to both of you. I think I'll keep the double quotes for the clipput and change all my double quotes of the art to single.

Share this post


Link to post
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')

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