Jump to content
UBot Underground

Recommended Posts

Looking to upload a spintax file and have it spit out a spun (readable) file.

 

Here is my code:

 

 clear all data
ui open file("Upload File",#uploaded)
set(#read file,$read file(#uploaded),"Global")
add item to list(%spin,$spin(#read file),"Delete","Global")
ui button("SPIN") {
    save to file($replace regular expression(#uploaded,"\\.","result."),%spin)
    alert("Complete")
}

 

What I am getting is every variation possible.  What I want is one variation or at the most five.  What am I missing/messed up?

 

Thanks so much in advance!

 

Edit: Now it doesn't work at all.  Any help would be greatly appreciated.  

Edited by nimbuscenter
Link to post
Share on other sites

try

ui open file("Upload File",#uploaded)
set(#read file,$read file(#uploaded),"Global")
ui button("SPIN") {
    save to file($replace regular expression(#uploaded,"\\.","result."),$spin(#read file))
    alert("Complete")
}
  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...