dann gehts aber doppelt so lang
Beiträge von Scripter192
-
-
das musst du mit einem for loop machen ...
beispiel:
Listview mit einer "Reihe"
[autoit]#include <GUIConstantsEx.au3>
[/autoit]
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#include<guilistview.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("", 625, 443, 192, 124)
$ListView1 = GUICtrlCreateListView("blablablaaaa :D", 72, 56, 185, 297)
_GUICtrlListView_AddItem($ListView1, "bla")
_GUICtrlListView_AddItem($ListView1, "bla2")
_GUICtrlListView_AddItem($ListView1, "bla3")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
MsgBox(0, "", "Inhalte: " & _getcontent($ListView1))
Exit
EndSwitch
WEnd
Func _getcontent($hWnd)
Local $text
$count = _GUICtrlListView_GetItemCount($hWnd)
For $i = 0 To $count
$text &= _GUICtrlListView_GetItemText($hWnd, $i) & " "
Next
Return $text
EndFunc ;==>_getcontentbzw.
Listview mit 2 Reihen
[autoit]#include <GUIConstantsEx.au3>
[/autoit]
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#include<guilistview.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("", 625, 443, 192, 124)
$ListView1 = GUICtrlCreateListView("blablablaaaa :D|kategorie2 :D", 72, 56, 185, 297)
GUICtrlCreateListViewItem("11|12",$ListView1)
GUICtrlCreateListViewItem("21|22",$ListView1)
GUICtrlCreateListViewItem("31|32",$ListView1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
MsgBox(0, "", "Inhalte: " & _getcontent($ListView1))
Exit
EndSwitch
WEnd
Func _getcontent($hWnd)
Local $text
$count = _GUICtrlListView_GetItemCount($hWnd)
For $i = 0 To $count
$text &= _GUICtrlListView_GetItemText($hWnd, $i)&"|"&_GUICtrlListView_GetItemText($hWnd, $i,1) & " "
Next
Return $text
EndFunc ;==>_getcontent -
nach dem ersten starten einfach neuer jahrgang und neues fach fertisch ...
das ganze kommt auch nach dem starten "als administrator"
/edit: 2181 (consolewrite gibt folgendes aus: SELECT FachEx, Gewichtung FROM ("2009-2010") WHERE FachEx = ("Deutsch"); )
/ 2184 :nach dem anzeigen von dem hier:
autoit.de/wcf/attachment/8633/
fängt das programm auf zu funktionieren
greez -
ganz gut
leider passiert bei mir beim erstellen eines neuen fach folgendes:
autoit.de/wcf/attachment/8623/Code
Alles anzeigen>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\Stefan\Desktop\Notenmanager 5.00\Notenmanager.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams +>15:35:47 Starting AutoIt3Wrapper v.2.0.0.3 Environment(Language:0407 Keyboard:00000407 OS:WIN_VISTA/ CPU:X64 OS:X86) >Running AU3Check (1.54.19.0) from:C:\Program Files\AutoIt3 +>15:35:48 AU3Check ended.rc:0 >Running:(3.3.2.0):C:\Program Files\AutoIt3\autoit3.exe "C:\Users\Stefan\Desktop\Notenmanager 5.00\Notenmanager.au3" C:\Users\Stefan\Desktop\Notenmanager 5.00\Notenmanager.au3 (2186) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: If $aResult[$i][2] = 1 Then If ^ ERROR ->15:35:50 AutoIT3.exe ended.rc:1 +>15:35:51 AutoIt3Wrapper Finished >Exit code: 1 Time: 3.866
-
Zitat von PrideRage
Noch nen tipp, baue die Skriptspache für dich um.
Bsp. deine Variable heisst $Num nenn sie $1001102R
Oder statt If $Var >= 100 Then
If $264E1 >= 3000/30 Then
Usw.
Kreativität hilft da weiter
MfG. PrideRagewas dann aber das programmieren schwerer macht weil man ggf. selber durcheinander kommt
-
ja ... und was ist jetzt noch unklar ?
-
$variable &= "dazu" entspricht $variable = $variable & "dazu"
also muss $variable ( in deinem fall $sCom ) vorher schon definiert sein
am besten du setzt an den anfang von deinem script :
[autoit]global $sCom, $funktion
[/autoit] -
ich versteh nich ganz was du damit willst
wenn du alle variabeln definiert hast ( $m="m" $s="s" $g="g" ... )
was willst du dann mit denen machen ?--> Zudem kannst du keine $(="(" erstellen
-
meinst du vllt sowas wie
[autoit]$msgbox='msgbox(0,"","Test")'
[/autoit]
Execute($msgbox) -
windows 7 kann ich dir nich geben
hier die aero.au3 :
aero.au3
[autoit]#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]$Struct = DllStructCreate("int cxLeftWidth;int cxRightWidth;int cyTopHeight;int cyBottomHeight;")
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
$sStruct = DllStructCreate("dword;int;ptr;int"); #FUNCTION#;===============================================================================
[/autoit] [autoit][/autoit] [autoit]
;
; Name...........: _Vista_ApplyGlass
; Description ...: Applys glass effect to a window
; Syntax.........: _Vista_ApplyGlass($hWnd, [$bColor)
; Parameters ....: $hWnd - Window handle:
; $bColor - Background color
; Return values .: Success - No return
; Failure - Returns 0
; Author ........: James Brooks
; Modified.......:
; Remarks .......: Thanks to weaponx!
; Related .......:
; Link ..........;
; Example .......; Yes
;
;;==========================================================================================
Func _Vista_ApplyGlass($hWnd, $bColor = 0x000000)GUISetBkColor($bColor); Must be here!
[/autoit] [autoit][/autoit] [autoit]
$Ret = DllCall("dwmapi.dll", "long", "DwmExtendFrameIntoClientArea", "hwnd", $hWnd, "long*", DllStructGetPtr($Struct))
If @error Then
Return 0
SetError(1)
Else
Return $Ret
EndIfEndFunc ;==>_Vista_ApplyGlass
[/autoit] [autoit][/autoit] [autoit]; #FUNCTION#;===============================================================================
[/autoit] [autoit][/autoit] [autoit]
;
; Name...........: _Vista_ApplyGlassArea
; Description ...: Applys glass effect to a window area
; Syntax.........: _Vista_ApplyGlassArea($hWnd, $Area, [$bColor)
; Parameters ....: $hWnd - Window handle:
; $Area - Array containing area points
; $bColor - Background color
; Return values .: Success - No return
; Failure - Returns 0
; Author ........: James Brooks
; Modified.......:
; Remarks .......: Thanks to monoceres!
; Related .......:
; Link ..........;
; Example .......; Yes
;
;;==========================================================================================
Func _Vista_ApplyGlassArea($hWnd, $Area, $bColor = 0x000000)If IsArray($Area) Then
[/autoit] [autoit][/autoit] [autoit]
DllStructSetData($Struct, "cxLeftWidth", $Area[0])
DllStructSetData($Struct, "cxRightWidth", $Area[1])
DllStructSetData($Struct, "cyTopHeight", $Area[2])
DllStructSetData($Struct, "cyBottomHeight", $Area[3])
GUISetBkColor($bColor); Must be here!
$Ret = DllCall("dwmapi.dll", "long*", "DwmExtendFrameIntoClientArea", "hwnd", $hWnd, "ptr", DllStructGetPtr($Struct))
If @error Then
Return 0
Else
Return $Ret
EndIf
Else
MsgBox(16, "_Vista_ApplyGlassArea", "Area specified is not an array!")
EndIfEndFunc ;==>_Vista_ApplyGlassArea
[/autoit] [autoit][/autoit] [autoit]; #FUNCTION#;===============================================================================
[/autoit] [autoit][/autoit] [autoit]
;
; Name...........: _Vista_EnableBlurBehind
; Description ...: Enables the blur effect on the provided window handle.
; Syntax.........: _Vista_EnableBlurBehind($hWnd)
; Parameters ....: $hWnd - Window handle:
; Return values .: Success - No return
; Failure - Returns 0
; Author ........: James Brooks
; Modified.......:
; Remarks .......: Thanks to komalo
; Related .......:
; Link ..........;
; Example .......; Yes
;
;;==========================================================================================
Func _Vista_EnableBlurBehind($hWnd, $bColor = 0x000000)Const $DWM_BB_ENABLE = 0x00000001
[/autoit] [autoit][/autoit] [autoit]DllStructSetData($sStruct, 1, $DWM_BB_ENABLE)
[/autoit] [autoit][/autoit] [autoit]
DllStructSetData($sStruct, 2, "1")
DllStructSetData($sStruct, 4, "1")GUISetBkColor($bColor); Must be here!
[/autoit] [autoit][/autoit] [autoit]
$Ret = DllCall("dwmapi.dll", "int", "DwmEnableBlurBehindWindow", "hwnd", $hWnd, "ptr", DllStructGetPtr($sStruct))
If @error Then
Return 0
Else
Return $Ret
EndIfEndFunc ;==>_Vista_EnableBlurBehind
[/autoit] [autoit][/autoit] [autoit]; #FUNCTION#;===============================================================================
[/autoit]
;
; Name...........: _Vista_ICE
; Description ...: Returns 1 if DWM is enabled or 0 if not
; Syntax.........: _Vista_ICE()
; Parameters ....:
; Return values .: Success - Returns 1
; Failure - Returns 0
; Author ........: James Brooks
; Modified.......:
; Remarks .......: Thanks to BrettF
; Related .......:
; Link ..........;
; Example .......; Yes
;
;;==========================================================================================
Func _Vista_ICE()
$ICEStruct = DllStructCreate("int;")
$Ret = DllCall("dwmapi.dll", "int", "DwmIsCompositionEnabled", "ptr", DllStructGetPtr($ICEStruct))
If @error Then
Return 0
Else
Return DllStructGetData($ICEStruct, 1)
EndIf
EndFunc ;==>_Vista_ICE -
du könntest das ganze dem "neuen" youtube jetzt noch anpassen
-
-
naja ... verwende ich halt die Strg+a Strg + c methode -.-
-
jo ... hab bei den guictrl funktionen gesucht ...
-
-
doch ... --> mit meiner methode ... mir fällt nur grad nicht ein wie man positionen von controls ermittelt
-
wie krieg ich das raus mit was icq läuft
nach dem [CLASS:Internet Explorer_Server; INSTANCE:3] denk ich mal an internet explorer
-
alle positionen der controls in einer for schleife abfragen und vergleichen
-
gehts nicht auch mit controlgettext ?
bekomm mit dem window info tool keine id angezeigt ... nur [CLASS:Internet Explorer_Server; INSTANCE:3] und das geht mit controlgettext nicht
-
wie kann ich in icq das feld indem die bereits geschriebenen nachrichten sind auslesen ?