Welche beiden Dateien? Die für den Autostart oder welche meinst Du?
Crazy-A(lina)
Welche beiden Dateien? Die für den Autostart oder welche meinst Du?
Crazy-A(lina)
Also bei meinem Sick ist das so:
1. Möglichkeit
a) rein stecken
b) Sicherheitspasswort eingeben
c) Danach kann ich in der Menü-Auswähl ein Programm aufrufen.
2. Möglichkeit
a) rein stecken
b) Autostart wird ausgeführt
c) mein eigenes Menü, das ich mit AutoIt erstellt habe wird gestartet
Schau mal diese Seite an: http://de.wikipedia.org/wiki/U3_(Standard)
Hier kannst Du vieles nachlesen und da sind gute Links. Ich habe z. B. ein Programm, das Programme zu U3 installationsfähigen und U3 ausführbare Dateien macht. Die kann man dann sogar an andere U3-ler weiter geben, wenn man das bei der U3-Programmerstellung zugelassen hat. So bekommt man auch irgendwie AutoIt U3 lauffähig. Weiß nur nicht mehr wo ich das gelesen habe. Wenn es mir einfällt poste ich es.
Gruß, Crazy-A.
(ohne sich durch tausende Posts zu quälen) ?
Ich glaube das nennt sich das "Forum-SM" oder "Die Befriedigung der Selbstfindung". ![]()
Aber SPASS bei Seite.
Also wieso "quälst" Du dich dann mit dem selber machen ab und nutzt nicht Freewaretools. Also ich sehe AutoIt als Herausforderung etwas zu lernen. Ich habe zwar auch viele Probleme mit dem entwickeln, aber die SuFu ist doch oft sehr hilfreich. Es gibt User, die testen einen SuFu Tips die sie geben vorher, damit der, der das Problem hat versucht selbstständig in den bereits veröffentlichen Postings Hilfe zu bekommen. Also das ist doch nichts zum quälen, oder?
Also, erfolgreiches lesen und scripten.
Crazy-A
Hallo.
Da war blubbstar schneller als ich. ![]()
![]()
Tip: Suchfunktion (Abk.: SuFu)
Wenn Du in der Sufu den Begriff "upload" verwendest, wirst Du vieles finden, was Dir weiter hilft. Die SuFu hilft Dir sehr oft, die Grundfragen zu beantworten. Sehr oft findest Du über die SuFu auch Scripte, wo das Problem gelöst ist. Wenn nicht, dann sich aber die Beispiele aus den Funktionsreferenzen (siehe Doku) evtl. besser nachvollziehbar.
So, viel Erfolg.
Crazy-A
Schaust Du hier die Postings durch? Ui, da wir einem ja geholfen ![]()
http://www.autoit.de/index.php?page=Board&boardID=2
Gruß, Crazy-A.
@JoEtHeKiLlEr
Wenn Du jetzt noch sagst wie man / Frau das einbaut, zeigst Du das Du es auch anwenden kannst. Ich weiß es nicht und kann es noch nicht anwenden.
Crazy-A
@JoEtHeKiLlEr
Naja, einfach da wo die zweite Zeile anfangen soll einen Umbruch machen ![]()
Crazy-A
Hallo muh kuh.
Also U3 kann ich nur sagen: genial !
Passwortschutz ist dabei, so kann man nur an die Daten, wenn man das PW eingegeben hat. Ich habe da ein kleines GUI, das öffnet sich dann und dort habe ich dann AutoIT und Scite drauf laufen.
AutoIT und Scite auf Stick? Ja, also bei mir läuft das einwandfrei. Stick rein und im GUI auswählen und alles läuft. Die Registryeinträge habe ich auf dem Stick als exportierte Datei und importiere diese einfach wieder. Habe ich mir so angewöhnt, als ich noch nicht wußte, das man das via Script auch ein- bzw. austragen lassen kann.
Wenn Du Dir ein U3 holst, dann sichere die Daten die da drauf sind. Wenn Du den Stick mal formatieren möchtest, dann brauchst Du diese evtl.
Wieso muß ich bei dem Nick "muh kuh" immer an diese leckeren Sahnebonbons denken? Wenn die nur nicht so auf die Figur gehen würden ![]()
LG, Crazy-A
Hier ist doch alles dazu gesagt.
Scite downloaden, installieren, aufrufen und dann ist oben Tools.
Wenn du Rechte Maustaste sagst und dann compile with options....
ggh scite4autoit downloaden
http://www.autoitscript.com/autoit3/scite/
sind paar nette addons dabei...
Oder möchtest Du es ohne Scite? Wenn ja, wozu und das kann ich Dir dann auch nicht beantworten. Wenn Du nur den Compiler haben möchtest, dann mußt Du das auch sagen, denn das ist erst einmal eine Vermutung von mir, das Du evtl. das meinst.
Gruß, Crazy-A.
@Deepred
Hallo.
Wenn Du ein Script fertig hast, gehst Du auf Tools --> Compile und dann kommt unten ersichtliches Bild, das mehr als tausend Wort sagt. ![]()
Zum vergrößern bitte anklicken.
Gruß, Crazy-A
Hallo zusammen.
Habe jetzt die Nacht über versucht das Problem, das ich noch hatte (siehe Gestern, 17:35) zu lösen, aber ich bekomme die Einschränkung der Sonderzeichen nicht hin.
Habe es mit AND, OR versucht, aber erfolglos.
Wo und wie schreibt man diese Einschränkung?
Sorry, aber jetzt werde ich gleich noch schnell frühstücken und dann erst einmal etwas schlafen.
Es grüßt,
Crazy-A(lina)
Wo ist bitte der Unterschied zwischen:
- #AutoIt3Wrapper_Res_File_Add=Datei.exe
und
- FileInstall("C:\Datei.exe", "D:\mydir\Datei.exe")
Das mit dem Wrapper sind mir eh noch Wälder aus Böhmen. ![]()
Crazy-A
@GTA spider.
Interne HDD's oder externe. Bei externer hatte ich das auch, habe dann die Partitionen gelöscht und neu NTFS formatiert. Lag laut Saturn, wo ich angerufen hatte, an verschiedenen Formaten. Aber garantieren kann ich nicht, das es daran liegt.
LG, Crazy-A.
häääääääääää
Wenn Du "MindGenius Home 2" zur Erklärung verwendest, dann verstehen es evtl. auch Blondinen. ![]()
Crazy-A
peethebee .
Das macht, wenn ich im Juni in Nürnberg bin, wohl ein Cappu in Würzburg ![]()
Fahre ja eh dran vorbei LOL
Aber nochmals zu meinem Problem, kann man die Sonderzeichen so begrenzen, wie ich 17:35 Uhr gepostet habe?
LG, Crazy-A
Wie mach ich es, das als Sonderzeichen nur folgende angenommen werden:
Dec Char
33 !
34 "
35 #
36 $
37 %
38 &
39 '
40 (
41 )
42 *
43 +
44 ,
45 -
47 /
58 :
59 ;
60 <
61 =
62 >
63 ?
64 @
92 \
95 _
Das sind gem. Internet die am meinsten zugelassenen Sonderzeichen.
Danke und habt einen schönen sonnigen Feierabend.
LG, Crazy-A(lina)
Hallo.
Da sagte ich mal herzlichen DANK.
Aber ich meine, das man die Zeichen nicht alle für Passwörter nutzen könnte. Da gibt es doch nur gewisse Zeichen, die man dazu benutzen darf, oder?
Aber ansonsten richtig gut !!!
LG, Crazy-A(lina)
Hallo zusammen.
Ich habe folgende GUI:
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]$Test = GUICreate("Test", 578, 388, 193, 125)
$Group1 = GUICtrlCreateGroup("24 x 12", 16, 48, 545, 321)
GUICtrlSetFont(-1, 10, 400, 0, "Arial")
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Input1 = GUICtrlCreateInput("Name", 56, 16, 145, 21)
$Name = GUICtrlCreateLabel("Name", 16, 16, 38, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Arial")
$Passwort = GUICtrlCreateLabel("Passwort", 216, 16, 66, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Arial")
$Input2 = GUICtrlCreateInput("Passwort", 288, 16, 129, 21)
$OK = GUICtrlCreateButton("OK", 432, 16, 129, 25, 0)
GUICtrlSetFont(-1, 10, 400, 0, "Arial")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Ich möchte, wenn man auf den OK-Button drückt folgendes passiert:
Es sollen 12 Zeilen à 24 Buchstaben, Zahlen und Sonderzeichen erstellt werden.
Erlaubt sind A-Z und a-z und 0-9 und alle allgemein erlaubte Sonderzeichen die man z. B. auch für ein Passwort verwenden darf.
Es sollte die Auswahl über Name und Passwort festgesetzt werden, d. h. wenn ich beide Angaben habe, das die Ausgabe immer die gleiche ist.
Wer kann mir da helfen?
In bester Urlaubsstimmung und LG,
Crazy-A(lina)
Also ich habe das hier mal gefunden und gespeichert:
Das eigentliche Script:
#include "_MouseEvents.au3"
GuiCreate('Test', 500, 110)
[/autoit] [autoit][/autoit] [autoit]$picture1 = GuiCtrlCreatePic(@ScriptDir & '\Exit - Normal.bmp', 30, 30, 80, 50)
$picture2 = GuiCtrlCreatePic(@ScriptDir & '\Exit - Normal.bmp', 110, 30, 80, 50)
$picture3 = GuiCtrlCreatePic(@ScriptDir & '\Exit - Normal.bmp', 190, 30, 80, 50)
$picture4 = GuiCtrlCreatePic(@ScriptDir & '\Exit - Normal.bmp', 270, 30, 80, 50)
$picture5 = GuiCtrlCreatePic(@ScriptDir & '\Exit - Normal.bmp', 350, 30, 80, 50)
_MouseCreatePicButton($picture1, "Exit - Normal.bmp", "Exit - Hover.bmp", "Exit - Pressed.bmp")
_MouseCreatePicButton($picture2, "Exit - Normal.bmp", "Exit - Hover.bmp", "Exit - Pressed.bmp")
_MouseCreatePicButton($picture3, "Exit - Normal.bmp", "Exit - Hover.bmp", "Exit - Pressed.bmp")
_MouseCreatePicButton($picture4, "Exit - Normal.bmp", "Exit - Hover.bmp", "Exit - Pressed.bmp")
_MouseCreatePicButton($picture5, "Exit - Normal.bmp", "Exit - Hover.bmp", "Exit - Pressed.bmp")
AdLibEnable("_MouseCheckEvents", 50) ; we can use a bigger interval, at least in this example
[/autoit] [autoit][/autoit] [autoit]GuiSetState()
[/autoit] [autoit][/autoit] [autoit]While 1
Switch GuiGetMsg()
Case -3
Exit
EndSwitch
Wend
Die _MouseEvents.au3 kommt ins gleiche Verzeichnis und die sieht so aus:
#cs ====================================================================================================================================
_MouseEvents.au3
Description: Detection of mouse events for controls
AutoIt Version: 3.2.2.0
Author: alc? Heavily based on code by marfdaman (Marvin) and RazerM
post: http://www.autoitscript.com/forum/index.php?showtopic=28714
#ce ====================================================================================================================================
[/autoit] [autoit][/autoit] [autoit]#include <Array.au3>
[/autoit] [autoit][/autoit] [autoit]#include-once
[/autoit] [autoit][/autoit] [autoit]Local $HoverList[1][2]
; List of controls to be checked, see _MouseAddCtrl()
Local $HoverActive = 0
; Index of the control being hovered when executing the previous check
; (0 if the mouse was not hovering any control in the list)
Local $Found = 0
; Index of the control detected as been hovered in the current check
; (0 if the mouse is not hovering any control in the list)
Local $PressActive = 0
; Index of the control detected with mouse down in the previous check
; (0 if not detected)
Local $Pressed = 0
; Index of the control detected with mouse down in the current check
; (0 if not detected)
Global Enum $MouseEvent_Enter, $MouseEvent_Exit, $MouseEvent_Down, $MouseEvent_Up
; These values indicate the type of event that took place, see _MouseAddCtrl()
#cs ===============================================================================
_MouseAddCtrl($_ControlID, $_Functioname)
Description: Create or modify the list of controls to be checked
Parameter(s): $_ControlID -> ControlID of control to be checked
$_Functioname -> Function to be called when an event will be detected for this control
prototype of function declaration: Func Button1_MouseEvents($_ControlID, $EventType)
$_ControlID is the ControlID of the control
$EventType is the event type identifier, see the Enum
If value $_ControlID is already in the list, its function name is redefined. This allow to change the reaction of th buttons if neede
If $_Functioname = "", we do nothing (the control is "check disabled")
$_ControlID = 0 is a special case. For this value, the function passed is the function to be called when the app
detects a click outside his window. This function will not receive any arguments (no sense, no need)
The default value for this function name is "", which means do nothing, just return from the check function
Requirement: Array.au3
Return Value(s): None
#ce ===============================================================================
Func _MouseAddCtrl($_ControlID, $_Functioname)
If $_ControlID = 0 Then
$HoverList[0][1] = $_Functioname
Else
For $i = 1 to UBound($HoverList) - 1
If $HoverList[$i][0] = $_ControlID Then
$HoverList[$i][1] = $_Functioname
Return
EndIf
Next
ReDim $HoverList[UBound($HoverList) + 1][2]
$HoverList[UBound($HoverList) - 1][0] = $_ControlID
$HoverList[UBound($HoverList) - 1][1] = $_Functioname
EndIf
EndFunc
#cs ================================================================================================================================
_MouseCheckEvents()
Description: Checks whether the mouse cursor is hovering or going down/up over any of the defined controls.
If a control has matched, the function defined for this control is called
(see _MouseAddCtrl())
If we have 2 controls too close, and the mouse hovers from one to another in the same check, both
functions are called, in the correct order
To be called from AdLibEnable()
Parameter(s): None
Requirement: None
Return Value(s): None
Notes: Since this function is designed to be called from AdLibEnable(), and because of his nature, it should not return
an error
Errors in the control's functions should be treated there
The only posible error here is if we call a control's function that doesn't exist, which will be almost always
a design time error
To intercept very fast clicks, set the AdlibEnabled() interval to 100-150
For normal clicks, you can leave the default value
#ce ===============================================================================================================================
Func _MouseCheckEvents()
; we should get an array
$HoverData = GUIGetCursorInfo()
If Not IsArray($HoverData) Then
; click outside the app window
If $HoverList[0][1] <> "" Then
Call($HoverList[0][1])
EndIf
Return
EndIf
; check if the mouse is hovering or pressed over any control of the list
$Found = 0
$Pressed = 0
For $i = 1 To UBound($HoverList)-1
If $HoverData[4] = $HoverList[$i][0] Then
; the mouse is over a control of the list, grab its number
$Found = $i
If $HoverData[2] Then
; the mouse is pressed over a control of the list, grab its number
$Pressed = $i
EndIf
ExitLoop
EndIf
Next
; Determine if the mouse button state has changed since the last check
; $PressActive=0 And $Pressed=1 => MouseDown
; $PressActive=1 And $Pressed=0 => MouseUp
; $PressActive = $Pressed => no cambió
If $PressActive <> 0 Then
If $Pressed <> $PressActive Then
Call($HoverList[$PressActive][1], $HoverList[$PressActive][0], $MouseEvent_Up)
If $Pressed <> 0 Then
Call($HoverList[$Pressed][1], $HoverList[$Pressed][0], $MouseEvent_Down)
EndIf
$PressActive = $Pressed
EndIf
ElseIf $Pressed <> 0 Then
Call($HoverList[$Pressed][1], $HoverList[$Pressed][0], $MouseEvent_Down)
$PressActive = $Pressed
EndIf
; Determine if the mouse entered and/or leaved a control since the last check
; $HoverActive=0 And $Found=1 => Enter
; $HoverActive=1 And $Found=0 => Exit
; $HoverActive = $Found => no entró ni salió
If $HoverActive <> 0 Then
If $Found <> $HoverActive Then
Call($HoverList[$HoverActive][1], $HoverList[$HoverActive][0], $MouseEvent_Exit)
If $Found <> 0 Then
Call($HoverList[$Found][1], $HoverList[$Found][0], $MouseEvent_Enter)
EndIf
$HoverActive = $Found
EndIf
ElseIf $Found <> 0 Then
Call($HoverList[$Found][1], $HoverList[$Found][0], $MouseEvent_Enter)
$HoverActive = $Found
EndIf
SetError(0) ; jic
EndFunc
#cs ----------------------------------------------------------------------------
_MouseCreatePicButton($_ControlID, $_Image, $_ImageH, $_ImageP, $_Functionname = "_MousePicButtonEvents")
Description: Adds a control to the check list and create "pointers" to the images needed to
represent the states of the control
"Pointers" consist of environment variables named after the control ID and the
different states
Parameter(s): $_ControlID -> ID given to the control when it was created
$_Image -> Filename of the image for the normal state
$_ImageH -> Filename of the image for the hovered state
$_ImageP -> Filename of the image for the pressed state
$_Functionname -> function to be called when a mouse event is detected
for this control
The default function just change the picture according to the event
(see below)
Use this argument if you need another behaivor
Requirement: None
Return Value(s): None
Note: As "pointers" are created by EnvSet(), they are automatically destroyed
upon exit
#ce ----------------------------------------------------------------------------
Func _MouseCreatePicButton($_ControlID, $_Image, $_ImageH, $_ImageP, $_Functionname = "_MousePicButtonEvents")
; Add to check list
_MouseAddCtrl($_ControlID, $_Functionname)
; Create the "pointers" to the images for this button
EnvSet($_ControlID & "N", $_Image)
EnvSet($_ControlID & "H", $_ImageH)
EnvSet($_ControlID & "P", $_ImageP)
EndFunc
#cs ----------------------------------------------------------------------------
_MousePicButtonEvents($_ControlID, $_Event)
Description: Changes the picture of a control when an event is detected
To be called from _MouseCheckEvents() when an event is detected for
one of the "buttons" created with _MouseCreatePicButton
Normally, this function will be called automatically
Parameter(s): $_ControlID -> ID of the control that raised the event
$_Event -> The type of event (a value from the Enum, see above)
Requirement: None
Return Value(s): None
Note: The function asumes the pictures exist
#ce ----------------------------------------------------------------------------
Func _MousePicButtonEvents($_ControlID, $_Event)
Switch $_Event
Case $MouseEvent_Exit
GUICtrlSetImage($_ControlID, EnvGet($_ControlID & "N"))
Case $MouseEvent_Down
GUICtrlSetImage($_ControlID, EnvGet($_ControlID & "P"))
Case Else
GUICtrlSetImage($_ControlID, EnvGet($_ControlID & "H"))
EndSwitch
EndFunc
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit];--------------------------
[/autoit] [autoit][/autoit] [autoit];~ #cs ----------------------------------------------------------------------------
[/autoit] [autoit][/autoit] [autoit];~ #ce ----------------------------------------------------------------------------
;~ Func ()
;~
;~
;~ EndFunc
Zum Testen einfach noch drei BMP's mit den Dateinamen
Exit - Hover.bmp
Exit - Normal.bmp
Exit - Pressed.bmp
und der Größe 80 x 50 Pikel erstellen. Größe gem. Script.
Habe leider die Bilder nicht mit auf meinen Stick gespeichert, aber das sollte kein Problem sein sich mal schnell diese drei BMP's zu erstellen.
Gruß, Crazy-A
Hallo zusammen.
Also eine MAC Adr. ist meine ich gar keine so sichere Methode, wenn man die MAC des Erstellers kennt.
Remus, weiß jemand Deine MAC Adr. dann gibt es ausreichend Möglichkeiten diese zu übernehmen. Aber darauf werde ich hier aus Sicherheitsgründen nicht eingehen.
Aber diese Art ist schon mal ein Sicherheitspunkt, der gut gedacht ist und wenn man ihn evtl. noch codiert gar nicht übel. Ich arbeite auch mit der MAC Adr., aber ich weiß auch, das man es umgehen kann. So, wie vieles am PC und im weltweiten Netz.
Mach weiter so, denn Du hast gute Ideen.
Gruß, Crazy-A.