diff options
| author | lempamo <[email protected]> | 2017-04-28 13:31:20 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-04-28 13:31:20 -0400 |
| commit | d09495e545fecf9bed7b110115c7c844a8ed0d39 (patch) | |
| tree | 2dd9965cdb8dd787120bc41c63f700f29154cdd0 /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs | |
| parent | 5cc3fdda9a2e219f21803bf5dedd810ec572fec7 (diff) | |
| download | histacom2-d09495e545fecf9bed7b110115c7c844a8ed0d39.tar.gz histacom2-d09495e545fecf9bed7b110115c7c844a8ed0d39.tar.bz2 histacom2-d09495e545fecf9bed7b110115c7c844a8ed0d39.zip | |
FIXED IE4 padams
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs | 32 |
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 + { + } } |
