JaySquared Posted August 16, 2006 Share Posted August 16, 2006 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 More sharing options...
BigDod Posted August 16, 2006 Share Posted August 16, 2006 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 More sharing options...
ragnarok775 Posted August 16, 2006 Share Posted August 16, 2006 I get all mesage boxes everytime aswell Link to comment Share on other sites More sharing options...
vim Posted August 16, 2006 Share Posted August 16, 2006 I get all msgboxes every time.Running v3.2.0.1 on WinXP Pro SP2I get the same as above.The next question is how and what are you copying to clipboard? Link to comment Share on other sites More sharing options...
JaySquared Posted August 16, 2006 Author Share Posted August 16, 2006 (edited) 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 August 16, 2006 by JaySquared Aha.. I have unlocked it's secrets.. world domination is within my grasp... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now