Jump to content

Zedna

MVPs
  • Posts

    9,891
  • Joined

  • Last visited

  • Days Won

    10

Zedna last won the day on January 14

Zedna had the most liked content!

7 Followers

About Zedna

  • Birthday 10/02/1972

Profile Information

  • Member Title
    AutoIt rulez!
  • Location
    Czech republic

Recent Profile Visitors

5,097 profile views

Zedna's Achievements

  1. Based on that I think there was some problem/mistake with BOM (few binary nonvisible bytes at start of files defining UTF coding, BOM is not mandatory for UTF files).
  2. Look at my MouseClickFast & MouseMoveFast maybe it can help you - but no waranty 🙂
  3. Here is my function _TreeView_GetAll() which gets whole content of TreeView control, in this case even from external application: Here you can see how to simply traverse the whole TreeView ... #Include <String.au3> #Include <GuiTreeView.au3> $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 = '- ' $hWnd = ControlGetHandle($title, $text, $classNN) $sAll = '' 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
  4. Check the result of WinActivate(), it may return 0 if window is not found ...
  5. Looks nice. I will not use it but I like to learn how such kind of hacks can be done 😉 I'm just curious why this isn't in Examples section of the forum ...
  6. As you can see in the sources there were implemented only few functions from AutoItX DLL https://github.com/nokia/robotframework-autoitlibrary/blob/master/src/AutoItLibrary/__init__.py
  7. Just info for others: https://robotframework.org/ https://github.com/nokia/robotframework-autoitlibrary I suggest to reinstall AutoItLibrary according to my second web link ... EDIT: Maybe it's related to opened issues for V7.1: so maybe try to contact their support or forum ... https://forum.robotframework.org/c/libraries/9
  8. FileInstall will embed PNG image inside EXE at compile time and copy it from EXE to destination directory at run time. With Resources UDF you can use PNG directly from EXE without need of extracting image to disk at runtime. fileInstall("test.png", @tempDir & "\test.png")  $hImage = _GDIPlus_ImageLoadFromFile(@tempDir & "\test.png")  You would should also add deleting image after using it - in case of FileInstall() ...
  9. Difference with this approach is that you have to distribute PNG image separately along with compiled EXE. With Resources UDF you have PNG image compiled inside EXE and use it from resources (inside EXE) so you distribute only EXE file.
  10. If you want to use Resources UDF with latest version of AutoIt then you have to download/use derived ResourcesEx UDF (by guinness) from here and slightly modify your AU3 scripts changes needed in your fade/test.au3: ;~ #include "resources.au3" #include "ResourcesEx.au3" ... ;~ $hImage = _ResourceGetAsImage("TEST_PNG_1") $hImage = _Resource_GetAsImage("TEST_PNG_1") Zedna
  11. Just for info. I realized in my private AU3 projects that on Win7 doesn't work HTTP communication with some (HTTPS) web servers using (previously non-problematic) COM object "winhttp.winhttprequest.5.1". On Win7 it works again after changing/replacing to compatible COM object "Msxml2.XMLHTTP.6.0". Change must be done just in ObjCreate(), other properties and methods of that COM object are the same/compatible. Reason why it now doesn't work is due to newer version of used TLS encryption (used by some web servers) which is in some cases implicitly disabled on Win7 and can be enabled by registry hacks or by installing Win KB fixes. In some cases even these hacks doesn't help on some stations as far as I know ...
  12. Try Global $listBoxStyle = BitOR($GUI_SS_DEFAULT_LIST, $WS_HSCROLL)
  13. 1) $listBoxStyle is not defined in your example 2) $WS_HSCROLL should work 3) _GUICtrlListView_SetColumnWidth() can't be used with Listbox
×
×
  • Create New...