Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

How to beautify the way my code works?

$
0
0
Herro,

Is there some way I can beautify the way I do this, with like buttons, themes and stuff? Instead of having it being like this (code below):


Code:
StatusDlg.Show(MB_ICONNONE, false);

run = true

while ( run == true ) do

result_1 = Dialog.Input("Which Warcraft do you want to install? 1.26 or 1.27 (enter exact)", "Answer", "", MB_ICONQUESTION);

if ( String.ToNumber(result_1) == 1.26 ) then

HTTP.DownloadSecure("https://mydomain.com/file_1.exe", "C:\\Users\\akeno\\Desktop\\Setup Factory Output\\HookSuccess.rar", MODE_BINARY, 20, 443, nil, nil, BytesRead);
run = false

end

if ( String.ToNumber(result_1) == 1.27 ) then

HTTP.DownloadSecure("https://mydomain.com/file_2.exe", "C:\\Users\\akeno\\Desktop\\Setup Factory Output\\HookSuccess.rar", MODE_BINARY, 20, 443, nil, nil, BytesRead);
run = false

end

if ( String.ToNumber(result_1) ~= 1.26 and String.ToNumber(result_1) ~= 1.27 ) then

Dialog.Message("Error.", "Your input was not 1.26 or 1.27. The input needs to be exact matching. Try again.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

end

if ( run == false ) then

result_2 = Dialog.Input("Enter G if you wish to install again, else just click Cancel.", "Answer", "", MB_ICONQUESTION);

end

if ( result_2 == 'G' ) then

run = true

end

end
And while we are at it, how can I make this window more "beautiful" too? Like customize it, adding images and stuff.
Click image for larger version

Name:	ocr (369).png
Views:	1
Size:	1.8 KB
ID:	305486

Thanks in advanceee ~

Viewing all articles
Browse latest Browse all 2105

Latest Images

Trending Articles



Latest Images