Jump to content
UBot Underground

Qualifying UI Text Box Entry not working


Recommended Posts

I'm trying to verify that a text box entry has been made using this code:

I've also tried:

if($comparison(#outputFolder, """", ""))

 

 

set(#outputFolder, "", "Global")

ui text box("Output Folder Name", #outputFolder)

if($comparison(#outputFolder, "", "")) {

then {

run javascript("alert(\"Please enter the Output Folder Name\")")

}

else {

set(#outputPath, "{$special folder("Desktop")}\\Output\\", "Global")

create folder(#outputPath, #outputFolder)

set(#outputPath, "{#outputPath}{#outputFolder}\\", "Global")

}

}

 

If I don't put a value in the text box I expect the alert to fire - but ir's not happening. Any ideas on how to get this to function?

 

Thanks,

 

Dutch

Link to post
Share on other sites

Two things to note:

 

1. alerts are disabled by default right now to prevent them from stopping a bot.

2. your $comparison looks like its missing the 2nd parameter which should be "="

 

Here's a screenshot of how it should look: http://screencast.com/t/RebGiVnfRda

 

if($comparison(#outputFolder, "=", "")) {
   then {
   }
   else {
   }
}

Link to post
Share on other sites

My bad! - I changed the code when I pasted it into the original post and didn't think it was functioning because I didn't know Javascript Alerts aren't functioning. Is there a list somewhere of disabled components and features? It's pretty time consuming to try stuff only to discover that it's disabled and not currently functional.

 

With the proper qualifier of "="

Two things to note:

 

1. alerts are disabled by default right now to prevent them from stopping a bot.

2. your $comparison looks like its missing the 2nd parameter which should be "="

 

Here's a screenshot of how it should look: http://screencast.com/t/RebGiVnfRda

 

if($comparison(#outputFolder, "=", "")) {
   then {
   }
   else {
   }
}

Link to post
Share on other sites

My bad! - I changed the code when I pasted it into the original post and didn't think it was functioning because I didn't know Javascript Alerts aren't functioning. Is there a list somewhere of disabled components and features? It's pretty time consuming to try stuff only to discover that it's disabled and not currently functional.

 

With the proper qualifier of "="

 

Any type of popups from the browser are currently disabled, such as browser popups, javascript alerts, javascript confirms, and javascript prompts.

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