Jump to content

Automatic Browser, why it exits? why fields are not completed?


cloferba
 Share

Recommended Posts

Because too many people has chrome, others have IE and others have Firefox as default browser, i made an app to load a webpage, after it has been load, it opens another, and then it press a key to insert a text after the page loads..

the problem is that first, I dont know why the program exits

and second, i dont know why the name and email field are not completed with the values i set to Send

#include <GUIConstants.au3>
#include <IE.au3>
#include <WindowsConstants.au3>
#include <ProgressConstants.au3>
HotKeySet("{ESC}", "ExitApp")
Func ExitApp()
    Exit
EndFunc
; http://www.rsforums.org/forums/programming/10337-autoit-simple-web-browser.html
$GUI = GUICreate("Browser", 1024, 700, -1, -1, $WS_MAXIMIZE)
$object = ObjCreate("Shell.Explorer.2")
$object_ctrl = GUICtrlCreateObj($object, 1, 1, 1024, 700)
$back_button = GUICtrlCreateButton("Atras", 16, 710, 50, 25, 0) ; Creats Back GUI
$forward_button = GUICtrlCreateButton("Adelante", 66, 710, 50, 25, 0) ; Creates Forward GUI
$refresh_button = GUICtrlCreateButton("Refresh", 116, 710, 50, 25, 0) ; Creates Refresh GUI
GUISetState()
;$oIE = _IECreate ("http://www.puntk.com")
_IENavigate ($Object, "http://wprocks.com/demo/")
_IENavigate ($Object, "http://wprocks.com/demo/contact")
_IELoadWait($Object)  
Send("{TAB 9}")
Send("This is my name")
Send("{TAB}")
Send("This is my email")

I appreciate any help :graduated:

PD: i made the browser using this browser base at this url: http://www.rsforums.org/forums/programming/10337-autoit-simple-web-browser.html

Link to comment
Share on other sites

too many examples are old and they doesnt work

also the help is no so easy to understand

Everything is easy but you need time and ambitions.

If you have problem I can fix some doesn't working script from help file or explain you something.

Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font]

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...