English
Forum

mcopybmp and mloadbmp

 
Hi,

i'm z.Zt. in the Umschulung to that Fachinformatiker Anwendungsentwicklung and come with a designed area in XProfan not clear, z.Zt. raubt me the whom last nerve. we should a Control for a WR64 or ne Logo for a Rolltor basteln with tastern etc. so come I so far clear, but if I try the Rolltor by mcopybmp partly reinzukopieren so as would the goal down or hochfahren power it not, it recognize the two variables y1% and x2% simply not on, these can I discretionary Change. for me is it z.Zt. Real heavy afterwards To come I father of/ one small daughter be and in the momentum simply not The Time have the at home nachzuarbeiten. I hope your can me a small Denkanstoss give, my colleague is so already ready, unfortunately

and of course have I the following trouble:

once I try the image To copy whether integrally or partly shows it not on, I have really etliche Kombinationen and command attempts but the wants it somehow not or I kapier the simply not. moreover comes yet the it The variables y1% and x2% simply not recognize, it kümmert XProfan not whether I there what change The Size remaining always same, and it should itself with y1% +1 each time in the Whileschleife open, means always one pixel higher weg.

my Program (only the Testprogramm for Rolltor) and the Bitmap füge I with.

the Whole should simply of supra down rad and again back means either by mousekey or waitinput thereafter can I my keyboard insert, sees everything z.Zt. something willkürlich from I plenty around experimentiert have.

Greeting from Wilhelmshaven



Download

A.Reintgen

69 kB
Kurzbeschreibung: rtor
Hochgeladen:05/30/11
Downloadcounter89
Download
1 kB
Kurzbeschreibung: Testprogramm rolltor
Hochgeladen:05/30/11
Downloadcounter121
Download
 
05/30/11  
 



I faith the a of my wertevergaben simply not is correct, because if I the z.B. so to that hochzählen teste remaining the nevertheless same
CompileMarkSeparation
locate 20,20
print y1%+10e>

it gives nevertheless The festgelegten 200 again
 
05/30/11  
 



Hi!

unfortunately have You no XProfan-Version indicated.

You write:
CompileMarkSeparation
mloadbmp ("C:\\Bmp\\Objekte\\rolltor.BMP")
>
- it ought to but:
CompileMarkSeparation
mloadbmp "C:\\Bmp\\Objekte\\rolltor.BMP"
>
hot there mloadbmp a procedure instead of function is.

procedure:
CompileMarkSeparation
AddString "Hallo Welt"
>

function:
CompileMarkSeparation
AddString("Hallo Welt")
>

with such command The as Parametertrennzeichen one less instead of one comma need How z.B. from Your code:
CompileMarkSeparation
rectangle 269,352-431;110
>
always rather Freizeichen to and to the less settle or xpse (  [...]  ) bring into action (needed XProfan-Full Version) and uniform the comma use (  [...]  ).


reinzukopieren so as would the goal down or hochfahren power it the Nich


I can in the code nothing discern what moreover lead should that the goal high or down drives - Variablenwerte go of course staid but nirgends high- or down counted.

so fährts:
CompileMarkSeparation
cls
mLoadBmp "rolltor.BMP"
startPaint -1
usepen 0,0,$FFFFFF
line 0,181 - 127,181
endPaint

whileLoop 182,0,-1

    mCopyBmp 0,&loop - 127,182 > 100,100 ; 0
    sleep 30

wend

waitInput

whileLoop 182

    mCopyBmp 0,&loop - 127,182 > 100,100 ; 0
    sleep 30

wend

end

Download

33 kB
Hochgeladen:05/30/11
Downloadcounter62
Download
 
05/30/11  
 



Hi and thanks for your Help means use XProfan 11 Full Version editor 11.2. and Yes there was bislang the crux with the hochfahren there it The variables not really hochrechnen wished having this hold simply always with z.B.

x1% +10

attempts.

