Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/03/2023 in all areas

  1. From my POV, the issue occurs whenever SetError isn't the last executed statement prior to returning from the function. It's like AutoIt detects that @error was set by something other than SetError (it was originally set by SetError, but then reset by ConsoleWrite), and therefore doesn't pass these error values to the calling routine.
    2 points
  2. Next version of SciTE will be out soon (SciTE 5.3.9) with: They were both pretty minor changes and Neil was willing to put them both in. The second one was a Mod I've put in many moons ago so can rip that out now.
    2 points
  3. makes it so i can read the the functions what they do , then mimic it in a prebuilt file to understand them better
    1 point
  4. Will do a build somewhere next week after it is released. I am not sure why you want this change as it will now remove one space as result when there's already a space Infront. Could you explain why this is usefull?
    1 point
  5. I think none contested that SetError() works properly but how @error is set in different circumstances and according with what it's stated in help file.
    1 point
  6. lol, I was not FuncTest() ConsoleWrite( "After FuncTest Call. @error is " & @error & @CRLF ) Func FuncTest() ConsoleWrite("AutoItVersion = v" & @AutoItVersion & @CRLF) SetError(2) ; <--- this does not behave as expected ConsoleWrite('FuncTest: inner check: ' & @error & @CRLF) ; this behaves as expected in version 3.3.16.1 ConsoleWrite('FuncTest: inner check: ' & @error & @CRLF) ConsoleWrite('FuncTest: inner check: ' & @error & @CRLF) ; but not in version 3.3.14.5 ( irrelevant ) Return ; SetError(2) ; <--- it should be the same as if placed here, but is not. EndFunc ;==>FuncTest yes, the SetError() is not behaving as expected. I call BS bug ! Edit: The way it works lead me to misinterpret it.
    1 point
  7. 1 point
  8. @Jos I think they refer to what help file states for ConsoleWrite(). If I understand right ConsoleWrite() should not affect @error macro.
    1 point
  9. TheDcoder

    WinAppDriver

    @mLipok Looks like a very useful tool, thanks for sharing!
    1 point
  10. Hi, compile a program "Get_Discord_Status_loaded_64Bit.exe" as a 64bit-application. Write the status into a file or return it elsewhere.... Compile a program "Get_Steam_Status_loaded_32Bit.exe" as a 32bit-application. Write the status into a file or return it elsewhere.... Compile your program as a 32/64bit-Application and evaluate the status from the file.
    1 point
  11. i updated my autoit and have overwritten nomad memory. i just updated a steam manager for switching between accounts. with process hacker you can watch which modules loaded when starting steam. example. if friendsui.dll is loaded, you can be 100% sure that steam login was successful. no other great chance to check this. so...open process memory from steam.exe. get baseadresse from friendsui.dll. when true, steam logged in. i also do this with chrome, keepassxc, or discord to get states that normally not possible. but here it comes down to one big question. discord is a 64bit application and steam a 32bit application . how can i get base adresse from both? If i compile autoit in 32 bit i can get baseadress of steam but not discord. If i compile autoit in 64 bit i can get baseadress of discord but not steam.
    1 point
  12. argumentum

    Function GUICtrlGetPos

    Func GUICtrlGetPos($iControlID)     Local $a = ControlGetPos(GUICtrlGetHandle($iControlID),"",0)     If @error Then         Local $a[4]=[-1,-1,-1,-1]         Return SetError(1,0,$a)     EndIf     Return SetError(0,0,$a) EndFunc
    1 point
×
×
  • Create New...