English
Regulars table & Café

puzzel: One "Linkes" Program

 
- Page 1 -


could it unfortunately XP not yet testing. hope but, the it too there works:
for windows2000 and XP User => one Linkes Program.
my Rätselfrage: How are the?

plenty Fun

Andreas

606 kB
Kurzbeschreibung: One "Linkes" Program
Hochgeladen:10/01/06
Downloadcounter100
Download
 
10/01/06  
 



 
- Page 1 -


very well!

this is it already almost...
 
10/02/06  
 



 
- Page 2 -



Jörg
Sellmeyer
Hm, sees interestingly from but Why these structure??
CompileMarkSeparation
gfI_Erg& = Val(Int(Left$(Str$(Long(gfI_stInf#,44)),1)))
>

would be not sinniger?
CompileMarkSeparation
gfI_Erg& = byte(gfI_stInf#,44)
>
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/02/06  
 




CompileMarkSeparation
Gfi_erg& = Byte(Gfi_stinf#,44)
>

...so Have ichs too made.
i will yet whom detailed Link know, from the launched watts...
 
10/02/06  
 




Jörg
Sellmeyer
comic, the have I now straight probiert. then comes but always only 1 as Result out.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/02/06  
 



Hubs Have me slip => Flagabfrage use, d.h. LONG and | .
now asks itself yet: How sounds the Flag, the there quizzed go must?
 
10/02/06  
 




Michael
Dell
I deal today apparently to the Motto Why simply ifs too tricky goes!

know the Flag unfortunately not, goes but too differently (Komplizierter!):
CompileMarkSeparation
!Def GetStartupInfo(1) !"KERNEL32.DLL","GetStartupInfoA"   lpStartupInfo# als STARTUPINFO
Struct STARTUPINFO = cb&,lpReserved&,lpDesktop&,lpTitle&,dwX&,dwY&,dwXSize&,dwYSize&,dwXCountChars&,dwYCountChars&,dwFillAttribute&,dwFlags&,wShowWindow#(2),cbReserved2#(2),lpReserved2&,hStdInput&,hStdOutput&,hStdError&

Proc gfInfo

    Declare gfI_stInf#,gfI_Erg&,gfI_Erg$
    Dim gfI_stInf#,STARTUPINFO
    Clear gfI_stInf#,gfI_Erg&,gfI_Erg$
    GetStartupInfo(gfI_stInf#)
    Case (gfI_stInf#.lpTitle& > 0): gfI_Erg$ = String$(gfI_stInf#.lpTitle&,0)
    Case (InStr(".LNK",Upper$(gfI_Erg$)) = 0): gfI_Erg$ = Par$(0)
    Dispose gfI_stInf#
    Return gfI_Erg$

EndProc

cls
Print
Print gfInfo()
WaitInput
End

unfortunately does it on Win98.

Nachtrag: something vereinfacht!
 
Salu Michael...

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



Ha! it hats! OK, the let I count. The Flag ließe itself nebenbeigesagt from your first code to charge.

here my code moreover:
CompileMarkSeparation
Def @GetStartupInfo(1) !"KERNEL32","GetStartupInfoA"
Def @lstrcpy(2) !"KERNEL32","lstrcpyA"
Declare Startup&,Fehler&,STARTUPINFO#,Link#,Antwort$[15],Antwort%

IF @VAL($WINVER)<5

    @Messagebox("Aua! Auf deinem System will ich nicht laufen!","Info",64)
    end

endif

Struct STARTUPINFO=cb&,lpReserved&,lpDesktop&,lpTitle&,dwX&,dwY&,dwXSize&,dwYSize&,dwXCountChars&,dwYCountChars&,dwFillAttribute&,dwFlags&,wShowWindow%,cbReserved2%,lpReserved2&,hStdInput&,hStdOutput&,hStdError&
DIM STARTUPINFO#,STARTUPINFO
Clear STARTUPINFO#
STARTUPINFO#.cb&=@SizeOf(STARTUPINFO#)
LET FEHLER&=@GetStartupInfo(STARTUPINFO#)

IF STARTUPINFO#.dwFlags& | $800 = STARTUPINFO#.dwFlags&

    Windowstyle 31
    Windowtitle "Über Link gestartet"
    Window 0,0-640,440
    DIM Link#,5000
    @lstrcpy(Link#,STARTUPINFO#.lpTitle&)
    Print "Gestartet über den Link:"
    Print @STRING$(LINK#,0)
    Dispose Link#
    color 12,15
    Print "Netter Link, darf ich den behalten?"

    WHile 0=0

        Waitinput

    wend

Else

    LET Antwort$[0]="Ohne einen Link starte ich nicht!"
    LET Antwort$[1]="ICH WILL VERLINKT WERDEN!"
    LET Antwort$[2]="Erstelle bitte einen Startmenüeintrag für mich!"
    LET Antwort$[3]="Ich will ein LNK!"
    LET Antwort$[4]="Verlink mich bitte."
    LET Antwort$[5]="So will ich nicht laufen! Bitte in einen Link!"
    LET Antwort$[6]="Ich will verlinkt werden!"
    LET Antwort$[7]="Einen Link auf dem Desktop bitte..."
    LET Antwort$[8]="Ich möchte ins Startmenü!"
    LET Antwort$[9]="Sei nicht so link und verlink mich endlich!"
    LET Antwort$[10]="Bau mir sofort einen Startmenüeintrag!"
    LET Antwort$[11]="Ich will nur aus einem Link gestartet werden!"
    Randomize
    LET Antwort%=@RND(12)
    @Messagebox(Antwort$[Antwort%],"Nöööö!",64)

endif

Dispose STARTUPINFO#

Greeting

Andreas
 
10/03/06  
 



Hello Michael...

The Flag for the started from the Schnellstartleiste out shining $A00 To his. unfortunately there this Flag under windows2000 not yet - can the means not to check on. The Flag for a Start over Link is $800. Diesen Flag there only NT-based Systemen.
 
10/03/06  
 




Michael
Dell
class,

thanks Andreas!

Werd me another bisschen umsehn there Gibts sure yet somewhere what To experienced.
 
Salu Michael...

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



In StartupInfo there further, very interesting and undokumentierte things in reference on CreateProcess...
 
10/03/06  
 




Michael
Dell
Hello Andreas,

with CreateProcess must I time ganauer befassen!

have mach long search to following Konstanten found:
CompileMarkSeparation$0A00 is ne combination from (&STARTF_TITLESHORTCUT | &STARTF_USEHOTKEY).

&STARTF_USEHOTKEY becomes but not staid if (by me) from the zugeklappten area the Schnellstartleiste or at Systemstart from the Autostart Ordner launched becomes.

@iF: Wärs not well we're NEN Thread hätten in the any Header- Files stick and the then regularly Aktuallisiert go. then could too new discovered Konstanten as here added.
 
Salu Michael...

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



[quote:606202988e=Michael Dell]@iF: Wärs not well we're NEN Thread hätten in the any Header- Files stick and the then regularly Aktuallisiert go. then could too new discovered Konstanten as here added. [/quote:606202988e]
clear - one system to existing Yes already - The ODoku.

I werds time vormachen already in order to look whether the system for suitable is.

so - habs tested. It's all right not yet - I the ODoku first procure must with so many data umzugehen.

If this happen is set I The Headerfiles simply time mere. there can The Files then Yes of each machine go.
 
10/04/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.356 Views

Untitledvor 0 min.
Uwe Lang08/10/13
Julian Schmidt07/25/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