i'll me your example time inhalieren and study, because we've unfortunately in a week 4 different programs uses what me still quite verunsichert has.

first Blitzbasic-Variationen,Smallbasic and now Xprofran for the time being shareware now The Full Version, there we the any self erarbeiten must comes one there right quick confusion.
 
05/30/11  
 



gladly happen.

Nochwas:
CompileMarkSeparation
x1%+10
>
becomes so not functions, sooner:
CompileMarkSeparation
x1%=x1%+10
>
or
CompileMarkSeparation
add x1%,10
>
or.
CompileMarkSeparation
inc x1%,10
>

PS: Registriere you still, XProfan.com is werbefrei and free.
 
05/30/11  
 



means here The complete boards the Control time short:
CompileMarkSeparation
Window 1,1 - 640,480
cls
declare hBild1&,hBild2&,hBild3&,hBild4&,hBild5&,hBild6&,hBild7&,hBild8&\
,hBild9&,hBild10&,hBild11&,hBild12&,hBild13&,hBild14&,hBild15&,hBild16&

Proc BMP

    hBild1&  = @create ("HPic",-1,"C:\\Bmp\\Schalter\\tagn0.BMP")
    hBild2&  = @create ("HPic",-1,"C:\\Bmp\\Schalter\\tagn1.BMP")
    hBild3&  = @create ("HPic",-1,"C:\\Bmp\\Schalter\\tart0.BMP")
    hBild4&  = @create ("HPic",-1,"C:\\Bmp\\Schalter\\tart1.BMP")
    hBild5&  = @create ("HPic",-1,"C:\\Bmp\\Schalter\\nota1.BMP")
    hBild6&  = @create ("HPic",-1,"C:\\Bmp\\Schalter\\trt1.BMP")
    hBild7&  = @create ("HPic",-1,"C:\\Bmp\\Schalter\\trt0.BMP") ;Störungsleuchte ein
    hBild8&  = @create ("HPic",-1,"C:\\Bmp\\Schalter\\tabl0.BMP")
    hBild9&  = @create ("HPic",-1,"C:\\Bmp\\Schalter\\tge0.BMP")
    hBild10& = @create ("HPic",-1,"C:\\Bmp\\Schalter\\tgn1.BMP")
    hBild11& = @create ("HPic",-1,"C:\\Bmp\\Schalter\\sertar1.BMP")
    hBild12& = @create ("HPic",-1,"C:\\Bmp\\Schalter\\sertar0.BMP")
    hBild13& = @create ("HPic",-1,"C:\\Bmp\\Objekte\\druckzr.BMP")
    hBild14& = @create ("HPic",-1,"C:\\Bmp\\Objekte\\emotl1.BMP")
    hBild15& = @create ("HPic",-1,"C:\\Bmp\\Schalter\\lichtschr.BMP")
    hBild16& = @create ("HPic",-1,"C:\\Bmp\\Objekte\\rolltor.BMP")

Endproc

Proc BMP1

    roundrect 600,130 - 500,300;30,30
    rectangle 1,290 - 200;0
    DrawSizedPic hBild1&,40,50 - 30,30;0
    DrawSizedPic hBild1&,40,210 - 30,30;0
    DrawSizedPic hBild1&,40,170 - 30,30;0
    DrawSizedPic hBild1&,40,250 - 30,30;0
    DrawSizedPic hBild3&,40,130 - 30,30;0
    DrawSizedPic hBild3&,40,10 - 30,30;0
    DrawSizedPic hBild5&,120,10 - 30,30;0
    DrawSizedPic hBild8&,120,50 - 30,30;0
    DrawSizedPic hBild6&,120,130 - 30,30;0
    DrawSizedPic hBild9&,120,170 - 30,30;0
    DrawSizedPic hBild10&,120,210 - 30,30;0
    DrawSizedPic hBild10&,210,135 - 30,30;0
    DrawSizedPic hBild10&,210,230 - 30,30;0
    DrawSizedPic hBild6&,210,320 - 30,30;0
    DrawSizedPic hBild12&,240,320 - 30,30;0
    DrawSizedPic hBild11&,240,230 - 30,30;0
    DrawSizedPic hBild12&,240,135 - 30,30;0
    DrawSizedPic hBild13&,430,320 - 30,30;0
    DrawSizedPic hBild14&,430,120 - 40,40;0
    DrawSizedPic hBild15&,420,370 - 30,30;0
    DrawSizedPic hBild16&,270,130 - 160,220;0
    DrawSizedPic hBild3&,510,140 - 30,30;0
    DrawSizedPic hBild1&,510,180 - 30,30;0
    DrawSizedPic hBild1&,510,220 - 30,30;0
    DrawSizedPic hBild1&,510,260 - 30,30;0

