English
Forum

XProfan-Program into windows-Autostart present

 

Bamboo
my Program save Birthdays and two Termineinträge.
now had I gladly, that the program automatically launch, if one datumsgleicher entry vorliegt.
written in XProfan
thanks in the ahead for response and Help
 
Manche Menschen werden deshalb schlecht, weil es ihnen zu gut geht.
07/24/16  
 




RICOSCH
Program with windows "Autostart" started > Entries inquire > Program terminate let.
power only sense if the computer too daily new launched becomes ;)

but since Gibts still windows -Calendar ;)

...and task "Aufgabenplaner" ;)
 
XProfan X3
I LOVE TOOLS
07/24/16  
 




Bamboo
my Program has nothing with the windows-Calendar or the Aufgabenplaner To do.
It's all right me circa a code, with the I from whom "Programm-Einstellungen" in my Program a Autostart-Text Generate can.
 
Manche Menschen werden deshalb schlecht, weil es ihnen zu gut geht.
07/24/16  
 




Jörg
Sellmeyer
u/nter DDEExecute find You an example, How is a Programmgruppe created and there a Link anlegt. this is already something older, ought to but still function.
otherwise can you into Registry under "HKEY_CURRENT_USER\software\Microsoft\windows\CurrentVersion\Run" a entry produce (WriteIni HKEY_2,...) and there your Program present.
 
XProfan X3
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/24/16  
 




Bamboo
to that better understanding show I here whom editor from my Tool.
there wirden for birthday and 2 Termineinträge data stored.
the Program should itself but only then report, if Date and entry coincide. at that birthday naturally only the first 5 characters, with whom Terminen the complete comparison with date$(0)

61 kB
Bezeichnung:Insert-Demo
Version:Beta
Kurzbeschreibung: this is the editor
Hochgeladen:07/24/16
Downloadcounter62
Download
 
XProfan X2
Manche Menschen werden deshalb schlecht, weil es ihnen zu gut geht.
07/24/16  
 




Bamboo
so sees the available code from:

'######################################################
IF CLICKED(start_on&)

    Writeini "HKEY_1","Software\\Microsoft\\windows\\CurrentVersion\\Run",\
    programm_art$=CHR$(34)+controll$+CHR$(34)
    ASSIGN #2,auto_datei$
    REWRITE #2
    PRINT #2,"AKTIV"
    CLOSE #2
    EnableWindow start_on&,0
    EnableWindow start_off&,1

ENDIF

'-----------------------------------------------------

IF CLICKED(start_off&)

    DELETEKEY "Software\\Microsoft\\windows\\CurrentVersion\\Run",programm_art$
    ASSIGN #2,auto_datei$
    REWRITE #2
    PRINT #2,"NICHT AKTIV"
    CLOSE #2
    EnableWindow start_on&,1
    EnableWindow start_off&,0

ENDIF

'######################################################

PROC DELETEKEY

    Parameters RegPfad$, entry$
    Declare lever%
    External("ADVAPI32", "RegCreateKeyExA", $80000001, Addr(RegPfad$), 0, 0, 0, $20006, 0, Addr(lever%), 0)
    External("ADVAPI32", "RegDeleteValueA", lever%, Addr(entry$))
    External("ADVAPI32", "RegCloseKey", lever%)

ENDPROC


'######################################################

have moreover a EXE-File written, also in the Programmverzeichnis standing and the relevanten data with PC-Start controlled. functions but unfortunately not.
it comes The Error Message 104 - means seek the program a File.
I suspect, that The here used List view.dll of Frank Abbing The thing ausbremst. has there someone experience with ?
thanks for Rückantwort
 
Manche Menschen werden deshalb schlecht, weil es ihnen zu gut geht.
07/24/16  
 




Jörg
Sellmeyer
the here goes so Schonmal not:
Writeini "HKEY_1","Software\\Microsoft\\windows\\CurrentVersion\\Run",\
programm_art$=CHR$(34)+controll$+CHR$(34)

Writeini "HKEY_1","Software\\Microsoft\\windows\\CurrentVersion\\Run",\
programm_art$ + "=" + CHR$(34)+controll$+CHR$(34)

Perhaps should You you first The Basisroutinen for the write and reading in the Registry create and thereafter these in your Program insert.
then can you rather comb out, where since the Error lying.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/24/16  
 




Bamboo
Jörg
your code, with "=" extended, created a Error Message.
"Zuwenig Parameter..."
my code writes correctly. into Registry (CCleaner under "Autostart" nachgesehen), but then hakt it. The Start the actual Program fractures with the Error Message 104 ex ???
 
XProfan X2
Manche Menschen werden deshalb schlecht, weil es ihnen zu gut geht.
07/24/16  
 




Jörg
Sellmeyer
Ah - ok. there Have I vertan.

How very should because the Startaufruf your Program looks? the goes from your Codeauszug not forth and whom Information can yet only guess.
 
XProfan X3
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/24/16  
 




Bamboo
Jötg
on itself integrally simply and until crash works the indeed.
code-abbreviation:
Assign #1,File$
RESET #1
WHILENOT EOF(#1)
INPUT #1,txt$
IF LEFT$(date$(0),5) = txt$
RUN Program$
ENDIF
ENDWHILE
CLOSE #1
END
in the Hauptprogramm becomes then a GridBOX with the vorhanenen Tagesdaten opened.
the functions too, if I the program with Double click starte.
with
RUN Program$
crash
Have with both Alternativen GETDIR$("@") or $PROGDIR attempts.
always the same Result - Error 104
my suspicion is the List view.dll
 
Manche Menschen werden deshalb schlecht, weil es ihnen zu gut geht.
07/24/16  
 




Michael
W.
"Dateikennung fehlt"
or
"Datei not to that reading geöffnet"

GETDIR$("@") -- ought to in new Betriebssystemen not used go

and the what You there written have, becomes the because in the program- directory stored (the one evtl. no rights has)?

or in the Datenverzeichnis (under $AppDataDir)
 
Alle Sprachen
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
07/24/16  
 




Bamboo
Michael
The Declaration File$  is in the Hauptprogramm and calls The CSV-File with the Einträgen on.
she's in the Unterverzeichnis INS_DATEN present and any Paths are correctly. indicated.
its me one puzzel, Why the eigentliche Program with Double click launch, but with RUN Program$  not.
 
XProfan X2
Manche Menschen werden deshalb schlecht, weil es ihnen zu gut geht.
07/24/16  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

17.599 Views

Untitledvor 0 min.
iF10/31/20
Uwe Lang12/20/19
Walter04/30/19
AndreasS12/24/18
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