Mir war gerade noch langweilig, also habe ich mir die Demo des Programmes heruntergeladen. Hier mal ein Beispielcode angepasst auf das Programm. Konnte es aber nur mit der Version 7.1 testen, musst du ggf. etwas anpassen. ![]()
; ++++++++++ +++++++++ ++++++++ +++++++ ++++++ +++++ ++++ +++ ++ +
; * Getestet mit: PC-Notizz! 7.1
#include <GuiListBox.au3>
#include <GuiTreeView.au3>
; Wartet auf Programmstart um Handles auszulesen:
Global $hWnd = WinWait('[CLASS:Tfrm_Main]')
Global $hKategorie = ControlGetHandle($hWnd, '', '[CLASS:TEdit; INSTANCE:2]')
Global $hStichwoerter = ControlGetHandle($hWnd, '', '[CLASS:TEdit; INSTANCE:1]')
Global $hTreeView = ControlGetHandle($hWnd, '', '[CLASS:TTreeView; INSTANCE:1]')
Global $hTreeViewItem = _GUICtrlTreeView_FindItem($hTreeView, 'Beispiel-Kategorie')
Global $hListBox = ControlGetHandle($hWnd, '', '[CLASS:TStringGrid; INSTANCE:1]')
Global $iListBoxItem = _GUICtrlListBox_FindString($hListBox, 'Beispiel-Stichwort')
; ++++++++++ +++++++++ ++++++++ +++++++ ++++++ +++++ ++++ +++ ++ +
[/autoit][autoit][/autoit][autoit]ControlSetText($hWnd, '', $hKategorie, 'Beispiel-Kategorie')
ControlSetText($hWnd, '', $hStichwoerter, 'Beispiel-Stichwort')
_GUICtrlTreeView_SelectItem($hTreeView, $hTreeViewItem)
ConsoleWrite(_GUICtrlTreeView_GetText($hTreeView, $hTreeViewItem) & @CRLF)
_GUICtrlListBox_ClickItem($hListBox, $iListBoxItem, 'right')
[/autoit][autoit][/autoit][autoit]; ++++++++++ +++++++++ ++++++++ +++++++ ++++++ +++++ ++++ +++ ++ +
[/autoit]