Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Put only part of text recieved into str
#2
Code:
Copy      Help
str a.getwintext(id(1001 win("Crazy Browser" "TFrmMain")))
out a;;http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendID=1015036
str b=find(a "ID=")
out b;;71, how many characters over what i need in str 'a' is.
lpstr c=a
str d
d.get(c 71)
out d;;ID=101503640 <---the text I needed grabbed from str a
str e="http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_confirm&statusCD=2&friend";; text I need to add to str 'd'
str f
f.from(e d)
out f;;final result='http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_confirm&statusCD=2&ID=101503640'
f.setwintext(id(1001 win("Crazy Browser" "TFrmMain")))
act id(1001 win("Crazy Browser" "TFrmMain"))
key Y;; pretty much pressing the 'GO' button


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)