Jump to content

Google Apps Tabbrowser


realkiller
 Share

Recommended Posts

i made this google tab browser so for school, it's kinda handy for making apointments etc.etc.

It has still problems with cookies don't know how to solve this problem

#NoTrayIcon
#include <GUIConstants.au3>
#include <IE.au3>
_IEErrorHandlerRegister ()
SplashTextOn("Loading", "Loading .", 200 ,40,-1,-1,1)
GUICreate("Google Tab Browser",1024,700)
GUISetFont(9, 300)
$googleusername="username1234"
$googlePassword="pasword1234"
$tab=GUICtrlCreateTab (10,10, 1000,677)

;tab Google Mail
$tab0=GUICtrlCreateTabitem ("Mail")
$oIE = _IECreateEmbedded ()
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 35, 998, 649)
_IENavigate ($oIE, "http://mail.google.com/")
$o_form = _IEFormGetObjByName ($oIE, "gaia_loginform")
$o_login = _IEFormElementGetObjByName ($o_form, "Email")
$o_password = _IEFormElementGetObjByName ($o_form, "Passwd")
$o_signin = _IEFormElementGetObjByName ($o_form, "signIn")
_IEFormElementSetValue ($o_login, $googleusername)
_IEFormElementSetValue ($o_password, $googlePassword)
_IEAction ($o_signin, "click")
SplashOff()



SplashTextOn("Loading", "Loading ..", 200 ,40,-1,-1,1)
;tab Google Agenda
$tab1=GUICtrlCreateTabitem ( "Agenda")
$oIE1 = _IECreateEmbedded ()
$GUIActiveX = GUICtrlCreateObj($oIE1, 10, 35, 998, 649)
_IENavigate ($oIE1, "http://www.google.com/calendar/?hl=nl")
$o_form = _IEFormGetObjByName ($oIE1, "gaia_loginform")
$o_login = _IEFormElementGetObjByName ($o_form, "Email")
$o_password = _IEFormElementGetObjByName ($o_form, "Passwd")
$o_signin = _IEFormElementGetObjByName ($o_form, "null")
_IEFormElementSetValue ($o_login, $googleusername)
_IEFormElementSetValue ($o_password, $googlePassword)
_IEAction ($o_signin, "click")
SplashOff()

SplashTextOn("Loading", "Loading ...", 200 ,40,-1,-1,1)
;tab Google documenten
$tab2=GUICtrlCreateTabitem ("Documenten")
$oIE2 = _IECreateEmbedded ()
$GUIActiveX = GUICtrlCreateObj($oIE2, 10, 35, 998, 649)
_IENavigate ($oIE2, "http://docs.google.com/")
$o_form = _IEFormGetObjByName ($oIE2, "gaia_loginform")
$o_login = _IEFormElementGetObjByName ($o_form, "Email")
$o_password = _IEFormElementGetObjByName ($o_form, "Passwd")
$o_signin = _IEFormElementGetObjByName ($o_form, "signIn")
_IEFormElementSetValue ($o_login, $googleusername)
_IEFormElementSetValue ($o_password, $googlePassword)
_IEAction ($o_signin, "click")

SplashOff()


GUICtrlSetState(-1,$GUI_SHOW)
GUISetState ()


While 1
    $msg = GUIGetMsg()

    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
   
Wend
Edited by realkiller
Link to comment
Share on other sites

  • 5 months later...

It has still problems with cookies don't know how to solve this problem

All browser instances that run from the same iexplore.exe process share the same cookie context. Instances in tabs in the same browser shell must share the same iexplore.exe, so there is no way for you to avoid this in the design you have.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...