Endproc

Proc Texte

    Locate 2,2
    Print "Aus"
    Locate 5,2
    Print "Ein"
    Locate 8,5
    Print "Anlage"

endproc

rem Ausführung der Prozeduren
BMP
BMP1
Texte

Proc Taster1

    While %mousepressed

        DrawSizedPic hBild2& ,40 , 50 - 30, 30; 0

    EndWhile

    DrawSizedPic hbild1& ,40 , 50 - 30, 30; 0

Endpro
waitinput

it sees naturally yet something big and unübersichtlich from contain but the most functions. The keyboard are still in another Program because these "noch" not correctly. functions. but I work on it.

this is hold one genaues copy the panel and moreover comes the we Yes over a WR64 ,over serial COM-interface, the whole too of PC from steer should, right complex Beschäftigungsmaßnahme.

Greeting

921 kB
Kurzbeschreibung: Images for Circuit
Hochgeladen:05/30/11
Downloadcounter32
Download
 
05/30/11  
 



alas there lying the Error means achso be registered must me only another Bissl adjust here, what because of the Problematik sooner secondary was.
 
05/30/11  
 



Ah, understand.

whom Info given I hold z.B. because one then Own Posts discretionary Edit can or. because it announced More Opportunities gives.
 
05/30/11  
 



Hehe, hm can you whom code Yes time angucken and look whether I the somehow bissl übersichtlicher style can (naturally kommentiere I the whole in the Nachhinein).

with the keyboard I will think I time already ready, the have I the battle already angesagt. the Whole should then How in the appended looks and naturally functions. I slopes time keyboard and Gesamtbild on

1.837 kB
Version:11
Kurzbeschreibung: Gesamtbild Circuit
Hochgeladen:05/30/11
Downloadcounter99
Download
2 kB
Version:11
Kurzbeschreibung: Tasterfunktion
Hochgeladen:05/30/11
Downloadcounter136
Download
 
05/30/11  
 



Achso in the Endeffekt should the goal then too stop can and the Sensoren The the goal happens too shine OMG is still right komplex if to the as Gesamtbild viewing, but us watts Yes said, have your Problems contact you ans XProfan-Forum or the manuals

Musste 7 Volumes a 500 pages print out xD and across whom Parkplatz tow, thought already the would ne Strafarbeit
 
05/30/11  
 



what I you recommend would would the program same so To write the it with only 1 Hauptereignisschleife auskommt - means so WaitInput only 1time in the program vorkommt.
 
05/30/11  
 



Untitled (30.05.11)
Musste 7 Volumes a 500 pages print out xD and across whom Parkplatz tow, thought already the would ne Strafarbeit


an Strafarbeit would it sooner with the book works To must if it on only 20 pages pressed would.
 
05/30/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

10.295 Views

Untitledvor 0 min.
RudiB.05/16/21
kustg12/10/19
Peter Max Müller03/13/17
Sebastian Sprenger03/19/13
More...

Themeninformationen

this Topic has 3 subscriber:

unbekannt (10x)
iF (7x)
unbekannt (1x)


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