Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/09/2021 in all areas

  1. Jos

    One gui who follow mouse

    For the last time: STOP repeating yourself and give me an answer about which program you are trying to automate and which steps you need to do! Next avoiding answer will get you a permanent ban as I am done with this Cat&Mouse game. ps: No answer will have the same result! Jos
    2 points
  2. ProgAndy

    AutoItObject UDF

    The AutoItObject team is proud to announce that the first version of our AutoItObject UDF is complete and ready to use. The project page is located at [currently missing] Please, report bugs and any other issues at our [currently missing], and not here. An overview of all the functions can be found in the online documentation [currently missing] or in the offline .chm documentation file which is included with the [currently missing]. If Origo has problems providing the download, the current version will be mirrored here The UDF requires the current AutoIt version v3.3.4.0! AutoItObject 1.2.8.2.exe AutoItObject 1.2.8.2.zip Please, leave your comments and experiences here. Regards, - trancexx - ProgAndy - monoceres - Kip Our work is published under the Artistic License 2.0 A copy of the FAQ to answer your most urgent questions right away: (can also be found at the online documentation: Some helper-functions: When using the Wrapper, this are some simple methods to get a return value from the resulting array. ; #FUNCTION# ==================================================================================================================== ; Name...........: _AIOResult ; Description ...: Returns the return value of the Call to a WraperObject function ; Syntax.........: _AIOResult(Const $aResult [, $vError=0] ) ; Parameters ....: $aResult - the resulting array ; $vError - [optional] value to be returned if result is no array (default: 0) ; Return values .: Success - Returnvalue ($aResult[0]) ; Failure - $vError, @error set to 1 ; Author ........: Prog@ndy ; Modified.......: ; Remarks .......: ; Related .......: ; Link ..........; ; Example .......; ; =============================================================================================================================== Func _AIOResult(Const $aResult, $vError=0) ; Author: Prog@ndy If IsArray($aResult) Then Return $aResult[0] Return SetError(1,0,$vError) EndFunc ; #FUNCTION# ==================================================================================================================== ; Name...........: _AIOParam ; Description ...: Returns the parameter value of the Call to a WraperObject function ; Syntax.........: _AIOParam(Const $aResult, $iParam, $vError=0) ; Parameters ....: $aResult - the resulting array ; $iParam - The parameterindex to return (0: result, 1: first parameter, 2: 2nd parameter, ...) ; $vError - [optional] value to be returned if result is no array (default: 0) ; Return values .: Success - Parameter value ; Failure - $vError, @error set to 1 ; Author ........: Prog@ndy ; Modified.......: ; Remarks .......: ; Related .......: ; Link ..........; ; Example .......; ; =============================================================================================================================== Func _AIOParam(Const $aResult, $iParam, $vError=0) ; Author: Prog@ndy If UBound($aResult)-1 < $iParam Then Return SetError(1,0,$vError) Return SetExtended($aResult[0], $aResult[$iParam]) EndFunc
    1 point
  3. I've made a library, based on AutoItObject UDF with the goal of implementing getter and setter functionality and make it possible to define new object properties in as few steps as possible. Thank you to @trancexx for getting me on the right track, and all users in Hooking into the IDispatch interface for the code to get me going. If I've forgotten to add credit, please let me know Example: #include "AutoItObject_Internal.au3" $myCar = IDispatch() $myCar.make = 'Ford' $myCar.model = 'Mustang' $myCar.year = 1969 $myCar.__defineGetter('DisplayCar', DisplayCar) Func DisplayCar($oThis) Return 'A Beautiful ' & $oThis.parent.year & ' ' & $oThis.parent.make & ' ' & $oThis.parent.model EndFunc MsgBox(0, "", $myCar.DisplayCar) More examples: https://github.com/genius257/AutoItObject-Internal/tree/master/Examples Version: 4.0.1 AutoItObject_Internal.au3 Documentation Edit2 (19th March 2017): First of all, sorry about the lack of updates on this project. I always start too many projects and end up ignoring old projects, if I run into problems ^^'. So I've started moving my AutoIt scripts to GitHub. I will still post the most recent script version here.
    1 point
  4. ; Close the current tab _WD_Window($sSession, "Close") I found that studying the wd_demo.au3 is one easy way to learn the basic "how-to". Then there is the Wiki that can also help on specific FAQ. Google and forum search tools to look for specific issue should complete the process of learning. Of course, opening the wd_core.au3 and wd_helper.au3 files to get a full description of the functions. And then, try, test, learn, try, test, learn, ...... At the very end, you can ask question here
    1 point
  5. Jos, Those steps are fine for me - and I have not discovered any other problems either. M23
    1 point
  6. Hi @jackster0306, and welcome to the AutoIt Forum Next time you post the code, please use the Code Tag <>, so the syntax is higlighted and it's not messy. About your issue, seems that _IEAttach is failing becuse it is badly formatted; take a look at the function reference to see how you should use it. Then, use error checking to see if every function returns a correct value
    1 point
  7. Therefore, $oButtons must not be of type object. Therefore, the assignment: Local $oButtons = _IETagNameGetCollection($oIE, "button") must not be returning an object. Maybe, put this after the assignment statement and find out what’s going on... If @Error Then MsgBox(1, "@Error is", @Error)
    1 point
  8. 1 point
  9. I'm not sure when it changed but I have noticed that in current releases when you use the directive, #AutoIt3Wrapper_Res_Field=OriginalFilename|MyApp.exe The resource appears twice in the compiled exe. If you eliminate the directive, it does not appear at all. I can tell you that using version "19.1127.1402.18", it does not do this.
    1 point
  10. AdmiralManHairAlkex, It is because the GUICtrlCreateListView function expects $WS_EX_* extended styles and rather than $LVS_EX_* extended styles. Moreover, the $LVS_EX_* extended styles are often numerically similar to $WS_EX_* ones and so cannot be distinguished. _GUICtrlListView_SetExtendedListViewStyle uses SENDMESSAGE to do the job and so avoids any confusion. M23
    1 point
  11. there is NO need to do what you are trying to do. case doesn't matter. why would it ever matter to windows? if you really want to change it in reg you could delete the old key and write the new one. but even that is stupid and dangerous.
    0 points
×
×
  • Create New...