Sign in to follow this  
Followers 0
JaySquared

MsgBoxs not appearing 1st time around

5 posts in this topic

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

Share this post


Link to post
Share on other sites



I get all msgboxes every time.

Running v3.2.0.1 on WinXP Pro SP2



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

I get all mesage boxes everytime aswell

Share this post


Link to post
Share on other sites

I get all msgboxes every time.

Running v3.2.0.1 on WinXP Pro SP2

I get the same as above.

The next question is how and what are you copying to clipboard?

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by JaySquared

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

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