Wenn du die Exceltabelle als csv speicherst, dann brauchst du nicht mal ein Excel Object.
Beiträge von Xenobiologist
-
-
HI,
das ist einfach. xls, oder xlsx ? Oder gar csv

Mega
-
Okay, dann versuch bitte mal den Ablauf mit Worten zu beschreiben. Vielleicht gibt es ja einen anderen Ansatz. Möglichst neutral beschreiben, ohne spezielle Autoitfunktionen.
-
Hi,
werde aus deinem Ablauf nicht ganz schlau. Geh einfach auf die ProzessID anstatt des Namens.
Mega
-
Hi,
am einfachsten ist es immer wenn man selbst testen kann. KAnnst du ein Bsp liefern?
Mega
-
Decompile wird nicht mehr unterstützt!
-
Hihi, das kommt davon, wenn man schnell noch was ändert

-
@Xeno: Picture einbinden ist nur in die Word-UDF integriert.

Ach ja

Hier mal ein Auszug!
Spoiler anzeigen
[autoit];===============================================================================
[/autoit] [autoit][/autoit] [autoit]
;
; Description: Insert a picture from a separate file into the active sheet.
; Syntax: _ExcelPictureInsert($oExcel, $sFilePath, $iLeft, $iTop, $iWidth, $iHeight, $fLinkToFile = False, $fSaveWithDoc = False)
; Parameter(s): $oExcel - An Excel object opened by a preceding call to _ExcelBookOpen() or _ExcelBookNew()
; $sFilePath - The full path of the picture to be inserted
; $fLinkToFile - "True" to link the picture to the file from which it was created.
; "False" to make the picture an independent copy of the file. The default value is False.
; $fSaveWithDoc - "True" to save the linked picture with the document. The default value is False.
; $iLeft - The position (in points) of the upper-left corner of the picture relative to the upper-left corner of the worksheet
; $iTop - The position (in points) of the upper-left corner of the picture relative to the top of the worksheet
; $iWidth - The width of the picture, in points
; $iHeight - The height of the picture, in points
; Requirement(s): None
; Return Value(s): On Success - Returns an object representing the inserted picture
; On Failure - Returns 0 and sets @error on errors:
; @error=1 - Specified object does not exist
; Author(s): SEO <locodarwin at yahoo dot com>
; Note(s): None
;
;===============================================================================
Func _ExcelPictureInsert($oExcel, $sFilePath, $iLeft, $iTop, $iWidth, $iHeight, $fLinkToFile = False, $fSaveWithDoc = False)
If Not IsObj($oExcel) Then Return SetError(1, 0, 0)
If Not FileExists($sFilePath) Then Return SetError(2, 0, 0)
If $iLeft < 1 Then $iLeft = 1
If $iTop < 1 Then $iTop = 1
If $iWidth < 1 Then $iWidth = 1
If $iHeight < 1 Then $iHeight = 1
$oExcel.ActiveSheet.Shapes.AddPicture($sFilePath, $fLinkToFile, $fSaveWithDoc, $iLeft, $iTop, $iWidth, $iHeight).Select
Return $oExcel.Selection.ShapeRange
EndFunc ;==>_ExcelPictureInsert;===============================================================================
[/autoit] [autoit][/autoit] [autoit]
;
; Description: Change the position or rotation of a picture object created with _ExcelPictureInsert().
; Syntax: _ExcelPictureAdjust($oPicture, $iHorizontal, $iVertical, $iRotation = 0)
; Parameter(s): $oPicture - An Excel picture object opened by a preceding call to _ExcelPictureInsert()
; $iHorizontal - The number of points to move the picture left or right (positive numbers move the picture to the right)
; $iVertical - The number of points to move the picture up or down (positive numbers move the picture down)
; $iRotation - The number of degrees to rotate the picture clockwise (relative to current position)
; Requirement(s): None
; Return Value(s): On Success - Returns 1
; On Failure - Returns 0 and sets @error on errors:
; @error=1 - Specified object does not exist
; @error=2 - Parameter incorrect
; @extended=0 - $iHorizontal is not a number
; @extended=1 - $iVertical is not a number
; @extended=2 - $iRotation is not a number
; Author(s): SEO <locodarwin at yahoo dot com>
; Note(s): None
;
;===============================================================================
Func _ExcelPictureAdjust($oPicture, $iHorizontal, $iVertical, $iRotation = 0)
If Not IsObj($oPicture) Then Return SetError(1, 0, 0)
If Not IsNumber($iHorizontal) Then Return SetError(2, 0, 0)
If Not IsNumber($iVertical) Then Return SetError(2, 1, 0)
If Not IsNumber($iRotation) Then Return SetError(2, 2, 0)
$oPicture.Select
With $oPicture.Selection.ShapeRange
.IncrementTop($iVertical)
.IncrementLeft($iHorizontal)
.IncrementRotation($iRotation)
EndWith
Return 1
EndFunc ;==>_ExcelPictureAdjust;===============================================================================
[/autoit]
;
; Description: Scale a picture object created with _ExcelPictureInsert().
; Syntax: _ExcelPictureScale($oPicture, $nScaleWidth = 1, $nScaleHeight = 1, $iScaleOrigWidth = True, $iScaleOrigHeight = True, $iScaleFrom = 0)
; Parameter(s): $oPicture - An Excel picture object opened by a preceding call to _ExcelPictureInsert()
; $nScaleWidth - The width scale factor to assign to the picture (1.0 = original size)
; $nScaleHeight - The height scale factor to assign to the picture (1.0 = original size)
; $fScaleOrigWidth - Scale based on original width (True or False)
; $fScaleOrigHeight - Scale based on original height (True or False)
; $iScaleFrom - Specifies which part of the shape retains its position when the shape is scaled
; (0 = Scale from top left, 1 = Scale from middle, 2 = Scale from bottom right)
; Requirement(s): None
; Return Value(s): On Success - Returns 1
; On Failure - Returns 0 and sets @error on errors:
; @error=1 - Specified object does not exist
; @error=2 - Parameter incorrect
; @extended=0 - $nScaleWidth is not a number
; @extended=1 - $nScaleHeight is not a number
; @extended=2 - $fScaleOrigWidth is neither True nor False
; @extended=3 - $fScaleOrigHeight is neither True nor False
; @extended=4 - $iScaleFrom parameter incorrect (out of range)
; Author(s): SEO <locodarwin at yahoo dot com>
; Note(s): None
;
;===============================================================================
Func _ExcelPictureScale($oPicture, $nScaleWidth = 1, $nScaleHeight = 1, $fScaleOrigWidth = True, $fScaleOrigHeight = True, $iScaleFrom = 0)
If Not IsObj($oPicture) Then Return SetError(1, 0, 0)
If Not IsNumber($nScaleWidth) Then Return SetError(2, 0, 0)
If Not IsNumber($nScaleHeight) Then Return SetError(2, 1, 0)
If $fScaleOrigWidth <> True Or $fScaleOrigWidth <> False Then Return SetError(2, 2, 0)
If $fScaleOrigHeight <> True Or $fScaleOrigHeight <> False Then Return SetError(2, 3, 0)
If Not IsNumber($iScaleFrom) Then Return SetError(2, 4, 0)
If Not $iScaleFrom < 1 Or $iScaleFrom > 2 Then Return SetError(2, 4, 0)
$oPicture.ScaleWidth($nScaleWidth, $fScaleOrigWidth, $iScaleFrom)
$oPicture.ScaleHeight($nScaleHeight, $fScaleOrigHeight, $iScaleFrom)
Return 1
EndFunc ;==>_ExcelPictureScaleMega
-
Es gibt auch eine Excel_UDF da sind diese Sachen als Funktionen hinterlegt.
-
Kannst auch sowas machen
[autoit]MsgBox(64, 0, _readLineFromBack('test2.txt', 2))
[/autoit][autoit][/autoit][autoit]Func _readLastLine($filepath, $nr = 0)
[/autoit]
Local $aSplit = StringSplit(StringStripCR(FileRead($filepath)), @LF)
If IsArray($aSplit) Then Return $aSplit[$aSplit[0] - $nr]
Return -1
EndFunc ;==>_readLastLineMega
-
_GUICtrlTab_SetCurSel
-
Danke, gucke ich mir an. (DLL und Kommentarentfernung!)
-
Packer gibt es doch schon sooooo viel
Naja, du könntest es aufteilen und dann parallel lesen. -
Du willst die mittlere Maustaste zur rechten machen?
-
Hey Junx, klasse feedback.
Ich werde die einzelnen Punkte mal durchgehen.1) Fehler (>Exit code: -1073741819 ) kommt wie beschrieben aus der Funktion _stripSourceCode. War mir auch bekannt, daher auch dieser Thread Thread ENG
Ich werde die Kommentare in mehreren Steps löschen müssen. (oder ProgAndy hat seine Lösung bis dahin fertig
)2) Silent Mode : Der Mode kommt natürlich wieder rein. (Also Aufruf ohne GUI mit den Settings aus der ini)
3) Fehler mit UDF Checkbox werde ich ausbauen und die Anmerkung die Checkbox zu disablen wenn kein RegKey vorhanden finde ich auch gut.
4) Nutzung per Kommandozeile und mit anderen Editoren. Genau dafür werde ich die Kommandozeile versuchen einzubauen. Damit sollte dann beides möglich sein. Also Nutzung ohne Scite und Nutzung per Parameterübergabe
5) Die Ermittlung der Beta oder Releaseversion muss ich mir mal anschauen. Eigentlich ist das ja mit der ini oder per Parameter dann ja schon drin.
Mega
-
Hallo zusammen,
auch wenn noch nicht alle features umgesetzt sind, möchte ich schon mal die erste alpha
Version posten und bitte darum diese zu testen.Das zip einfach z.B hier entpacken : c:\Programme\AutoIt3\SciTE\OrganizeIncludes\
(der Ordner OrganizeIncludes ist manuell anzulegen)anschließend in der SciteUser.properties den Aufruf hinterlegen z.B. so:
Die Datei findest du unter : C:\Dokumente und Einstellungen\USER
oder in Scite --> [ Options --> Open User Option File ] aufrufenSpoiler anzeigen
# 36 OrganizeIncludes
command.36.*.au3="$(autoit3dir)\autoit3.exe" "$(SciteDefaultHome)\OrganizeIncludes\OI_1.0.0.0.au3" "$(FilePath)"
command.name.36.*.au3=OrganizeIncludes
command.save.before.36.*.au3=1
command.is.filter.36.*.au3=1
command.shortcut.36.*.au3=Ctrl+Shift+Alt+IVielen Dank im Voraus!
P.S.: Das Skript sucht die benötigen Include Dateien zusammen. Mehr darüber steht z.B. im alten Thread : Thread (alte) Version
Hier gibt es die aktuellste Version : Download Thread
Mega
-
Bevor du den RunWait machst, füg ein consolewrite ein und schau die an was du übergibst.
-
Unter Downloads gibt es auch noch Scite. Dies ist der "bester" Editor für Autoit. Dieser wird voraussgesetzt.
-
Linke Navigatorseite von der Webseite
-
http://www.autoitscript.com/forum/index.php?showtopic=91316&view=findpost&p=657003&hl=vlcau3&fromsearch=1
http://www.autoitscript.com/forum/index.php?showtopic=76230&view=findpost&p=626595&hl=vlcau3&fromsearch=1
http://www.autoitscript.com/forum/index.php?showtopic=85432&view=findpost&p=612797&hl=vlcau3&fromsearch=1