Jump to content
Sign in to follow this  
Agres

Show a Webpage via GUI

Recommended Posts

Hi i want to if it is possible to show a simply webpage like www.google.com

Inside the GUI

and when its possible how can i make it ?

mfg Agres

Share this post


Link to post
Share on other sites

Check this thread: AutoIt3's future: Embedded ActiveX !

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

ok thats that what i want do do :( but i now i have antother problem :/

C:\Dokumente und Einstellungen\Agres\Desktop\DWH-Browser\test.au3(3,34) : ERROR: ObjCreate(): undefined function.

$oForm = ObjCreate("Forms.Form.1")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Dokumente und Einstellungen\Agres\Desktop\DWH-Browser\test.au3(4,34) : ERROR: ObjEvent(): undefined function.

$oFormEvt=ObjEvent($oForm,"Form_")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Dokumente und Einstellungen\Agres\Desktop\DWH-Browser\test.au3(57,64) : ERROR: GUICtrlCreateActiveX(): undefined function.

$GUI_ActiveX=GUICtrlCreateActiveX ( $oForm, 10, 10 , 200 , 200 )

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Dokumente und Einstellungen\Agres\Desktop\DWH-Browser\test.au3 - 3 error(s), 0 warning(s)

this are the errors i got but dont really know why !

add: im new in autoit ^^

mfg Agres

Share this post


Link to post
Share on other sites

ERROR: ObjCreate(): undefined function.

you need the beta of AutoIT. See download section....

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

>Running: (3.1.1.44):C:\Programme\AutoIt3\autoit3.exe "C:\Dokumente und Einstellungen\CrazyCool.CRAZYC\Desktop\DWH-Browser\browser.au3"

C:\Dokumente und Einstellungen\CrazyCool.CRAZYC\Desktop\DWH-Browser\browser.au3 (66) : ==> Unknown function name.:

$GUIActiveX = GUICtrlCreateActiveX( $oIE, 10, 50 , 910 , 690)

$GUIActiveX = ^ ERROR

Again the same error :/ i don`t get the $GuiActiveX running

anyone can help ?

Share this post


Link to post
Share on other sites

$GUIActiveX = GUICtrlCreateActiveX( $oIE, 10, 50 , 910 , 690)

$GUIActiveX = ^ ERROR

strange. It did work with a previous beta. Now, I get the same error. I think you should send SvenP a message and ask for help.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

strange. It did work with a previous beta. Now, I get the same error. I think you should  send SvenP a message and ask for help.

Cheers

Kurt

<{POST_SNAPBACK}>

....This code actually works in my 'alpha' version of AutoIt3: Embedded ActiveX controls in GUI's WITHOUT the need of external DLL's....

Share this post


Link to post
Share on other sites

So This is de Code that iv got for now,..

How can i get the a "browserwindow" inside the Gui?

This line has to be the browser window

$Edit_2 = GuiCtrlCreateEdit("grmls", 10, 50, 910, 690)

#include <GuiConstants.au3>

GuiCreate("DWH - Browser ................................by Agres", 1020, 748,(@DesktopWidth-1020)/2, (@DesktopHeight-748)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)

$filemenu=GUICtrlCreateMenu("Datei")
$passwords=GUICtrlCreatemenu("Passwörter",$filemenu)
$users_iw=GUICtrlCreateMenuItem("Icewars-User",$passwords)
$passwords_iw=GUICtrlCreateMenuItem("Icewars-Passwort",$passwords)
$users_sdb=GUICtrlCreateMenuItem("SDB-User",$passwords)
$passwords_sdb=GUICtrlCreateMenuItem("SDB-Passwort",$passwords)
$einstell=GUICtrlCreateMenuItem("Einstellungen",$filemenu)
$ExitMenu=GUICtrlCreateMenuItem("Exit",$filemenu)
GUICtrlCreateMenuItem("",$filemenu)

$Browser = GuiCtrlCreateGroup("Browser", 0, 30, 930, 720)
$Edit_2 = GuiCtrlCreateEdit("grmls", 10, 50, 910, 690)
$Button_IW = GuiCtrlCreateButton("IceWars", 10, 10, 90, 20)
$Button_4 = GuiCtrlCreateButton("SitterDB", 120, 10, 90, 20)
$Button_5 = GuiCtrlCreateButton("Forum", 230, 10, 90, 20)
$Button_6 = GuiCtrlCreateButton("Wecker", 340, 10, 90, 20)
$Button_7 = GuiCtrlCreateButton("Button8", 450, 10, 90, 20)
$Button_8 = GuiCtrlCreateButton("Button9", 560, 10, 90, 20)
$Button_9 = GuiCtrlCreateButton("Button10", 670, 10, 90, 20)
$List_10 = GuiCtrlCreateList("gala", 930, 40, 80, 695)
$Label_11 = GuiCtrlCreateLabel("GalaxyScann", 930, 10, 70, 20)

;$oIE = ObjCreate("Shell.Explorer.2")
;$GUIActiveX = GUICtrlCreateActiveX( $oIE, 10, 50 , 910 , 690)

GuiSetState()

;http://www.icewars.de/index.php?action=login&name=$user_iw&pswd=$password_iw&submit=1
;$oIE.navigate("auto:blank")
While 1

;User und Passwort für die Sitterdatenbank
$user_sdb = IniRead("dwh.ini", "Login", "User_SDB","")
$password_sdb = IniRead("dwh.ini", "Login", "Password_SDB","")

;User und Passwort für IceWars
$user_iw = IniRead("dwh.ini", "Login", "User_IW", "")
$password_iw = IniRead ("dwh.ini", "Login", "Password_IW", "")

    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    
    Case $msg = $ExitMenu
        ExitLoop
    
    Case $msg = $users_iw
        $user_iw = inputbox ("Benutzername", "Bitte Benutzernamen Eingeben!",$user_iw)
        IniWrite ( "dwh.ini", "Login", "User_IW", $user_iw)
        
    Case $msg = $passwords_iw
        
        $password_iw = inputbox ("Passwort", "Bitte Passwort eingeben!", $password_iw, "*")
        IniWrite ( "dwh.ini", "Login", "Password_IW", $password_iw)
    
    Case $msg = $users_sdb
        $user_sdb = inputbox ("Benutzername", "Bitte Benutzernamen Eingeben!",$user_sdb)
        IniWrite ( "dwh.ini", "Login", "User_SDB", $user_sdb)
    
    Case $msg = $passwords_sdb
        $password_sdb = inputbox ("Passwort", "Bitte Passwort eingeben!", $password_sdb, "*")
        IniWrite ( "dwh.ini", "Login", "Password_SDB", $password_sdb)
        
        
        
        
        
    EndSelect
WEnd
Exit

Share this post


Link to post
Share on other sites

How can i get the a "browserwindow" inside the Gui?

Erm... there is a "minor" error in the script....

$user_iw = IniRead("dwh.ini", "Login", "User_IW", "")
Case $msg = $users_iw

This makes no sense!! You can only select messages of GUI controls with GuiGetmsg().

Case $msg = $Button_7
   ; DO something here

Have a look at some examples in the forum to get an idea how GUI programming works.

BTW: You should not read the INI file within the while loop. There is no need for this, as the values will most probably not change, so it is sufficient to read it once.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...