Jump to content
Sign in to follow this  
Borje

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

Recommended Posts

Borje

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.

Test.au3

Edited by Borje

Share this post


Link to post
Share on other sites
DaRam

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.

Share this post


Link to post
Share on other sites
Borje

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.

Share this post


Link to post
Share on other sites
DaRam

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.

Share this post


Link to post
Share on other sites
Borje

Thanks daRam I test this thank you.

Share this post


Link to post
Share on other sites
Borje

Ok DaRam it works thanks again.

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  

×