From d09495e545fecf9bed7b110115c7c844a8ed0d39 Mon Sep 17 00:00:00 2001
From: lempamo
Date: Fri, 28 Apr 2017 13:31:20 -0400
Subject: FIXED IE4 padams
---
TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs | 32 +++++++++++++++------
.../OS/Win95/Win95Apps/WinClassicIE4.resx | 11 +++++--
TimeHACK.Main/Resources/IE4/ie4start.html | 10 +++++--
TimeHACK.Main/Resources/IE4/padams.html | 3 +-
TimeHACK.Main/bin/Release/TimeHACK.application | 4 +--
TimeHACK.Main/bin/Release/TimeHACK.exe | Bin 6236160 -> 6236672 bytes
TimeHACK.Main/bin/Release/TimeHACK.exe.manifest | 12 ++++----
TimeHACK.Main/bin/Release/TimeHACK.pdb | Bin 142848 -> 144896 bytes
.../bin/Release/TimeHACK.vshost.application | 4 +--
.../bin/Release/TimeHACK.vshost.exe.manifest | 12 ++++----
TimeHACK.Main/bin/Release/app.publish/TimeHACK.exe | Bin 6236160 -> 6236672 bytes
.../TimeHACK.Main.csproj.GenerateResource.Cache | Bin 4932 -> 4932 bytes
...HACK.OS.Win95.Win95Apps.WinClassicIE4.resources | Bin 9548 -> 9720 bytes
TimeHACK.Main/obj/Release/TimeHACK.application | 4 +--
TimeHACK.Main/obj/Release/TimeHACK.exe | Bin 6236160 -> 6236672 bytes
TimeHACK.Main/obj/Release/TimeHACK.exe.manifest | 12 ++++----
TimeHACK.Main/obj/Release/TimeHACK.pdb | Bin 142848 -> 144896 bytes
17 files changed, 67 insertions(+), 37 deletions(-)
(limited to 'TimeHACK.Main')
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
index 2313ded..2b587d2 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
@@ -14,11 +14,15 @@ namespace TimeHACK.OS.Win95.Win95Apps
public int historylocation = 0;
public HtmlDocument currentsite;
+ private Timer loadplz = new Timer();
public WinClassicIE4()
{
InitializeComponent();
+ loadplz.Tick += new EventHandler(loadplz_Tick);
+ loadplz.Interval = 10;
}
+
private void WinClassicIE4_Load(object sender, EventArgs e)
{
browsinghistory.Capacity = 99;
@@ -188,15 +192,27 @@ namespace TimeHACK.OS.Win95.Win95Apps
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
- switch (addressbar.Text)
+ loadplz.Start();
+ }
+
+ private void loadplz_Tick(object sender, EventArgs e)
+ {
+ try
{
- case "www.microsoft.com/internetexplorer4/welcome":
- webBrowser1.Document.GetElementById("padams").Click += new HtmlElementEventHandler(padams_LinkClicked);
- break;
- case "www.12padams.com":
- webBrowser1.Document.GetElementById("wc_b").Click += new HtmlElementEventHandler(WCDownloadButton_Click);
- webBrowser1.Document.GetElementById("distort").Style += "visibility:hidden;";
- break;
+ switch (currentsite.Title)
+ {
+ case "IE4START":
+ webBrowser1.Document.GetElementById("padams").Click += new HtmlElementEventHandler(padams_LinkClicked);
+ break;
+ case "12PADAMS":
+ webBrowser1.Document.GetElementById("wc_b").Click += new HtmlElementEventHandler(WCDownloadButton_Click);
+ webBrowser1.Document.GetElementById("distort").Style += "visibility:hidden;";
+ break;
+ }
+ loadplz.Stop();
+ } catch
+ {
+
}
}
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx
index 6848c3f..dd84e1b 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx
@@ -202,6 +202,7 @@ So Please enjoy Using this amzing software and show the world what your made of.
<html>
<head>
+ <title>IE4START</title>
<style>
body {
font-family: "Microsoft Sans Serif";
@@ -223,6 +224,11 @@ So Please enjoy Using this amzing software and show the world what your made of.
p.end {
font-size: 9.75pt;
}
+ a {
+ color: blue;
+ text-decoration: underline;
+ cursor: hand;
+ }
</style>
</head>
<body>
@@ -233,8 +239,8 @@ Just type an address in the location bar above and then press go.<br>
Instantly you will be taken to the webpage of your choosing.<br>
Where do you want to go today?</p>
<h2>Here are some sites you may want to visit.</h2>
- <a id="google" href="google">www.google.com</a><br>
- <a id="padams" href="12padams">www.12padams.com</a>
+ <a id="google">www.google.com</a><br>
+ <a id="padams">www.12padams.com</a>
<p class="end">Where do you want to go today?</p>
</body>
</html>
@@ -245,6 +251,7 @@ Where do you want to go today?</p>
<html>
<head>
+ <title>12PADAMS</title>
<style>
body {
font-family: "Microsoft Sans Serif";
diff --git a/TimeHACK.Main/Resources/IE4/ie4start.html b/TimeHACK.Main/Resources/IE4/ie4start.html
index 6a0f5d4..50b0ac7 100644
--- a/TimeHACK.Main/Resources/IE4/ie4start.html
+++ b/TimeHACK.Main/Resources/IE4/ie4start.html
@@ -1,5 +1,6 @@
+ IE4START
@@ -31,8 +37,8 @@ Just type an address in the location bar above and then press go.
Instantly you will be taken to the webpage of your choosing.
Where do you want to go today?
Here are some sites you may want to visit.
- www.google.com
- www.12padams.com
+ www.google.com
+ www.12padams.com
Where do you want to go today?
\ No newline at end of file
diff --git a/TimeHACK.Main/Resources/IE4/padams.html b/TimeHACK.Main/Resources/IE4/padams.html
index 9135372..d8846bf 100644
--- a/TimeHACK.Main/Resources/IE4/padams.html
+++ b/TimeHACK.Main/Resources/IE4/padams.html
@@ -1,5 +1,6 @@
+ 12PADAMS