English
Forum

IP Checker

 

Stefan
Landsberg
Hi,

somehow watts me the old boy Thread here [...]  To unübersichtlich, and there I thought mach a new Thread on.
(If that not desired is Please I a Admin a of both To delete).

what GEHTS: i'm thereby my erstes Program to program. it should a list of ips anpingen and then Show whether tappt im dunkeln accessible are or even not.

my Program is (except for the solid) already almost ready.
Currently sees the code so from: [...] 

and here The question:

is it a good idea as Ausgabefeld a MultiEditBox To take or there for better? I Have nothing found!
my trouble is, that the
not as distribution displayed becomes separate only as schwarzer case.
in the Ausgabefeld but should one list outputted where each IP a Own row has.
 
07/26/08  
 




Stefan
Landsberg
white none a alternative To multieditbox or can me say How one with settext absätze in multieditboxen kriegt?
 
07/27/08  
 




Sebastian
König
Hello Stefan,

Stefan Landsberg
white none a alternative To multieditbox or can me say How one with settext absätze in multieditboxen kriegt?


in MultiEdits get one a Line break by the combination the ASCII-characters 13 (CR) and 10 (LF). ex XProfan 9.0 standing the "
" for a String from both characters (therefore supply len("
") too a 2 back). for ältere versions you can easily

"Zeile 1"+chr$(13)+chr$(10)+"Zeile 2"

using.

HTH

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
07/27/08  
 




Stefan
Landsberg
thanks functions super.

can I,may I yet three ask questions?:

1. somehow go in of my ip outputbox only 230-260 characters outputted. the remain becomes somehow verschluckt. is the Memory-Variable fully?? really Have I The on 32000 byte dimensioniert.
white someone Why the lying can?
has one ascii characters so much byte?

2. How make I it that one The ip inputbox too again with of/ one list fill can and a second (and drittes, and ...) time on the button Überprüfen clicking can?

3. How power one it that the window only over the (red) close kreuz closed go can.(and naturally with ALT+F4).
I have the automatic close the fensters first with waitkey prevented.

The code sees zurzeit so from:  [...] 
 
07/27/08  
 



To 3. to that Window Style 512 add and
CompileMarkSeparation
WhileNot exit%

    case %key=2 : break

    If @GetFocus(btn%)
 
07/27/08  
 




Sebastian
König
Stefan Löwen
1. somehow go in of my ip outputbox only 230-260 characters outputted. the remain becomes somehow verschluckt. is the Memory-Variable fully?? really Have I The on 32000 byte dimensioniert.
white someone Why the lying can?
has one ascii characters so much byte?


the lying on it, that in Profan² 6.6 The maximum length one Strings yet on 255 characters dull is. in the row

settext ipoutput%,@string$(ipouttxt#,0)

becomes the return of @string$() therefore to 255 characters cut. bypass can You, the trouble, because You whom Text step for step into MultiEdit write. moreover is well something API necessary - I use always these Kombintation:
CompileMarkSeparation
SendMessage(box&, ~EM_SETSEL, -1, -1)
SendMessage(box&, ~EM_REPLACESEL, 0, Addr(line$))
SendMessage(box&, ~EM_SCROLLCARET, 0, 0)re>

In Profan² 6.6 benötigst You The Zahlenwerte the Messages - tappt im dunkeln should in the Help stand. Also must behind the Addr() another +1 complement go.

Stefan Löwen
2. How make I it that one The ip inputbox too again with of/ one list fill can and a second (and drittes, and ...) time on the button Überprüfen clicking can?


if I The question correctly. understand, would I say: Loop circa everything and ggf. at the beginning The spending-Box delete.

HTH

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
07/27/08  
 




Stefan
Landsberg
hmm,
thanks iF for speedy response.

but the erwünschte has the neither brought. jetz becomes of course the waitkey übersprungen if I over the kreuz schließe. but the kreuz has no effect before I on to check on clicked have.
And if I, after I on Überprüfen clicked have, simply so a Button press becomes the window too closed (because of the WaitKey).

i think 2. and 3. must together resolved go. vielleich crazy I but too.

Aktueller code:  [...]  

Edit: ui jetz Have I another response (thanks sebastian). I will me the jetz too angucken and me then again report.
 
07/27/08  
 



what see I there...

the waitKey wech,- one waitinput to case %key=2 : break
 
07/27/08  
 




Stefan
Landsberg
@iF:
ne neither. jetz can I the window of course too to the Überprüfen close, but to the Überprüfen Better get going automatically closed.

so sees the code jetz from:  [...]  
 
07/27/08  
 




Stefan
Landsberg
so jetz The Answer To sebastian:

by me in the Help stand only The zahlenwerte for em_setsel and em_replacesel.
em_scrollcaret is not at all erwähnt.
and infos moreover what The parameter behind the message mean Gibts neither.


and a schleife have I still circa everything.

WhileNot exit%
...
EndWhile

and: which ausgabebox Dou you mean

does me sorrow I soviele negatives ergebnisse supply. I find the too thick the not so will How I!

code:  [...]  
 
07/27/08  
 




Sebastian
König
Stefan Löwen
by me in the Help stand only The zahlenwerte for em_setsel and em_replacesel.
em_scrollcaret is not at all erwähnt.
and infos moreover what The parameter behind the message mean Gibts neither.


OK, here's first the worth: EM_SCROLLCARET = $00B7. Ausführliche Beschreibungen to the Parameters and much More find You under  [...] 

Stefan Löwen
and a schleife have I still circa everything.

WhileNot exit%
...
EndWhile

and: which ausgabebox Dou you mean


with the spending-Box my I The Ergebnisliste. If I the right see, is your code really already so, that one over ands over again on "Überprüfen" clicking can. can You accurate describe, what You make want?

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
07/27/08  
 




Stefan
Landsberg
hm will be me with the whom messages then time angucken.

i want that so having, I the Program open, and the eingabefeld one list of ips eintippe. then click I on to check on.
thereupon go in the downstairs box The ergebnisse displayed, and the upper box becomes taught.
so far functions the indeed.
but I had it gladly so I The eingabebox then one second time with (others) ips fill can and again on Überprüfen clicking can.
then should The downstairs Box geleert and be it go The ergebnisse the new list outputted.

thanks Schonmal for Help
 
07/27/08  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

15.999 Views

Untitledvor 0 min.
Ernst04/10/14
Wolfgang06/10/13
Setharial02/14/13
Peter Max Müller12/11/11
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