Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/18/2019 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. FordsFinest, I can help you. And I don't think you've violated any rules. You'll need to download UIASpy, run the script, place the mouse cursor over the Plant item (I assume that's the item in question), press F1, right-click in the listview in UIASpy, and copy all rows. Then add a new post and paste the rows into the post. Use the <>-button at the top as you can see when creating a new post. Then you can paste the rows as text. Then I'll see what I can do. Lars.
    1 point
  3. @AasimPathan This pearl from @LarsJ could be helpful too
    1 point
  4. @Ricskal Sorry if I didn't reply to your previous answer, but I'm a little busy. Happy to have helped
    1 point
  5. @coles Could you post a sample "source" file and the result you are expecting from your script?
    1 point
  6. If you check the number of lines of the target.xml are the same as the source.xml the _FileWriteToLine method should be fine, if they don't have the same number of lines just write to a network share that they aren't equal and you can check on these machines at a later stage. One note you would have to enclose those _FileWriteToLine lines with single quote ' at the beginning and end, as the lines you posted would error because of the internal double quotes. I would also backup the target.xml file before making changes, something like: FileCopy("<Path to Target.xml", @LocalAppDataDir & "\Backup\Target.xml", 8) that way you can restore the file if it fails. Alternatively you could use XML Dom which I see you have included in your script and then just use _XMLSetAttrib to change the code.
    1 point
  7. I Fixed an error with Non Extensible wave formats that I introduced with the last change I also incorporated the changes argumentum posted above -- just be aware that not all devices pass back the silence flag and if the sound just recently stopped you probably won't receive the notification even on devices that do pass the flag..
    1 point
  8. trancexx

    WinHTTP functions

    Yes, from the response: _WinHttpQueryHeaders($hRequest, $WINHTTP_QUERY_STATUS_CODE) ...I'm not sure what's the question in that second thing.
    1 point
  9. This is the Inline UDF for an Assembler I wrote way, way back when I started AutoIt. The Light Assembler is contained in an ActiveX DLL and registered by LASM.au3. It is a standard assembler with a light syntax debugger. Used in AutoIt like this: #include <LASM.au3> ; Make room for returned string: Local $strCPU = DllStructCreate("char[20]") # pushad # mov edi, [ebp+12] # xor eax, eax # cpuid # mov [edi+0], ebx # mov [edi+4], edx # mov [edi+8], ecx # popad # ret 16 $pTest = LASM_ASMToMemory(LASM_GetInline()) LASM_CallMemory($pTest, DllStructGetPtr($strCPU), 0, 0, 0, "ptr") MsgBox(0, "LASM", DllStructGetData($strCPU, 1))This is old. Very old. You probaly should not use this, but there are a few examples included: Use AutoIt functions in ASM codeUse AutoIt variables in ASM codeRead CPU IDFPUCaesar ChiffreBubbleSort an Array (+ speed comparison to AutoIt)Fac() function implementationIf you compile your script, you have to statically include the ASM code, the #-Inline syntax only works in SciTe. LASM.zip
    1 point
  10. thanks for the great efforts , but is there any possible way to handle .Net code events via autoit ? i will give example :- here is C# code that contain MyMethod which return Timer object , using System; using System.Timers; public class Au3 { public System.Timers.Timer MyMethod() { System.Console.Write("CS Code is working \n"); System.Timers.Timer timer = new System.Timers.Timer(2000); return timer ; } } here is the autoit code which will start the timer and (what i wish to) handle the Elapsed event. #include<DotNetAll.au3> $oNetCode = DotNet_LoadCScode( FileRead( "CS_Code.cs" ), "System.dll" ) ; above C# code if not IsObj($oNetCode) then msgbox(0,"","CS code not loaded") $ClassObject=DotNet_CreateObject( $oNetCode, "AU3") if not IsObj($ClassObject) then msgbox(0,"","Class Object not Created") $Timer=$ClassObject.MyMethod() ; DotNet timer object if not IsObj($timer) then msgbox(0,"","Timer Object not Created") ObjEvent($Timer,"Test_") ; here is my event method $timer.Enabled=true sleep(4000) func Test_Elapsed($object,$event) ; here is event function msgbox(0,"","Timer Elapsed") endfunc but its not work , any idea ?
    0 points
×
×
  • Create New...