Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/30/2018 in all areas

  1. When I open your script and do the following it seems to work fine: Open this script (ANSI file) Open a new script file and ensure the encoding is set to UTF8. Copy all text from original and paste it into the new file. Save and run the new file. Jos
    1 point
  2. The case of the parameter does not matter as AutoIt works case-insensitive
    1 point
  3. Adele, The secret is to get the sort data array correctly formatted: #include "ArrayMultiColSort.au3" Global $aArray[][] = [[2, 2], [2, 1], [2, 3], [1, 2], [1, 1], [1, 3]] ; Here is the original array _ArrayDisplay($aArray, "Original", Default, 8) ; Set the order in which the columns are to be sorted and how to sort them ; First we sort col 0 in ascending order and then col 1 also in ascending order Global $aSortData[][] = [[0, 0], [1, 0]] ; Sort the array _ArrayMultiColSort($aArray, $aSortData) ; And here is the sorted one _ArrayDisplay($aArray, "Sorted", Default, 8) All clear now? M23
    1 point
  4. TheXman

    need help with controlID

    @jsteng The full SCITE editor for AutoIt, as opposed to the Lite version that comes with the AutoIt installer, comes with a set of tools. One of those tools is AU3Info. It is very helpful in showing the information you are after. Here's where the full editor can be downloaded: https://www.autoitscript.com/site/autoit-script-editor/downloads/ And the screen shot below shows where the tools can be found in the editor: Once Au3Info is running, just drag the Finder Tool over the window or control of interest to see all of the related info,
    1 point
  5. @Danyfirex Thank you! I ended up using the first method in a quick test. It's holidays and I don't have access to the software, but I can confirm that both touch points are registered on my home device, and pinch-to-zoom is working on e.g. Google Maps through a browser, Photoshop, and Maya - which makes it exceedingly likely to work in general Thanks again - I'll be sure to add to that other topic.
    1 point
  6. qwert

    Child GUI Examples

    Thanks for your reply. I now see that _GUICtrlMenu_InsertMenuItem in the help file has plenty of examples of use ... but, strangely, no mention of exactly what & denotes. Oh, well. Now I know.
    1 point
  7. Skysnake

    Child GUI Examples

    @qwert, thx for the comment. The & makes it possible to access the menu items using the keyboard. Click the Toolbar and press ALT+T or ALT+P on the keyboard. This allows you to access the menu items using the keyboard. It works as is. I see no reason to remove this. As for your help file reference, I do not know what that does. Perhaps it only draws the line without making the keyboard shortcut available?
    1 point
  8. Jos

    A Non-Strict JSON UDF (JSMN)

    Updated the first page with the changed UDFs in the JSON.au3 include. Jos
    1 point
  9. Yes. You could do something like this: #include <Memory.au3> Local $tStruct1=DllStructCreate("int;int;") DllStructSetData($tStruct1,1,10) DllStructSetData($tStruct1,2,20) Local $tStruct2=DllStructCreate("int;int;") DllStructSetData($tStruct2,1,30) DllStructSetData($tStruct2,2,40) Local $tStructArray=DllStructCreate("int;int;int;int;");with size $tStruct1+$tStruct2 _MemMoveMemory($tStruct1,$tStructArray,DllStructGetSize($tStruct1)) ;copy $tStruct1 to new structure _MemMoveMemory($tStruct2,DllStructGetPtr($tStructArray)+DllStructGetSize($tStruct1),DllStructGetSize($tStruct2)) ;append $tStruct2 ConsoleWrite(DllStructGetData($tStructArray,1) & @CRLF) ConsoleWrite(DllStructGetData($tStructArray,2) & @CRLF) ConsoleWrite(DllStructGetData($tStructArray,3) & @CRLF) ConsoleWrite(DllStructGetData($tStructArray,4) & @CRLF) ;or Local $tStructArray=DllStructCreate("int;int;int;int;");with size $tStruct1+$tStruct2 Local $tStruct1=DllStructCreate("int;int;",DllStructGetPtr($tStructArray)) DllStructSetData($tStruct1,1,100) DllStructSetData($tStruct1,2,200) Local $tStruct2=DllStructCreate("int;int;",DllStructGetPtr($tStructArray)+DllStructGetSize($tStruct1)) DllStructSetData($tStruct2,1,300) DllStructSetData($tStruct2,2,400) ConsoleWrite(DllStructGetData($tStructArray,1) & @CRLF) ConsoleWrite(DllStructGetData($tStructArray,2) & @CRLF) ConsoleWrite(DllStructGetData($tStructArray,3) & @CRLF) ConsoleWrite(DllStructGetData($tStructArray,4) & @CRLF) Saludos
    1 point
×
×
  • Create New...