• 0

[FINAL] Gmail: The App


Question

Gmail: The App

gmailhta.jpg

This is just a very simple HTA (HTML Application) I made. Put it in your QuickLaunch or desktop and you can launch Gmail at anytime. It's like launching a real app, like Outlook, only faster. You can download it here: gmail.hta or if you're want to play it safe and build one yourself, here's the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
 ?<head>
 ? ?<title>Gmail</title>
 ? ?<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 ? ?<object id="pFileObject" classid="clsid:0D43FE01-F093-11CF-8940-00A0C9054228"></object>

 ? ?<hta:application id="oGmail" 
 ? ? ?applicationname="Gmail" 
 ? ? ?minimizebutton="yes"
 ? ? ?maximizebutton="yes"
 ? ? ?icon="http://gmail.google.com/favicon.ico" ?
 ? ? ?windowstate="normal" />
 ? ? ?
 ? ?<base target="contentframe" />

<style type="text/css">
<!-- 
html {
	overflow: hidden;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

iframe {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	width:789px;
	height:551px;
	position:absolute;
	left:0px; 
	top:0px;

	overflow:hidden; 

	background-color: transparent;
}
-->
</style>
 ?</head>

 ?<body onload="window.resizeTo(800,580)" scroll="no">

<iframe style="z-index:0;" name="contentframe" id="contentframe" src="https://gmail.google.com/gmail" application="no" />

 ?</body>
</html>

Just copy and paste that code into Notepad, and save as gmail.hta, or whatever you'd like. As long as it has the .hta extension.

READ BEFORE USING: Because of IE's higher security in HTAs, you must set http://gmail.google.com/ as "Always Allow" in Internet Options Privacy tab (Sites button). Otherwise cookies won't work.

Edited by GodsHand
Link to comment
https://www.neowin.net/forum/topic/183337-final-gmail-the-app/
Share on other sites

Recommended Posts

  • 0
lolz...Did you do this?

For SP2 users, because of IE's higher security, you must set http://gmail.google.com/ as "Always Allow" in Internet Options Privacy tab (Sites button). Otherwise cookies won't work.

I'm not a SP2 user (yet) but also had do that, otherwise it would say cookies are not enabled.

I have every patch available through Windows Update 4 for WXP, though.

  • 0
I'm not a SP2 user (yet) but also had do that, otherwise it would say cookies are not enabled.

I have every patch available through Windows Update 4 for WXP, though.

Whoops, My bad :blush:

I wish there was a way so you could resize the window and have the iframe resize with it, but I can't figure it out.

I think I figured a way to resize it :) Worked for me. If you modify the width and height dimensions you can get it to what you want. Remember to maximize applications windows after launching it.

Good Program man (Y)(Y)

Edited by Ryan92
  • 0
Hmmm, when I open it, it just opens up Notepad. Bleh.

I had that to at fist yust do open with... then open it with C:\Windows\system32\mshta.exe aka Microsoft ® HTML Application host

I also had the cookies are not enabled thing in sp1 but if you do the same thing as he sad you must do in SP2 its all good

:D

  • 0

Hey. Good Job! but.. unforunatly it doesnt work for me. It said the "cookies" thing before but then i added it to "Always Allow" but now it says i need to allow Javascript or something.

EDIT: FORGOT I JUST FORMATTED COMPUTER, SO I DIDNT INSTALL THE NEW JAVA. lol :p

  • 0

Man this is really cool! So simple yet EXACTLY what I wanted :)

btw I had the cookie error, it is because gmail uses third party cookies that contain user identifiable info just add it to the whitelist and it will work fine :)

(Y) to this app (dunno if you can call it an app actually, either way it is wicked!)

  • 0

Thanks for the replies! I just keep it open all the time. Very convenient.

I don't think there's a way to minimize HTA apps to the tray, unless you have a third party app that does that specifically.

And yeah, if you want to change the size of the window, go right ahead! It's all basic HTML, anyone can figure it out.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Give Elon Musk, who illegally had access to citizen's data, even more of your data ! Top idea !
    • An oldie but a goodie
    • I did that to a work colleague many years ago when he left it logged in. Unfortunately I was out of the office the next day, and even the IT department was stumped lol. Got a bit of a bollocking when I got back into the office, but, by god, it was worth it.
    • 7-Zip 26.02 by Razvan Serea 7-Zip is a open source file archiver with a high compression ratio. The program supports 7z, XZ, BZIP2, GZIP, TAR, ZIP, WIM, ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR, Z. Most of the source code is under the GNU LGPL license. The unRAR code is under a mixed license: GNU LGPL + unRAR restrictions. Check license information here: 7-Zip license. You can use 7-Zip on any computer, including a computer in a commercial organization. You don't need to register or pay for 7-Zip. The main features of 7-Zip are: High compression ratio in 7z format with LZMA compression Compression ratio for ZIP and GZIP formats: 2-10 % better than the ratio provided by PKZip and WinZip Strong AES-256 encryption in 7z and ZIP formats Self-extracting capability for 7z format Integration with Windows Shell Powerful File Manager Powerful command line version Plugin for FAR Manager Localizations for 74 languages 7-Zip 26.02 changelog: Some bugs and vulnerabilities were fixed. Download: 7-Zip 26.02 (64-bit) | 1.6 MB (Open Source) Download: 7-Zip 26.02 (32-bit) | 1.3 MB Download: 7-Zip 26.02 (ARM64) | 1.5 MB View: 7-Zip Website | Release Notes | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      xvvxcvv earned a badge
      Week One Done
    • One Month Later
      xvvxcvv earned a badge
      One Month Later
    • Enthusiast
      Xonos went up a rank
      Enthusiast
    • Conversation Starter
      Admir earned a badge
      Conversation Starter
    • First Post
      The_Focal_Point earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      400
    2. 2
      +Edouard
      170
    3. 3
      PsYcHoKiLLa
      127
    4. 4
      neufuse
      69
    5. 5
      Xenon
      66
  • Tell a friend

    Love Neowin? Tell a friend!