Jump to content

MsgBoxs not appearing 1st time around


Recommended Posts

Puzzled beyond belief. Ok, I'm trying to automate cleaning up some HTML. I copy the source and run the script. I've been trying to debug it so I put a MsgBox so I can see every line. The first time I run my macro it will not show MsgBox 0-4 only number 5. If I rerun it however, it will show all 6 MsgBoxs. I am running v3.2.0.1 on WinXP.

$Clipboard = ClipGet()

MsgBox(0,"0",$Clipboard)

$Clipboard = StringRight($Clipboard, StringLen($Clipboard)-StringInStr($Clipboard,"asp/CustProfile.asp"))

MsgBox(0,"1",$Clipboard)

$Clipboard = StringReplace($Clipboard,"<A HREF","{ENTER}<A HREF")

$search = StringRight($Clipboard,StringLen($Clipboard)-StringInStr($Clipboard,"<")); Return everything after the first <

MsgBox(0,"2",$search)

$search = StringLeft($search, StringLen($search)-StringInStr($search, ">")); Finds the end of the first HTML tag

MsgBox(0,"3",$search)

$Clipboard = StringReplace($Clipboard,$search,"{TAB}")

MsgBox(0,"4",$search)

MsgBox(0,"5",$Clipboard)

ClipPut($Clipboard)

Aha.. I have unlocked it's secrets.. world domination is within my grasp...

Link to comment
Share on other sites

I get all msgboxes every time.

Running v3.2.0.1 on WinXP Pro SP2


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

It's just basic HTML source code 804,258 characters. Any method of copy File>Copy Ctrl+C just to get it into clipboard. @error is set to 0 after clipget().

Edited by JaySquared

Aha.. I have unlocked it's secrets.. world domination is within my grasp...

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