Hallo zusammen.
Ich möchte mir ein Helferlein basteln und würde euch gern die Infos geben und erhoffe mir Ansätze und Funktionsvorlagen für ein gutes Komplettscript.
Sprich, ich möchte nicht, dass ihr es komplett selber schreibt aber ich werde garantiert viel Hilfe benötigen.
Also:
In meiner Firma haben wir eine Software für eine Ticketerfassung für Supportfälle.
Ich habe dann als Beispiel ein Fenster geöffnet, wo ich das Fälligkeitsdatum gesetzt habe und mein nächster Schritt wäre es, einen Termin in Outlook zu erstellen.
Das tut ich recht häufig und immer sehr ähnlich, dass ich mir dachte, das geht doch auch "fast" automatisch.
Ablauf:
Spoiler anzeigen
Fenster ist offen.
Ich starte das Script bei Bedarf manuell.
Das Script prüft, wieviele Fenster offen sind, die mit dem Titel beginnen:
Helpdesk: Request
Fensterinfo:
Spoiler anzeigen
>>>> Window <<<<
Title: Helpdesk: Request 201013691 (Firma GmbH)
Class: TfrmHelpdesk
Position: 1727, 32
Size: 1024, 752
Style: 0x16CF0000
ExStyle: 0x00010100
Handle: 0x000A0F98
Sollte es mehr als eins geben, soll eine Radio-Auswahl erscheinen.
Anzeige der Auswahlmöglichkeit = kompletter Titel des Fensters
Dann werden weitere Infos vom ausgewählten Fenster ausgelesen:
Das Script liesst folgende Controlls aus
$Datum Control:
Spoiler anzeigen
>>>> Control <<<<
Class: TCentronEdtDate
Instance: 1
ClassnameNN: TCentronEdtDate1
Name:
Advanced (Class): [CLASS:TCentronEdtDate; INSTANCE:1]
ID: 592994
Text:
Position: 224, 79
Size: 63, 21
ControlClick Coords: 30, 11
Style: 0x54010084
ExStyle: 0x00000000
Handle: 0x00090C62
$Kursbeschreibung Control:
Spoiler anzeigen
>>>> Control <<<<
Class: TsuiEdit
Instance: 16
ClassnameNN: TsuiEdit16
Name:
Advanced (Class): [CLASS:TsuiEdit; INSTANCE:16]
ID: 594636
Text:
Position: 19, 123
Size: 563, 19
ControlClick Coords: 70, 11
Style: 0x54010084
ExStyle: 0x00000000
Handle: 0x000912CC
$Requestnummer Control:
Spoiler anzeigen
>>>> Control <<<<
Class: TsuiEdit
Instance: 15
ClassnameNN: TsuiEdit15
Name:
Advanced (Class): [CLASS:TsuiEdit; INSTANCE:15]
ID: 594122
Text:
Position: 64, 80
Size: 73, 19
ControlClick Coords: 18, 11
Style: 0x54010884
ExStyle: 0x00000000
Handle: 0x000910CA
$Firmenname
Spoiler anzeigen
>>>> Control <<<<
Class: TCentronMemo
Instance: 2
ClassnameNN: TCentronMemo2
Name:
Advanced (Class): [CLASS:TCentronMemo; INSTANCE:2]
ID: 595378
Text:
Position: 656, 78
Size: 213, 21
ControlClick Coords: 21, 4
Style: 0x54010844
ExStyle: 0x00000000
Handle: 0x000915B2
Dann seh ich die GUI und habe dort Eingabefelder, die bereits teilweise vorausgefüllt sind:
Input1 = Fälligkeitsdatum, editierbar, Datum für Termineintrag bei Outlook 2010
Input1: $Datum
Input2 = Dauer des Termins, editierbar
Input3 = Titel des Termins, editierbar
Input3: Request: $Requestnummer | $Firmenname | $Kurzbeschreibung
Dann soll noch die Kategorie in Outlook rot sein und diese heisst bei mir in Bearbeitung, wenn das wichtig ist zu wissen.
Fertig.
EDIT zuletzt von (Heute, 15:31):
in der GUI noch eine weitere Radio-Auswahl:
Radio1: in beiden (vorausgewählt)
Radio2: nur in meinem Postfach
Radio3: nur im Service-Postfach
Ich habe zwei Postfächer (mein eigenes und eins, was "wie mein eigenes" eingebunden ist [Exchangkonten]), wo in beiden den Termin erstellen will.
Aber der Titel im Service-Postfach in anderes.
Wenn Radio1 dann,
$Titel1=$Input1
$Titel2: "LR " & $Input1
EDITEnde
Vielen Dank für jede Antwort.
Lieben Gruß, Xethria