Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/24/2016 in all areas

  1. UEZ

    Always on top msgbox

    You can set the MsgBox window topmost! Example: #include <MsgBoxConstants.au3> MsgBox($MB_TOPMOST, "MsgBox Demo", "I'm topmost")
    2 points
  2. Just very simple but universal/usefull function to get all content of TreeView from external application. It's not optimized for speed and error testing is missing, it's just for very simple code ;-) #Include <String.au3> #Include <GuiTreeView.au3> ; "C:\Program Files (x86)\Resource Kit\oleview.exe" ; COM Library Objects --> ClassMoniker $sAll = _TreeView_GetAll('OLE/COM Object Viewer', '', 'SysTreeView322') FileDelete('treeview_get_all.txt') FileWrite('treeview_get_all.txt', $sAll) ;~ClipPut($sAll) Func _TreeView_GetAll($title, $text, $classNN, $expand = False, $indent = ' ', $bullet = '') ; $bullet = '- ' $sAll = '' $hWnd = ControlGetHandle($title, $text, $classNN) If $expand Then _GUICtrlTreeView_Expand($hWnd) ; Expand All $hItem = _GUICtrlTreeView_GetFirstItem($hWnd) While $hItem <> 0x00000000 $sItem = _GUICtrlTreeView_GetText($hWnd, $hItem) $level = _GUICtrlTreeView_Level($hWnd, $hItem) $sIndent = _StringRepeat($indent, $level) $sAll &= $sIndent & $bullet & $sItem & @CRLF $hItem = _GUICtrlTreeView_GetNext($hWnd, $hItem) WEnd Return $sAll EndFunc Hope it can help somebody ...
    1 point
  3. $WS_CHILD Local $f_logIn = GUICreate("f_logIn", 350, 400, -1, -1,$WS_CHILD, $WS_EX_TOPMOST, $f_programBG)
    1 point
  4. JLogan3o13

    Syntax

    @giangnguyen it probably took you more time to type that post that it would have to test it out. Try it and see for yourself
    1 point
  5. Also, a regex way : $aVal = StringRegExp($sIn, '"(?:url|title)":"([^"]+)"', 3) ConsoleWrite($aVal[0] & @CRLF & $aVal[1])
    1 point
  6. mLipok, I understand. Sunday I forgot these lines in top of The UDF section: To use the UDF you first calls ListViewColorsFonts_Init which stores information about the listview and the parent window, and creates the subclass that takes care of the actual drawing of the colors and fonts. Then you call one or more of the ListViewColorsFonts_Set-functions to define the colors and fonts. Depending on the functions you might also need to call ListViewColorsFonts_Redraw. And that's all. Finally you can call ListViewColorsFonts_Exit to remove the subclass before the script exits. If you don't call ListViewColorsFonts_Exit it's called automatically by the UDF. The lines are added. Added a code example in Examples section.
    1 point
  7. NewBieAuto, The problem is your choice of {ENTER} as the Accelerator key - that key is already used widely within the UDF and so there is a conflict. Why not use another key? If you have to use {ENTER} then you could do something like looking for something in the input box and only add an item if there is indeed something to add: Case $ADD $Col2Ip = GUICtrlRead($Input_1) If $Col2Ip <> "" Then $Col1Ip = _GUICtrlListView_GetItemCount($ListView) + 1 Global $DataIp[] = [$Col1Ip, $Col2Ip] _GUIListViewEx_Insert($DataIp) GUICtrlSetData($Input_1, "") EndIf Now the code will only add a row if there is some content in the input - pressing {ENTER} to end an edit will not do so. I am afraid I have no idea what you are attempting to do with the ControlClick line. M23
    1 point
×
×
  • Create New...