aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-04-29 13:29:59 +0100
committerGitHub <[email protected]>2017-04-29 13:29:59 +0100
commit0fd0391263ccac953fca43d5476410f4584446eb (patch)
tree5577d2d1c42d2243341034c6a1536f225fc6655b /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
parent2c5d04a7708f5edd6d792c6938867a558cb955f8 (diff)
parenta6bece6c3b5b8fc3c9cd17ae2cbe135e2025ab44 (diff)
downloadhistacom2-0fd0391263ccac953fca43d5476410f4584446eb.tar.gz
histacom2-0fd0391263ccac953fca43d5476410f4584446eb.tar.bz2
histacom2-0fd0391263ccac953fca43d5476410f4584446eb.zip
Merge branch 'master' into master
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs32
1 files changed, 24 insertions, 8 deletions
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
+ {
+
}
}