Jump to content

[ Solved ] Need little help after I Obfuscated a little test script


Borje
 Share

Recommended Posts

Where to start, oh, well....

You should be using Msgbox rather than InputBox for Ok, Cancel type interaction.

Beyond that, based on your code - you should be checking $sInputBoxAnswer1 value rather than @error.

What's the deal with using so many

& @CRLF & @CRLF & "  " & @CRLF & "   " & @CRLF & @CRLF & "  " & @CRLF & @CRLF & @CRLF & @CRLF

When I Obfuscated this script the cansel button not works only the OK button is there anybody

here can tell me what the problem is or perhaps I do some wrong here.

Link to comment
Share on other sites

I must have a inputbox to type in a name and some data the many @CRLF is only there for I have remove some text there is the only reason but what is happen with the buttons after I Obfuscated this little script, before I Obfuscated is working but not after.

Link to comment
Share on other sites

Try this:

Local $applicationName = "Testing of input", $sInputBoxAnswer1=0
$sInputBoxAnswer1 = InputBox ( "TEST INPUT " & $applicationName, "Your Prompt Text here", $sInputBoxAnswer1); Append your other parameters
If @error Or $sInputBoxAnswer1 = "" Then
   MsgBox(64, $applicationName, "Cancel button was pressed")
   Exit
EndIf
MsgBox(64, $applicationName, "Ok button pressed & Answer=" & $sInputBoxAnswer1)
; The rest of your code...

I must have a inputbox to type in a name and some data the many @CRLF is only there for I have remove some text there is the only reason but what is happen with the buttons after I Obfuscated this little script, before I Obfuscated is working but not after.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...