English
Forum

Print one complete HTMLWin Dialogs

further Kontexte over OCX address

 
- Page 1 -



Julian
Schmidt
I have me your OCX Help once angeschaut.
and have anhand your Source it now hinbekommen further Menupunkte in the "HTMLWin Kontextmenu" to address.

Markierten Text in Clipboard copy
CompileMarkSeparation
Document&=ocxget(WebBrowser&,"Document")
ocxMethod(Document&,"execCommand","copy")
ocxRelease(Document&)re>



Text from Clipboard insert
CompileMarkSeparation
Document&=ocxget(WebBrowser&,"Document")
ocxMethod(Document&,"execCommand","paste")
ocxRelease(Document&)re>



Markierten Text auschneiden
CompileMarkSeparation
Document&=ocxget(WebBrowser&,"Document")
ocxMethod(Document&,"execCommand","cut")
ocxRelease(Document&)re>



Mark Text delete
CompileMarkSeparation
Document&=ocxget(WebBrowser&,"Document")
ocxMethod(Document&,"execCommand","cut")
ocxRelease(Document&)
ClearClip<
pre>



everything Mark
CompileMarkSeparation
Document&=ocxget(WebBrowser&,"Document")
ocxMethod(Document&,"execCommand","SelectAll")
ocxRelease(Document&)re>



LG

Julian
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/13/11  
 



« this Posting watts as Solution marked. »


Uwe
''Pascal''
Niemeier
Hi Julian!

first another Info: so You on pieces of/ one HTML-File or Website grab can,
must You ensuring, that the Page entire loaded is (had I yet unterschlagen).
therefore are whom folgenen Examples suitable Warteschleifen installed.


How can whom point "Eigenschaften" in the Context menu address


the goes again over the IOleCommandTarget -Interface; so can any functions Call, The over diverse Menüs To achieve are:
CompileMarkSeparation
window 600,600
 $H Windows.ph
 $H ocx3a.ph
 $I ocx3a.inc
def %Exec 4
def &OLECMDID_PROPERTIES 10
def $IID_OleCommandTarget "{b722bccb-4e68-101b-a2bc-00aa00404770}"
var Html$="C:\Test.html"
var WebControl&=create("HTMLWin",%hwnd,Html$,1,100,100,400,400)

while HTMLWin("GetBusy",WebControl&)

    sleep 50

endwhile

