Simple HTA Project
Create a HTA file, with no external calls for other programs, with as clean code as possible,
code should be visible and easy changable in notepad.
HTA file is editable as text file. Source code should be provided.
Attached sample program how HTA Files look like, resoult should be like attached HTA File
CONTENTS that are visible on run:
17 Label fields (text, user cannot change text)
2 Text boxes( user can change text), TextBox1, TextBox2
17 Buttons with text inside Button1, Button2, Button3 and so on...
0a) When i run HTA Program it should show window with contents for user to see.
0b) It should disable maximize button, minimize button should be enabled
0c) Button1 should have text inside, blue color, bold and size 14, font Arial, and these should be done with external CSS file, only for this button. HTA File should call esternal CSS to set these specific things for Button1.
1) When i press Button1:
It should change Label1 text value to "Button1 pressed"
2) When i press Button2:
It should change Label1 text value to "Button2 pressed"
3) When i press Button3:
If textbox1 value is greater number of textbox2 value number then Label2 shoudl be "Greater!", otherwise "Lower", if equal numbers then "Equal", if no numbers then "ERROR"
4) When i press Button4:
If inside Textbox1 is text "TEST" then label4 text shoudl be "Inside is text TEST", otherwise "Something else"
5) When i press Button5:
Label5 shoudl have some random number inside
6) When i press Button6:
Label6 should have random number inside, between 1 and 10, only whole number (like 1,2,3,4,5,6,7,8,9,10)
7) When i press Button7:
Label7 should have multiplication of numbers in text box 1 and textbox2
If inside are not numbers you can allow program to crash, consider there are only numbers entered
8) When i press Button8:
Let it open one web page "[login to view URL]" in new window
9) When i press Button9:
Let it draw one full rectangular window on top of this, rectangular, like on Facebook that window for chat
with 2 buttons "SEND" and "CLOSE" inside and 1 textbox with text for user to type
When clicked on CLOSE button it shpuld close that additional window
10) When i press Button10:
it shoudl redraw this program
11) When i press Button11:
it should set textbox1 text to "abcdefghijklmn",
then it should put 5th till 8th character to textbox2
12) When i press Button12:
It should set label12 contents with todays date in form DDMMYYYY
Day day, Month month Year year year year
specific example: 13112019
13) When i press Button13:
It should set label13 contents with todays date in form DDMMYYYY
Day with dot, Month with word, Year 4digits
specific example: 13. November 2019
15) When i press Button15:
It shoudl set label15 text with contents of resoult of next caltulation:
it should create one variable and set it to value 1
then it should be for-loop
it should add number 1 to value of var untill variable is smaller than 15
then it should set that last value to label15
16) When i press Button16:
It shoudl execute some function that is setting liek this:
set value of label16 to "1"
set value of label16 to "2"
set value of label16 to "3"
jump to A if Label16 has value lower than 10, otherwise jump to B
set value of label16 to "4"
set value of label16 to "5"
set value of label16 to "6"
This case should demonstrate executing with bypassing some lines.
17) When i press Button17:
this button should change size of Label1 text size by doubling size whatever is set curretnly
this means if font size is 14 it should calculate to make it double size and display new look
- IT SHOULD NOT USE ANY EXTERNAL CALLS FOR jQuery or SUPPORT FROM EXTERNAL WEBPAGES
- CODE SHOULD BE VERY CLEAN, READY FOR CHANGES
Looking forward to cooperate with more similar simple projects.