Webbrowserelement für User unzugänglich machen ?

  • Hey ^^

    Also, mein Problem ist folgendes: Ich habe in nem GUI ein Webbrowserelement,
    erstellt mit

    _IECreate_Embedded()

    Jetzt möchte ich aber, dass da nicht vom User drin rumgepfuscht werden kann ;)
    Trotzdem soll man das aber noch sehen können, um einen Überblick zu behalten ^^

    Ich habs schon mit _IEPropertySet( $oIE, "contenteditable", False ) probiert,
    schien für einen Moment funktioniert zu haben,
    doch nach dem nächsten _IENavigate konnte ich dadrin wieder Unsinn treiben ;)
    Ich hab dann versucht, nach jedem _IENavigate das wieder auf 'unantastbar' zu
    schalten, hat aber nicht funktioniert :P

    Wahrscheinlich seh ich wieder den Wald vor lauter Bäumen nicht, aber... ^^

    wär cool wenn mir jemand helfen könnte ^^

    Noels =)

    There are only 10 types of people in the world:
    Those who understand binary - and those who don't.

  • Nope, das war nicht die richtige Lösung x)

    Er brauch jz länger zum Seite-aufbauen und navigieren...
    aber ich kann trotzdem wild drin rumklix0rn ;)

    Wär auch zu einfach gewesen ;)

    Noels =)

    There are only 10 types of people in the world:
    Those who understand binary - and those who don't.

  • Zitat

    Original von th.meger
    Hi,

    vielleicht

    GUISetState(@SW_DISABLE , $1)

    So long,

    Mega


    musst doch nicht die ganze gui disablen!! reicht wenn das element disabled wird...
    GUICtrlSetState(-1,$GUI_DISABLE)

    snoozer

  • Da hat er sich garantiert bloß vertan ;)
    Ich habs schon als GUICtrlSetState( -1, @SW_DISABLE )
    aufgefasst ^^

    Ansonsten würd doch auch garnichts mehr gehen, oder ?


    Noels =)

    There are only 10 types of people in the world:
    Those who understand binary - and those who don't.

  • asooo xD

    das hab ich ganz überlesen, dass das auf einma
    nichtmehr @SW_DISABLE sondern $GUI_DISABLE ist..

    Iwie check ich noch nich so ganz, wann man was verwendet ;)
    Ma testen ^^

    Noels =)

    There are only 10 types of people in the world:
    Those who understand binary - and those who don't.

  • Funzt aber trotzdem nicht ... =(

    Ich kann immernoch drin rum klicken ect..

    Nils =)

    There are only 10 types of people in the world:
    Those who understand binary - and those who don't.

  • _MouseTrap ?
    Nie gehört ^^

    Hält das die Maus von einem bestimmten Bereich fern oder
    wie... ? Naja ich teste mal ^^
    Danke =)


    Nils =)

    There are only 10 types of people in the world:
    Those who understand binary - and those who don't.

  • _MouseTrap
    Confine the Mouse Cursor to specified coords.

    Ich weiß zwar nicht, was 'confine' bedeutet, aber es hört sich so an,
    als würde ich die Maus an einen bestimmten Bereich festhalten.
    --> geht aber auch nicht, das Script soll größtenteils im Hintergrund laufen.
    Und ja, ich möchte das Webelement trotzdem behalten ^^


    Nils =)

    There are only 10 types of people in the world:
    Those who understand binary - and those who don't.

  • Ich weiß es nicht.
    Ich denke mal, dann kann man den Bereich auch nicht
    erreichen, wenn das Script minimiert ist, oder ?
    Und das wär schlecht ;)


    Nils =)

    There are only 10 types of people in the world:
    Those who understand binary - and those who don't.

  • zeig bitte dein script bei mir gehts wunderbar^^
    hier ein beispielscript(gemodded aus der hilfe):

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #include <IE.au3>

    [/autoit] [autoit][/autoit] [autoit]

    _IEErrorHandlerRegister ()

    [/autoit] [autoit][/autoit] [autoit]

    $oIE = _IECreateEmbedded ()
    GUICreate("Embedded Web control Test", 640, 580, _
    (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
    $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
    $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
    GUICtrlSetState(-1,$GUI_DISABLE);hier das wichtigste!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    $GUI_Button_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30)
    $GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30)
    $GUI_Button_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30)
    $GUI_Button_Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30)

    [/autoit] [autoit][/autoit] [autoit]

    GUISetState() ;Show GUI

    [/autoit] [autoit][/autoit] [autoit]

    _IENavigate ($oIE, "http://www.autoitscript.com")

    [/autoit] [autoit][/autoit] [autoit]

    ; Waiting for user to close the window
    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
    ExitLoop
    Case $msg = $GUI_Button_Home
    _IENavigate ($oIE, "http://www.autoitscript.com")
    Case $msg = $GUI_Button_Back
    _IEAction ($oIE, "back")
    Case $msg = $GUI_Button_Forward
    _IEAction ($oIE, "forward")
    Case $msg = $GUI_Button_Stop
    _IEAction ($oIE, "stop")
    EndSelect
    WEnd

    [/autoit] [autoit][/autoit] [autoit]

    GUIDelete()

    [/autoit] [autoit][/autoit] [autoit]

    Exit

    [/autoit]
  • Ich teste das gleich nochmal ^^

    Öhm..
    Ist _IEErrorHandlerRegister von Bedeutung ? ^^
    Das hab ich nämlich nicht... :rolleyes:

    Nils =)


    Edit: Sicher dass es bei dir Einwandfrei funzt ? Bei mir sagt Scite jz:
    C:\PROGRA~1\AutoIt3\Include\IE.au3 (267) : ==> The requested action with this object has failed.:
    $o_object.navigate ($s_Url)
    $o_object.navigate ($s_Url)^ ERROR

    -.-

    There are only 10 types of people in the world:
    Those who understand binary - and those who don't.

    Einmal editiert, zuletzt von noels (3. Juni 2007 um 21:57)

  • Zitat

    Original von noels
    Edit: Sicher dass es bei dir Einwandfrei funzt ? Bei mir sagt Scite jz:
    C:\PROGRA~1\AutoIt3\Include\IE.au3 (267) : ==> The requested action with this object has failed.:
    $o_object.navigate ($s_Url)
    $o_object.navigate ($s_Url)^ ERROR

    -.-


    dat ist nen fehler in der ie.au3!!!

  • Nun, wenn ich das
    GUICtrlSetState( -1, $GUI_DISABLE )
    weglasse funktioniert es einwandfrei.
    Ebenso in einem Keygen, den ich gestern geschrieben
    habe.. x)
    Warum sollte also meine IE.au3 im Ar*** sein ? ;)
    Ich denke das liegt daran, dass ich erst das
    Element deaktiviere und das dann noch navigieren will x)


    Nils =)

    Edit:
    IE.au3 ersetzt, immernoch derselbe Fehler....

    There are only 10 types of people in the world:
    Those who understand binary - and those who don't.

    Einmal editiert, zuletzt von noels (3. Juni 2007 um 22:06)