ocxInit()
var WebBrowser&=HTMLWin("QueryInterface",WebControl&)
var IOleCommandTarget&=QueryInterface(WebBrowser&,$IID_OleCommandTarget)
CallMethod(IOleCommandTarget&,%Exec,0,&OLECMDID_PROPERTIES,0,var#,0)
ocxRelease(IOleCommandTarget&,Webbrowser&)
ocxDeInit()
waitkey
destroywindow(WebControl&
class=s2>)

an list Another Opportunities (&OLECMDID_Konstanten and its values) find You here:
[...] 


and how can one The Seitenkodierung address?


The Seitenkodierung is a quality the Dokumentes:
CompileMarkSeparation
window 600,600
usermessages 16
 $H windows.ph
 $H ocx3a.ph
 $I ocx3a.inc
popup "Charset"
appendmenu 1,"ISO-8859-1"
appendmenu 2,"ISO-8859-5"
appendmenu 3,"ISO-8859-7"
var Html$="C:\Test.html"
var WebControl&=create("HTMLWin",%hwnd,Html$,1,100,100,400,400)

while HTMLWin("GetBusy",WebControl&)

    sleep 50

endwhile

ocxInit()
var WebBrowser&=HTMLWin("QueryInterface",WebControl&)
var Document&=ocxget(WebBrowser&,"Document")
settimer 500'--Charset-selection over IE-Context menu becomes of WaitInput not recognized

while 1

    waitinput
    case %umessage=16:break
    case %menuitem=1:ocxPut(Document&,"charset","ISO-8859-1")
    case %menuitem=2:ocxPut(Document&,"charset","ISO-8859-5")
    case %menuitem=3:ocxPut(Document&,"charset","ISO-8859-7")
    case %menuitem :HTMLWin("Refresh",WebControl&)'--update with Änderung
    settext %hwnd,ocxget(Document&,"charset")

endwhile

killtimer
ocxRelease(Document&,WebBrowser&)
destroywindow(WebControl&)
ocxDeInit()

The Zuordnung the countries etc. must You but self distinguished. thereby helps Perhaps this:
[...] 

PS: How these "Rechts-Links"-story functions, have I on The speedy neither rausgekriegt

SeeYou
Pascal
 
03/19/11  
 




Julian
Schmidt
How can whom Seitenquellcode address?

goes unfortunately not so
CompileMarkSeparation
Document&=ocxget(WebBrowser&,"Document")
ocxMethod(Document&,"execCommand","ViewSource")
ocxRelease(Document&)re>

LG

Julian
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/13/11  
 




Thomas
Freier

How can whom Seitenquellcode address?


in a what You so mean. whom Seitenquellcode can you you in the MultiEdit or Rtf-Edit Show let and Edit. desired Syntaxhervorhebung must hold self be installed.
 
Gruß Thomas
Windows XP SP2, XProfan X2
03/15/11  
 




Julian
Schmidt
Thomas suitor (15.03.11)

How can whom Seitenquellcode address?
in a what You so mean. whom Seitenquellcode can you you in the MultiEdit or Rtf-Edit Show let and Edit. desired Syntaxhervorhebung must hold self be installed.


the relating itself on the point "Quellcode anzeigen" in the Context menu one HTMLWin Dialogs.



How can whom Menupünkt over OCX address?

48 kB
Hochgeladen:03/15/11
Downloadcounter197
Download
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/15/11  
 




Uwe
''Pascal''
Niemeier
Hi Julian!

i think, you mean something like:
CompileMarkSeparation
window %maxX,%maxY
 $H Windows.ph
 $H ocx3a.ph
 $I ocx3a.inc
ocxInit()
var Html$="C:\Test.html"
var WebControl&=create("HTMLWin",%hwnd,Html$,1,0,0,width(%hwnd),height(%hwnd))
var WebBrowser&=HTMLWin("QueryInterface",WebControl&)
var Document&=ocxget(WebBrowser&,"Document")
var Body&=ocxget(Document&,"Body")
var innerHTML$=ocxget(Body&,"innerHTML")
var innerText$=ocxget(Body&,"innerText")
ocxRelease(Body&,Document&,WebBrowser&)
ocxDeInit()
waitinput
destroywindow(WebControl&)
cls
print innerText$
waitinput
cls
print innerHTML$
waitinput

As I said, mach you on the best a little bit with JavaScript intimate.
there go The different Objects and properties, from them a HTML-File exists, described.
or look time here: [...] 

SeeYou
Pascal
 
03/15/11  
 




Julian
Schmidt
thanks

now my last ask,

How can whom point "Eigenschaften" in the Context menu address

and how can one The Seitenkodierung address? (here To must yet said go that I whom point so How he's as SubPopup in that Program install wants, if the a strain play ought to.)



LG

Julian

64 kB
Hochgeladen:03/16/11
Downloadcounter191
Download
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/16/11  
 




Uwe
''Pascal''
Niemeier
Hi Julian!

first another Info: so You on pieces of/ one HTML-File or Website grab can,
must You ensuring, that the Page entire loaded is (had I yet unterschlagen).
therefore are whom folgenen Examples suitable Warteschleifen installed.


How can whom point "Eigenschaften" in the Context menu address


the goes again over the IOleCommandTarget -Interface; so can any functions Call, The over diverse Menüs To achieve are:
CompileMarkSeparation
window 600,600
 $H Windows.ph
 $H ocx3a.ph
 $I ocx3a.inc
def %Exec 4
def &OLECMDID_PROPERTIES 10
def $IID_OleCommandTarget "{b722bccb-4e68-101b-a2bc-00aa00404770}"
var Html$="C:\Test.html"
var WebControl&=create("HTMLWin",%hwnd,Html$,1,100,100,400,400)

while HTMLWin("GetBusy",WebControl&)

    sleep 50

endwhile

ocxInit()
var WebBrowser&=HTMLWin("QueryInterface",WebControl&)
var IOleCommandTarget&=QueryInterface(WebBrowser&,$IID_OleCommandTarget)
CallMethod(IOleCommandTarget&,%Exec,0,&OLECMDID_PROPERTIES,0,var#,0)
ocxRelease(IOleCommandTarget&,Webbrowser&)
ocxDeInit()
waitkey
destroywindow(WebControl&
class=s2>)

an list Another Opportunities (&OLECMDID_Konstanten and its values) find You here:
[...] 


and how can one The Seitenkodierung address?


The Seitenkodierung is a quality the Dokumentes:
CompileMarkSeparation
window 600,600
usermessages 16
 $H windows.ph
 $H ocx3a.ph
 $I ocx3a.inc
popup "Charset"
appendmenu 1,"ISO-8859-1"
appendmenu 2,"ISO-8859-5"
appendmenu 3,"ISO-8859-7"
var Html$="C:\Test.html"
var WebControl&=create("HTMLWin",%hwnd,Html$,1,100,100,400,400)

while HTMLWin("GetBusy",WebControl&)

    sleep 50

endwhile

ocxInit()
var WebBrowser&=HTMLWin("QueryInterface",WebControl&)
var Document&=ocxget(WebBrowser&,"Document")
settimer 500'--Charset-selection over IE-Context menu becomes of WaitInput not recognized

while 1

    waitinput
    case %umessage=16:break
    case %menuitem=1:ocxPut(Document&,"charset","ISO-8859-1")
    case %menuitem=2:ocxPut(Document&,"charset","ISO-8859-5")
    case %menuitem=3:ocxPut(Document&,"charset","ISO-8859-7")
    case %menuitem :HTMLWin("Refresh",WebControl&)'--update with Änderung
    settext %hwnd,ocxget(Document&,"charset")

endwhile

killtimer
ocxRelease(Document&,WebBrowser&)
destroywindow(WebControl&)
ocxDeInit()

The Zuordnung the countries etc. must You but self distinguished. thereby helps Perhaps this:
[...] 

PS: How these "Rechts-Links"-story functions, have I on The speedy neither rausgekriegt

SeeYou
Pascal
 
03/19/11  
 




Julian
Schmidt
thanks for Mühen, i'll it me in the running of the day time look at
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/20/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

13.070 Views

Untitledvor 0 min.
Walter01/13/23
Andre Rohland02/11/18
RudiB.03/17/16
Peter Max Müller08/22/15
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie