Jau, auch von mir die besten Glückwünsche und alles Gute im neuen Lebensjahr! ![]()
Gruß
Greenhorn
Jau, auch von mir die besten Glückwünsche und alles Gute im neuen Lebensjahr! ![]()
Gruß
Greenhorn
Joup, herzlichen Glückwunsch zum Geburtstag, alter Knochen! ![]()
[Blockierte Grafik: http://i40.tinypic.com/es2mf9.gif]
Gruß
Greenhorn
Hm komisch,
ich hatte 3.3.4.0 installiert - da gings nicht.Nun habe ich 3.3.6.0 installiert und nun geht es.
Dachte es liegt nur an der Hilfedatei.Dem ist wohl nicht so
Da geht es um Prozesse, deren Rechte und die Vererbung dieser an die Kind-Prozesse ..., oder so. ![]()
Gruß
Greenhorn
Hm, vielleicht so ?
[autoit]ControlSetText("Name des Fensters", "", "Edit1", "Text der gesendet wird", 0 )
If (WinActivate ("Name des Fensters")) Then
ControlSend("Name des Fensters", "", "Edit1", "{F4}", 0 )
EndIf
Gruß
Greenhorn
Hm, das scheint mit der Objekt-Geschichte zusammenzuhängen ...
Das Skript im Anhang funktioniert sowohl in 64bit kompiliert, als auch in 32bit.
EDIT:
Im Skript "EnumeratingSubkeys.au3" bitte noch #RequireAdmin hinzufügen, damit die Funktion RecursiveEnumKey den Schlüssel HKLM öffnen kann/darf.
Gruß
Greenhorn
Hi,
GUICtrlCreateRadio ...
Gruß
Greenhorn
Das Problem habe ich gerade auch: Wie finde ich denn ganz allgemein bei Runtime-Fehlern über die angegebene Zeilennummer die zugehörige Zeile im Editor, wenn die Zuordnung durch Include-Statements und Remarks nicht mehr direkt möglich ist? Gibt's da irgendein Tool?
Ja, einfach einen Doppel-Klick auf die Zeile in der Ausgabekonsole ...
Gruß
Greenhorn
Joup, auch von mir herzlichen Glückwunsch zum Geburtstag ! ![]()
Gruß
Greenhorn
Hi,
probiere es mal so in etwa ...
[autoit]
; ...
_GUICtrl_SetOnHover(-1, "_Hover_Image_Proc", "_Hover_Image_Proc")
$button7= GUICtrlCreateButton("test7", 180, 220, 140, 30, $BS_BITMAP)
GUICtrlSetImage(-1, $std_Hover_Image7)
_GUICtrl_SetOnHover(-1, "_Hover_Image_Proc", "_Hover_Image_Proc")
$ID_PICTURE = GuicTRlcreatepic("",245,260,20,20)
[/autoit][autoit][/autoit][autoit]GUISetState(@SW_SHOW)
[/autoit][autoit][/autoit][autoit]if ping("85.131.2037.229") then
GUICtrlSetImage($ID_PICTURE, "up.bmp")
else
GUICtrlSetImage($ID_PICTURE, "down.bmp")
Endif
; ...
Nun, um das alles wieder auf einen Punkt zu bringen:
... bekommen wir zusätzlich zum PostCounter nur noch einen weiteren Ersatzphallus.
Wer's unbedingt braucht, meinetwegen.
Ich persönlich halte solche Statussymbole für oberflächlich und überflüssig.
Aber ist, wie gesagt, nur meine persönliche Meinung. ![]()
Gruß
Greenhorn
Moin,
ich habe da mal etwas zusammengepatcht und es funktioniert sogar ... :):D
Du musst es dir halt noch etwas anpassen ...
#include <GuiConstantsEx.au3>
#include <GuiTreeView.au3>
#include <GuiImageList.au3>
#include <WindowsConstants.au3>
Opt('MustDeclareVars', 1)
[/autoit] [autoit][/autoit] [autoit];««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
Global Const $TVN_RBUTTONUP = -5
;««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
Global $hTreeView, $OptionsDummy, _
$OptionsCommon, $OptionsContext, _
$OptionsExit, $OptionsFile
$Debug_TV = False ; Check ClassName being passed to functions, set to True and use a handle to another control to see it work
[/autoit] [autoit][/autoit] [autoit]Global $hImage, $hStateImage
[/autoit] [autoit][/autoit] [autoit]_Main()
[/autoit] [autoit][/autoit] [autoit]Func _Main()
[/autoit] [autoit][/autoit] [autoit]Local $hItem[10], $hChildItem[30], $iYItem = 0, $iYRand, $iXRand
Local $iStyle = BitOR($TVS_EDITLABELS, $TVS_HASBUTTONS, $TVS_HASLINES, $TVS_LINESATROOT, $TVS_DISABLEDRAGDROP, $TVS_SHOWSELALWAYS)
GUICreate("TreeView Hit Test Item", 400, 300)
[/autoit] [autoit][/autoit] [autoit];««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")
CreateTVPopupMenu( )
;««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
$hTreeView = GUICtrlCreateTreeView(2, 2, 396, 268, $iStyle, $WS_EX_CLIENTEDGE)
_GUICtrlTreeView_SetUnicodeFormat($hTreeView, False)
GUISetState()
_CreateNormalImageList()
_GUICtrlTreeView_SetNormalImageList($hTreeView, $hImage)
_CreateStateImageList()
_GUICtrlTreeView_SetStateImageList($hTreeView, $hStateImage)
_GUICtrlTreeView_BeginUpdate($hTreeView)
For $x = 0 To 9
$hItem[$x] = _GUICtrlTreeView_Add($hTreeView, 0, StringFormat("[%02d] New Item", $x), 4, 5)
_GUICtrlTreeView_SetStateImageIndex($hTreeView, $hItem[$x], 1)
For $y = 1 To 3
$hChildItem[$iYItem] = _GUICtrlTreeView_AddChild($hTreeView, $hItem[$x], StringFormat("[%02d] New Child", $y), 0, 3)
_GUICtrlTreeView_SetStateImageIndex($hTreeView, $hChildItem[$iYItem], 1)
$iYItem += 1
Next
Next
_GUICtrlTreeView_EndUpdate($hTreeView)
_GUICtrlTreeView_SelectItem($hTreeView, $hItem[0])
_GUICtrlTreeView_SetStateImageIndex($hTreeView, $hItem[0], 2)
; Loop until user exits
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>_Main
Func _CreateNormalImageList()
$hImage = _GUIImageList_Create(16, 16, 5, 3)
_GUIImageList_AddIcon($hImage, "shell32.dll", 110)
_GUIImageList_AddIcon($hImage, "shell32.dll", 131)
_GUIImageList_AddIcon($hImage, "shell32.dll", 165)
_GUIImageList_AddIcon($hImage, "shell32.dll", 168)
_GUIImageList_AddIcon($hImage, "shell32.dll", 137)
_GUIImageList_AddIcon($hImage, "shell32.dll", 146)
EndFunc ;==>_CreateNormalImageList
Func _CreateStateImageList()
$hStateImage = _GUIImageList_Create(16, 16, 5, 3)
_GUIImageList_AddIcon($hStateImage, "shell32.dll", 3)
_GUIImageList_AddIcon($hStateImage, "shell32.dll", 4)
EndFunc ;==>_CreateStateImageList
;««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
Func WM_NOTIFY($hwnd, $message, $wParam, $lParam)
Local $nmhdr = DllStructCreate("hwnd hwndFrom;ptr idFrom;int code", $lParam)
Local $idFrom = DllStructGetData($nmhdr, "idFrom")
Switch ($idFrom)
[/autoit] [autoit][/autoit] [autoit]Case $hTreeView
[/autoit] [autoit][/autoit] [autoit]Switch (DllStructGetData($nmhdr, "code"))
[/autoit] [autoit][/autoit] [autoit]Case $TVN_RBUTTONUP
ShowMenu($hwnd, $idFrom, $OptionsContext)
EndSwitch
EndSwitch
Return $GUI_RUNDEFMSG
[/autoit] [autoit][/autoit] [autoit]EndFunc
[/autoit] [autoit][/autoit] [autoit]Func CreateTVPopupMenu( )
[/autoit] [autoit][/autoit] [autoit]; At first create a dummy control for the options and a contextmenu for it
$OptionsDummy = GUICtrlCreateDummy( )
$OptionsContext = GUICtrlCreateContextMenu($OptionsDummy)
$OptionsCommon = GUICtrlCreateMenuItem("Common", $OptionsContext)
$OptionsFile = GUICtrlCreateMenuItem("File", $OptionsContext)
GUICtrlCreateMenuItem("", $OptionsContext) ;----------------
$OptionsExit = GUICtrlCreateMenuItem("Exit", $OptionsContext)
EndFunc
[/autoit] [autoit][/autoit] [autoit]; Show at the given coordinates (x, y) the popup menu (hMenu) which belongs to a given GUI window (hWnd)
Func TrackPopupMenu($hWnd, $hMenu, $x, $y)
DllCall("user32.dll", "int", "TrackPopupMenuEx", "hwnd", $hMenu, "int", 0, "int", $x, "int", $y, "hwnd", $hWnd, "ptr", 0)
EndFunc ;==>TrackPopupMenu
; Show a menu in a given GUI window which belongs to a given GUI ctrl
Func ShowMenu($hWnd, $CtrlID, $nContextID)
Local $arPos
Local $hMenu = GUICtrlGetHandle($nContextID)
$arPos = MouseGetPos( )
[/autoit] [autoit][/autoit] [autoit]If (IsArray ($arPos)) Then
TrackPopupMenu($hWnd, $hMenu, $arPos[0], $arPos[1])
Else
Return False
EndIf
Return True
[/autoit] [autoit][/autoit] [autoit]EndFunc ;==>ShowMenu
[/autoit] [autoit][/autoit] [autoit];«««««««««««««««««««««««««««««««« End of File «««««««««««««««««««««««««««««««««
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit]Gruß
Greenhorn
Ich behaupte einfach mal ja.
Wäre ganz gut, wenn Du die Resourcen einmal anhängen könntest ...
Gruß
Greenhorn
Moin,
passend dazu:
Ein Echtzeit-Experiment
Der Mensch wird zum Datensatz
Ein Artikel aus der FAZ von Frank Rieger, Sprecher des Chaos Computer Clubs.
Sehr lesenswert !
Gruß
Greenhorn
Nun, ich meine auch, dass es "das GUI" heißen müsste, auch wenn ich selbst "die GUI" benutze.
Aber es ist eindeutig DAS (GU)Interface.
Möchte man DIE benutzen, dann sollte man auch DIE Benutzerschnittstelle schreiben/sprechen.
Dann können wir das Ganze auch weiterspinnen: Heißt es das oder der Control, usw., usf. ?
Dazu bei LEO:
GUI die/das
EDIT:
Wikipedia sieht das übrigens auch so: GUI
Zitat von http://de.wikipedia.org/wiki/GuiEine grafische Benutzeroberfläche ...
Ein GUI hat die Aufgabe, ...
Gruß
Greenhorn
Jetzt ist das Chaos perfekt ..., Version 3.3.4.0 ist draußen ! ![]()
Eeeentzückend, Baby. ![]()
Also sollten wir gleich auf 3.3.4.0 updaten, oder ?
Gruß
Greenhorn
Ich frag mal ganz blöd: Hast Du die Installation auch schön brav als Administrator durchgeführt ?
Gruß
Greenhorn
Hi,
hier isses ...
; --- $_POINT
Global Const $_POINT = _
'long x;'& _
'long y;'
; --- $_MSG
Global Const $_MSG = _
'hwnd hwnd;'& _
'uint message;'& _
'uint wParam;'& _
'long_ptr lParam;'& _
'dword time;'& _
$POINT
; [...]
[/autoit] [autoit][/autoit] [autoit]$msg = DllStructCreate ($_MSG)
[/autoit] [autoit][/autoit] [autoit]; [...]
[/autoit]Einen habe ich auch noch ... ![]()
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Test-Gui", 232, 83, 192, 124)
$1 = GUICtrlCreateInput("", 16, 32, 201, 21)
$Label1 = GUICtrlCreateLabel("Format: XXXX-XXXX-XXXX-XXXX", 32, 8, 163, 17)
$Button1 = GUICtrlCreateButton("Weiter", 144, 56, 75, 25, $WS_GROUP)
GUICtrlSetState(-1, $GUI_DISABLE)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
GUIRegisterMsg($WM_COMMAND, '_WM_COMMAND')
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _WM_COMMAND($hWnd, $Msg, $wParam, $lParam)
Local $sInput
Switch (BitAND ($wParam, 0xFFFF))
Case $1
$sInput = StringUpper (GUICtrlRead ($1))
Switch (StringLen ($sInput))
Case 4
ContinueCase
Case 9
ContinueCase
Case 14
GUICtrlSetData ($1, $sInput & '-')
Case 19
GUICtrlSetData ($1, $sInput)
GUICtrlSetState($Button1, BitOR ($GUI_ENABLE, $GUI_FOCUS))
Case Else
GUICtrlSetData ($1, $sInput)
GUICtrlSetState($Button1, $GUI_DISABLE)
EndSwitch
EndSwitch
Return $GUI_RUNDEFMSG
EndFunc
Gruß
Greenhorn