English
Forum

Click on image Open File

 
- Page 1 -



Roberto
good day
I need time again Help.
i will make, that if I on one Image click a File opened becomes.
How could I the make.
here my bisheriger code
declare passwindow&,e%
Windowtitle RHP windows
Window 50,20 - 800,600
startpaint passwindow&
LoadBMP RHPVISTA.BMP,54,69;0
LoadBMP groin.BMP,54,586;0
LOADBMP START.BMP,54,586;0
endpaint

whilenot e%

    WaitInput

    if Clicked 54,586;0

        LoadBMP RHPVISTA.BMP,54,69;0
        Waitinput
        end
 
Ich bin neu hier also Verurteilt mich nicht für meine fragen.^^
02/19/09  
 



 
- Page 4 -



Paul
Glatz
with my GIF works it and with BMP
 
02/20/09  
 




Roberto
Lalala...
and again trouble.
I have in my code now one new if mouse made.
the should the program close.
But if I then end hinschreib close itself the Program simply so.
CompileMarkSeparation
declare passwindow&,e%,i%
Windowtitle RHP Système dexploitation
Window 50,20 - 800,600
LoadBMP Leiste.BMP,0,518;0
LOADBMP START.BMP,0,519;0
LOADBMP AUSSCHALTEN.BMP,724,514;-1
repaint

whilenot e%

    if Mouse(0,724 - 30,514+33)

    endif

    whilenot e%

        WaitInput

        if Mouse(0,518 - 99,518+30)

        endif

        if i% = 1 Ist das Startmenu offen

            cls
            LoadBMP Leiste.BMP,0,518;-1
            LOADBMP START.BMP,0,519;-1
            LOADBMP AUSSCHALTEN.BMP,724,514;-1
            repaintneu malen
            i% = 0Starmenu zu

        elseif i% = 0 es ist zu!

            LoadBMP STARTPUSHED.BMP,0,23;0
            repaintneu malen
            i% = 1 Startmenu offen

        endif

    endif

endwhile

54 = X oben links (X1)
586 = Y oben links (Y1)
153 = X unten rechts (X2)
616 = Y unten Rechts (Y2)

if Mouse(0,724 - 30,514+ class=s2>33)

 
Ich bin neu hier also Verurteilt mich nicht für meine fragen.^^
02/20/09  
 




Paul
Glatz
Please:
CompileMarkSeparation
declare passwindow&,e%,i%
Windowtitle RHP Système dexploitation
Window 50,20 - 800,600
LoadBMP Leiste.BMP,0,518;0
LOADBMP START.BMP,0,519;0
LOADBMP AUSSCHALTEN.BMP,724,514;-1
repaint

whilenot e%

    whilenot e%

        WaitInput

        if Mouse(0,518 - 99,518+30)

            if i% = 1 Ist das Startmenu offen

                cls
                LoadBMP Leiste.BMP,0,518;-1
                LOADBMP START.BMP,0,519;-1
                LOADBMP AUSSCHALTEN.BMP,724,514;-1
                repaintneu malen
                i% = 0Starmenu zu

            elseif i% = 0 es ist zu!

                LoadBMP STARTPUSHED.BMP,0,23;0
                repaintneu malen
                i% = 1 Startmenu offen

            endif

        endif

        if Mouse(724+32,514+3 - 724+63,514+34)

            end

        endif

    endwhile

    54 = X oben links (X1)
    586 = Y oben links (Y1)
    153 = X unten rechts (X2)
    616 = Y unten Rechts (Y2)

    if Mouse(0,724 - 30,514+ class=s2>33)

 
02/20/09  
 




Roberto
OMG How find You The Coordinates out
 
Ich bin neu hier also Verurteilt mich nicht für meine fragen.^^
02/20/09  
 




Paul
Glatz
try and Paint
 
02/20/09  
 




Roberto
so badger Have I again the trouble with the Coordinates.
if I the anklicke standing To little parameter.
what are parameter?
CompileMarkSeparation
declare passwindow&,e%,i%
Windowtitle Arbeitsplatz
Window 50,20 - 450,350
loadbmp festplatte.bmp,10,10;0
waitinput

whilenot e%

    whilenot e%

        WaitInput

        if Mouse(10,10 + 33,10+33)

            windowtitle (R)
            Window 50,20 - 450,350
            
25 kB
Hochgeladen:02/20/09
Downloadcounter123
Download
 
Ich bin neu hier also Verurteilt mich nicht für meine fragen.^^
02/20/09  
 



The pair The behind whom Dingern stand The to whom Dingern stand The behind it stand!

commands parameter1,parameter2...
function(parameter1,parameter2...)
 
02/20/09  
 




Paul
Glatz
You Mouse(x1,y1 - x2,y2) instead of Mouse(x1,y1 + x2,y2) write

here's one hopefully richtiger code:
CompileMarkSeparation
declare passwindow&,e%,i%
Windowtitle Arbeitsplatz
Window 50,20 - 450,350
loadbmp festplatte.bmp,10,10;0
repaint

whilenot e%

    WaitInput

    if Mouse(10,10 - 130,80)

        settext %hwnd,(R)
        cls
        waitinput

    endIf

02/20/09  
 




Rolf
Koch

OMG How find You The Coordinates out


*lol* Robin, I faith I said already, that the Object Creator (which you allegedly To tricky is) much can.
Mouse-Coordinates are under so-called Hotspots.
simply You can and Size wander and there is then everything in the Source on Koordianten. but I can Yes none force
 
02/20/09  
 



@Robin: you have any Computerbildschirmkoordinaten in the head if you know, that these always in X (left to right) and Y (supra down) indicated go - with which 0,0 means supra left is and 1024,768 is often under right on the screen.

setPixel  maxx 
 
02/20/09  
 




Roberto
OK I lad me whom Object Creator down
 
Ich bin neu hier also Verurteilt mich nicht für meine fragen.^^
02/20/09  
 



The is really class, have me whom first neulig again loaded and was astonishes How very this itself too correct has - respect!
 
02/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

25.652 Views

Untitledvor 0 min.
H.Brill09/20/23
Langer01/01/22
Ernst04/30/14

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!


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