English
Opportunities and suggestions

Done: wish: IsClipFormat

 

Falk
Fallenstein
The function
handle& = @Create("HPIC",0,"&CLPBMP") is very helpful, circa Images from others Programs To take. If itself however in the actually Clipboard no Bitmap, separate anything other befindet, observe I the first, if I of these "angeblichen Bild" moreover works wants, z.B. with SavePic album$,handle&,... or DrawPic handle&,... etc. The Create-function shining yourself no abfragbare Fehlerbedingung To produce, therefore can I the trouble first by the Folgefehler eingrenzen or. intercepting. for a slim, übersichtliche Programming would it beautiful, if one whom success the supra named function live to its appeal to check on could - z.B. with of/ one special System-Variables.
 
Strategien im Vergleich:
Microsoft: der Computer macht mit Dir, was er will ...
XProfan: der Computer macht, was Du von ihm willst.

XProfan 11, Windows XP (1.5 GByte RAM), XProfEd
11/18/09  
 



%bmpx ?
 
11/18/09  
 




Falk
Fallenstein
have I already probiert. The Images hätten therefore galaktische sizes - with 0 x 0 pixels had it me as Kriterium gereicht
 
Strategien im Vergleich:
Microsoft: der Computer macht mit Dir, was er will ...
XProfan: der Computer macht, was Du von ihm willst.

XProfan 11, Windows XP (1.5 GByte RAM), XProfEd
11/18/09  
 




Christian
Schneider
Perhaps works Yes by API:

GetClipboardData-function (MSDN):  [...] 
Clipboard-Formate (MSDN):  [...] 
example in VB:  [...] 
 
XProfan 11| Vista(64) SP2
11/18/09  
 




Falk
Fallenstein
with "0 x 0 pixels" meant I naturally erfolgloser, d.h. fehlerbehafteter Funktionsaufruf. too The Überprüfung the zurückgelieferten lever-number helps not further, the are any x-beliebigen numbers, The on no really definierten Objects in the main memory show - therefore lead tappt im dunkeln yes to whom erwähnten Folgefehlern.
 
Strategien im Vergleich:
Microsoft: der Computer macht mit Dir, was er will ...
XProfan: der Computer macht, was Du von ihm willst.

XProfan 11, Windows XP (1.5 GByte RAM), XProfEd
11/19/09  
 




Falk
Fallenstein
thanks, Christian, for your suggestions. I have me The Verweise short respected and feel, that it it so sure goes (and one yet plenty longer the Clipboard can make). but into details goes it with my bescheidenen Programmierkentnissen far over my horizon out
 
Strategien im Vergleich:
Microsoft: der Computer macht mit Dir, was er will ...
XProfan: der Computer macht, was Du von ihm willst.

XProfan 11, Windows XP (1.5 GByte RAM), XProfEd
11/19/09  
 




Christian
Schneider
Have something zusammengebastelt:
CompileMarkSeparation
Def OpenClipboard(1) !"USER32","OpenClipboard"
Def CloseClipBoard(0) !"USER32","CloseClipboard"
Def GetClipboardData(1) !"user32.dll","GetClipboardData"

Proc ClipIsPic

    Declare Cboard_return&

    IF OpenClipBoard(GetActiveWindow()) <> 0 erfolgreich geöffnet?

        Cboard_return&=GetClipboardData(2) Parameter 2 = Bild erwartet | 1 wäre Text
        CloseClipBoard()

    EndIF

    If Cboard_return& <> 0 Wert ungleich 0 = Wahr

        Return 1

    Else

        Return 0

    EndIF

EndProc

CLS
Print ClipIsPic() 1 = Bild, 0 = Kein Bild
Waitinput

If the Clipboard one Image contains gives ClipIsPic 1, unless 0 back.
 
XProfan 11| Vista(64) SP2
11/19/09  
 




Christian
Schneider
Frabbing, Beitrag=55027, Zeitpunkt=19.11.2009
plainer is:
CompileMarkSeparation
Def IsClipFormat(1) !"USER32","IsClipboardFormatAvailable"
Print IsClipFormat(1) Text
Print IsClipFormat(2) Bildre>


from:  
[...] 
 
XProfan 11| Vista(64) SP2
11/19/09  
 




Falk
Fallenstein
terrific, Christian!
very the, I need and sooooo simply - hold known How ;)
CompileMarkSeparation
Gemerkt/Separiert von http://xprofan.com/thread.core?t=7937
Def IsClipFormat(1) !"USER32","IsClipboardFormatAvailable"
declare h0&
cls

if IsClipFormat(2)Bild

    h0&=create("hPic",0,"&CLPBMP")
    hier weitermachen, z.B.
    drawpic h0&,0,0;0

else

    hier auf den Fehler hinweisen, z.B.
    print "no image in the clipboard - please try again ..."

endif

Strategien im Vergleich:
Microsoft: der Computer macht mit Dir, was er will ...
XProfan: der Computer macht, was Du von ihm willst.

XProfan 11, Windows XP (1.5 GByte RAM), XProfEd
11/20/09  
 



the would have imho for people yet plainer make can - serverside. ^^

inserts Member a http-URL with of/ one Bildadresse in that Posting-Input one ("Bildadresse kopieren" becomes of Browser likewise offered), then simply the image by (php) file_get_contents loading and on Server take off and the Bildadresse in entsprechendes <img wandeln.

but alike How, has everything his good.
 
11/20/09  
 




RGH
Falk Fallenstein, Beitrag=55018, Zeitpunkt=18.11.2009
The function
handle& = @Create("HPIC",0,"&CLPBMP") is very helpful, circa Images from others Programs To take. ... The Create-function shining yourself no abfragbare Fehlerbedingung To produce


Hi,

the Result the function (in the Erfolgsfall the lever the Bitmap) ought to in this drop 0 his and so intimate, that The Bitmap not created go could. Also ought to a warning aufpoppen, that The Bitmap not ladbar is.

Greeting
Roland

Nachtrag: Arrghh ... I had objectively forget, whom Return Value To initialisieren. in the nächtsten Version functions it How planned.
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
11/20/09  
 




Falk
Fallenstein
iF
... simply the image by (php) file_get_contents loading and on Server take off and the Bildadresse ... wandeln ...

Yes, sound simply, is it for me but not, because I know me with PHP unfortunately not from *schäm*

Also white I do not, whether the Server, from the the Original-Image comes, with a such grabbed the image too really hergibt (block external Bilderlinks, see my remark moreover supra). with the of me angestrebten Solution would already time ensured, that the image pub on the computer the Mitglieds present is and of there To my Server übetragen go can. as Admin point so did i over ands over again hereon there, a short Quellenangabe for extern loaded Images possible not To forget.

Roland
the Result the function (in the Erfolgsfall the lever the Bitmap) ought to in this drop 0 his ...

so have I it me too pictured and To allererst ausprobiert - with others create("HPIC" ...) functions functions it Yes.
 
Strategien im Vergleich:
Microsoft: der Computer macht mit Dir, was er will ...
XProfan: der Computer macht, was Du von ihm willst.

XProfan 11, Windows XP (1.5 GByte RAM), XProfEd
11/20/09  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.865 Views

Untitledvor 0 min.
Falk Fallenstein04/08/19
p.specht02/25/18
Uwe Lang09/16/13
Jörg Sellmeyer11/04/11

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