English
Forum

Collect your best Quickies...

 

Frank
Abbing
...but mail me now Please no Videos of you one or other Schweinkram.

No, for my new Program be I on the Search to whom best Teilprogrammen (maximum 10 Lines). means Lines or routines, The your in each Program over ands over again uses. The you vital attend, without The eure programs not gelingen would.
even something like How that here:

or:
Def GetSysColor(1) !"USER32","GetSysColor"
Def LoadIcon(2) !"USER32","LoadIconA"
Cls GetSysColor(15)
SendMessage(%hwnd,$80,1,LoadIcon(0,32517))

there falls you still too certainly what a?
 
10/20/06  
 




CompileMarkSeparation
 
10/20/06  
 




Jörg
Sellmeyer
are partly with XProfan10 obsolet become but under utterly useful:
CompileMarkSeparation
Def CharCount(2) Int(Sub(Len(@$(1)),Len(translate$(@$(1),@$(2),""))))
Def VerzeichnisTiefe(1) Int(Sub(Len(@$(1)),Len(Translate$(@$(1),"\",""))))
Def PfadTeil(2) SubStr$(@$(1),@%(2),"\")
Vorher sollte man die Verzeichnistiefe ermitteln
Def DateiName(1) SubStr$(@$(1),Add(VerzeichnisTiefe(@$(1)),1),"\")
Def DateiPfad(1) Translate$(@$(1),Add$("\",DateiName(@$(1))),"")
Def Home(0) Translate$(Upper$(Par$(0)),Upper$(FindFirst$(Par$(0))),"")
ausgewählter Listboxeintrag
Def ListBoxStringSel(1) GetString$(@&(1),SendMessage(@&(1),$0188,0,0))
Def ListClear(1) SendMessage(@&(1),$184,0,0)
scrollt den übergebenen String an die obere Listboxkante (Position in der Liste bleibt!)
Def SelectTop(2) SendMessage(@&(1),~LB_SETTOPINDEX,SelectString(@&(1),-1,@$(2)),0)
Def SetCursel(2) SendMessage(@&(1),$0186,@&(2),0)
Def SubStrRight(3) SubStr$($(1),If(GT(Len($(1))-Len(Translate$($(1),$(3),""))
+ 2,%(2)),Len($(1))-Len(Translate$($(1),$(3),""))+2-%(2),%(2)),$(3))
Par1= Der zu bearbeitende String
Par2= Nummer des Teilstrings von rechts
Par3= Trennzeichen
Par2 Anzahl von Zeichen aus Par1 löschen
Def DelLast(2) Mid$(@$(1),1,Sub(Len(@$(1)),@&(2))s=s2>)
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/20/06  
 




Nico
Madysa
Phh, if Jörg More as 10 Lines mail, then so did i!
CompileMarkSeparation
Fenster, bei dem die zukünftige Größe des
CLIENT-Bereiches angegeben wird.
declare OWin#

proc OptWindow

    if Upper$($(1)) = "START HWND"

        parameters w$ , style% , titel$ , dx% , dy%
        Dim OWin# , 4
        WindowTitle titel$
        WindowStyle style%
        Window (2 * %MaxX) , (2 * %MaxY) - dx% , dy%
        cls SysColor(15)
        Word OWin# , 0 = dx%
        Word OWin# , 2 = dy%

    elseif Upper$($(1)) = "END"

        declare hwin& , x% , y% , dx% , dy%
        dx%   = (2 * Long(OWin#,0)) -  width(hwin&)
        dy%   = (2 * Long(OWin#,2)) - height(hwin&)

        if %pCount = 1

            x% = (%MaxX - dx%) / 2
            y% = (%MaxY - dy%) / 2

        endif

        SetWindowPos %hWnd = x% , y% - dx% , dy%
        Dispose OWin#

    endif

endproc

 
Nico Madysa
10/20/06  
 




Frank
Abbing
Please not To many Lines! The 10it-boundary can I of course strain, but the power The story unübersichtlich.

i will my Program with some ausgesuchten Snipseln furnish, if I it for Download enable. whom remainder can eachone User hereafter yourself take on.
 
10/20/06  
 




Frank
Abbing
Have The boundary on 24 Lines heraufgehoben and hope, that yet Einsendungen come. Go, opens eure Schatzkisten...!
 
10/20/06  
 



ought to one at the beginning one each Program insert
CompileMarkSeparation
!Def GetVersion(0) !"kernel32", "GetVersion"
Declare Version$
Version$ = Str$((GetVersion() & $FFFF) & $FF)
Version$ = Version$ + "." + Str$((GetVersion() & $FFFF) >> 8)

If Version$ = "4.90"  WindowsME, besser beenden ;)

    End

/a>
 
10/21/06  
 




Torsten
Rümker
Registry read without Problems:
CompileMarkSeparation
Proc Readreg

    Declare E%,E$
    E%=Set("Errorlevel",-1)
    E$=Readini$($(1),$(2),$(3))
    Set("Errorlevel",E%)
    Return E$

En
/a>

Special Folder read:
CompileMarkSeparation
so the wärs first.

MfG
Torsten
 
Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
10/21/06  
 




Michael
Dell
a couple Schnipsle:

4 kB
Kurzbeschreibung: __Schnipsel__
Hochgeladen:10/21/06
Downloadcounter70
Download
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
10/21/06  
 




Frank
Abbing
I bedanke me with all Einsendern!!!

my Tool SnippetAdmin, the under the Arbeitstitel Profan for rotten running, standing now short to the accomplishment.
 
10/22/06  
 



Since I me for Quickies always particularly plenty Time let, here too yet of what me:
CompileMarkSeparation
Proc WaitInpuEx Erweitertes Waitinput für Dialoge von AH

    @External("USER32","MsgWaitForMultipleObjects",0,0,0,-1,$1 | $4 | $10)
    Rem
    Rem
    Rem
    Rem
    REM
    Rem
    Rem
    Rem
    Rem
    REM
    Rem
    Rem
    Rem
    Rem
    REM
    Rem
    Rem
    Rem
    Rem
    REM

endproc


the best keep I but nevertheless rather for me .
 
10/25/06  
 




Carlo
Keil
@ Andreas: could you me please times over the object the REMs enlighten?

thanks
Carlo
 
10/25/06  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.420 Views

Untitledvor 0 min.
Peter Max Müller11/13/17
Tango07/14/17

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