Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/10/2016 in all areas

  1. [BUGFIX VERSION] - 6 Apr 24 Fixed: UDF failed if header colours were initialised but not specifically set. New UDF in the zip below. -------------------------------------------------------------------------------------- Note: This is a new recoded and expanded version of my earlier UDF of the same name. If you move to this new version there might well be several script-breaking changes, particularly when setting which columns are to be editable. Please read the "Beginner's Guide" and look at the included example scripts to see where things have changed. -------------------------------------------------------------------------------------- This UDF allows you to do much more with ListView controls (either native or UDF created): Edit the content with plain text, combos or date-time pickers - and edit the headers too Move rows within the ListView Drag rows both within the ListView and to other ListViews in the same GUI (or not as required) Insert and delete columns and rows Sort columns by simply clicking the header Colour individual ListView items and headers Only select a single cell rather then the entire row Save and load entire ListViews For the advanced user: If you use certain Windows message handlers (In particular WM_NOTIFY) in your script, please read the function headers for the equivalent handlers within the UDF. Here is the UDF, with 6 examples and the guide, in zip format: GUIListViewEx.zip Credit to: martin (basic drag code), Array.au3 authors (array functions), KaFu and ProgAndy (font function), LarsJ (colouring code) Happy to take compliments or criticism - preferably the former! M23
    1 point
  2. misrepresentative, Glad I could help - even if it was a bit of WAG *. M23 * - Wild Ass Guess
    1 point
  3. misrepresentative, I have no idea whether it will cope with whatever it is that you are doing, but have you tried using an Adlib function on a fast cycle to look for the keypress? That should run independently of the script itself. M23
    1 point
  4. Practical example:   HotKeySet("+!d", "ShowMessage") ; Shift-Alt-d If _IsPressed("20") = True And _IsPressed("59") = True Then ShowMessage() EndIf Sure, keys are different, but why would you not be able to use either?
    1 point
  5. InunoTaishou

    Imagesearch problem

    Use the proper x64 ImageSearchDLL.dll and you'll have to set your Scite to use the x64 compiler to run scripts and compile scripts if you want to use x64 (I don't remember where this setting is in Scite)
    1 point
  6. InunoTaishou

    Imagesearch problem

    This has been asked a lot, a lot of posts in the imagesearch thread, and hundreds of posts on other forums. If (IsArray($result) = False) Then Return 0 Just check to see if it is an array
    1 point
  7. nobbitry

    Imagesearch problem

    Do you work with a 64bit windows? Maybe you have to add "#AutoIt3Wrapper_UseX64 = Y" on the top of your script. #AutoIt3Wrapper_UseX64 = Y #include <imagesearch.au3> HotKeySet('=', 'start') $x = 0 $y = 0 Func Start() $search = _ImageSearch('capture.bmp', 0, $x, $y, 0) If $search = 1 Then MouseMove($x, $y, 10) EndIf EndFunc ;==>Start While 1 Sleep(100) WEnd
    1 point
×
×
  • Create New...