Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. In that case will the hotkey only not work when I have the window in the foreground, Or not work universally?
  3. any other alternative than modifying the code? it's too late to do it as i have to present.
  4. https://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F
  5. Hi, When I run autoit script in remote vdi, it does not work when I minimize the window of the remote desktop. How do I solve this problem? I want the scripts to run even when I am not logged in to that machine or minimized the remote desktop window. I cannot change codes at this moment. so any other advice?
  6. Today
  7. I've been trying to make a transparent splash PNG image. Looked everywhere on the forum, and every example i found doesn't seem to work anymore. Is there an 'easy' way to perform this?
  8. Good day all, I am trying to find out what approach you guys take to update your app say from a file or web server to make sure the latest version is always being used. I looked through the help file and UDF's but I am not seeing anything for this, perhaps I am looking for the wrong terms.
  9. You just aren't reading or comprehending what is told to you. I'm out of this stupid conversation, you will never accept the FACT that this can't be done in AutoIt and will never be able to be done.
  10. The updated function should not be changed in the runtime! i only want to edit the main tool and all of its functionality while it is not running. But i want to edit the functions in the text editor as real functions and not in a string variable which i pass to the programm
  11. decompiling my own script on the runtime would be an solution too which i would accept if there is no other solution. i would also work with the #save_source parameter if theres no other way to accomplish this .... and thank you for the explanation. but just another question, if i copy 1:1 the memory from the beginning to the function to the end of the function, then why couldn't i call the function ? cause i give the programm the information what to do and as i know which function it is, why shouldnt i been able to pass the correct call with the correct (new) address to the newly created temporary script?
  12. You can't create a self-updating script while it is running, you'd have to stop the script, and then restart it with the new code. You can't do this on an executable, it could only work as a script. You COULD put your code in a separate file, create an A3X file, restart your script that includes the a3x file and it will read the new code in that file. But you'd have to restart the script to do it, and it could be done using an exe and not just a script. Another conundrum you're going to run into is what kind of changes are you making to the updated function and will the old code that calls it still run as expected. I can only see a disaster in the making if the new code fundamentally alters the script functionality and you have no way to program that into the main program. I personally think it's a terrible idea, and bound to cause more problems than you think you're solving with this attempt.
  13. Local $l = @ScriptDir & "\tmp_call.au3", $r, $e, $a              Dim $CallBack = DllCallbackRegister("_CallMeFunction", "int", "int;int;int;bool") ; i want the address of  the autoit function     ConsoleWrite( "!$CallBack:        "& $CallBack & @CRLF )         $a = DllCallbackGetPtr($CallBack)         ConsoleWrite( "!DllCallbackGetPtr:    "& $a & @CRLF )  ; i got the address of  the autoit function     ; here should be a part which "extract" runnable autoit code from the memory / i would also map the code into the memory/ if possible - but i want to avoid creating a function like:     #cs         $test_string = 'Func _CallMeFunction( $a=1, $b=2, $c=3, $externalCall=False )' & @CRLF & _                     'If ($externalCall = True) Then' & @CRLF & _                         'MsgBox(0, "external", "call - running in its own script " & $a & $b & $c  )' & @CRLF & _                     'ElseIf ($externalCall = False) Then' & @CRLF & _                         'MsgBox(0, "internal", "call - running in the main script " & $a & $b & $c  )' & @CRLF & _                     'EndIf' & @CRLF & _                     'Return 1' & @CRLF & _                     'EndFunc' & @CRLF & _                     '_CallMeFunction()'           and preferable be able to just to something like this :     #ce        $r = _ExtractAutoItCodeFromMemory( $a, '_CallMeFunction', $lenght )         FileWrite( $l , $r )         $e = Run(@AutoItExe & ' /AutoIt3ExecuteScript "' & $l & '"' )         ConsoleWrite( "!Run:            "& $e & @CRLF )         MsgBox(0, $e, $a )         Exit   Func _CallMeFunction( $a=1, $b=2, $c=3, $externalCall=True )     If $externalCall = True Then         MsgBox(0, "external", "call - running in its own script " & $a & $b & $c  )     ElseIf $externalCall = False Then         MsgBox(0, "internal", "call - running in the main script " & $a & $b & $c  )     EndIf     Return 1 EndFunc I tried to describe the problem with this. I want programm A Programm A has a lot of functionality, some of the functionality actually need quite some time to complete and meanwhile programm A is unusable. But Programm A has do be interactable all the time - because it some sort of template editor/manager, when i press F2 it sends a template with ctrl+v or f3 another one or f4 another one. Also is has to be able to load a website and extract its data and display the data for me <- while it is doing this, I'm unable to use the programm Also it has to navigate on the website (like for example) in a new tab WHILE its extracting data from another tab and has to do some tasks there AND while it is doing that i need still be able to press F2,F3,F4 OR use the entire GUI. The problem i have right now is, i have tool A (hotkeys) tool B (extracting) tool C (doing functionality on a website) tool D,E,F etc. - actually its really a lot of functionality and its REALY uncomfortable to start 15 exe files each time i boot the pc or if one is crashing restart it. AND its also realy uncomfortable to create the script in an "COPROCESS" unit like : $test_string = 'Func _CallMeFunction( $a=1, $b=2, $c=3, $externalCall=False )' & @CRLF & _                     'If ($externalCall = True) Then' & @CRLF & _                         'MsgBox(0, "external", "call - running in its own script " & $a & $b & $c  )' & @CRLF & _                     'ElseIf ($externalCall = False) Then' & @CRLF & _                         'MsgBox(0, "internal", "call - running in the main script " & $a & $b & $c  )' & @CRLF & _                     'EndIf' & @CRLF & _                     'Return 1' & @CRLF & _                     'EndFunc' & @CRLF & _                     '_CallMeFunction()' Because i MAY have to align the code quickly and/ or change a lot of lines and test them,. This is also in no way comfortable. So what I'm trying to do - I want to create one tool which merges ALL the functionality into itself and then i want a function like: _getFuncToFileAndRun( @autoitexe, $funcname, $nParam, $paramdelim='|') Then this function should extract the current and actuall function in my code with every code change and write it into TEMP_AU3.au3 and start it with /autoit3executescript The difference between all coprocess i know so far - is the calling of the function! I do not want to hardcore the function into an function call - i want the function to extract the requested function out of the programm itself dynamically and then use it to run the function in a newly created .au3 script. I would also be down to decompile the script on the fly, parse the source - get the function and delete the decompiled source - but i dont even know if this is possible I would also accept the #save_source parameter for this to work - this is no question of having open/visible source as i want to use this in my company for work efficiency. I don't even want fully functional code, just a small push in the right direction :(... (I also have some sort of garbage collector in mind which watches the actuall processes and cleans up the temp files.) actually while writing this, i realize i could just let the compiled exe file in the source directory and then wildly call the available includes. - but honestly this would be the last option i would like to choose, as it feels dirty even thinking in this direction.
  14. Sounds good. I'll pull out that W10 1809 ISO that I've been waiting for McAfee to support. Don't spend time on the past for me. FotF - Focus on the Future. Your time is too valuable building NEW FUNCTION to spend it on past-tense-trivia - PTT. Phil
  15. start with describing the problem instead of describing solutions. It seems like you want some kind of plugin logic in a precompiled exe.
  16. Thanks for this udf. Could you add an indeterminate state for checkbox ? I tried, but my gdi experience isn't very good.
  17. Agreed, he could easily annonimize his code as a small reproducing snippet, but if he just wants to spin his tires, so be it
  18. Good luck with that, might need WikiLeaks to get anything useful to work with.
  19. Reread your issues, and imagine you are one of us. Errors occur for a reason, and they are specific to something, but you have provided no details. What do you expect other than a comment like this asking for more info? Add a code snippet that we can run and reproduce the issue with.
  20. That's getting dangerously close to decompiling the script. The reason you can't call a function from memory in another script to yours is that the function has to exist in the first script or it won't be recognized, you can't create phantom functions in a script by pulling them in from elsewhere. The calling script has to know that the function exists, and has to know where in the script this function is, at runtime, so if it's not there when the script starts, the interpreter doesn't know about it.
  21. abhinav_sodha, That is exactly what I have done - as I said above. M23
  22. This UDF is only for AD and AAD. But have a look. Maybe you can see something in this UDF and create a new one like @water did.
  23. I have to write a multi-functional tool for my work, and on certrain button presses - different scripts have to run, but i don't want to use multiple exe files neither do i want to include the source code. This is not even about communicating between two scripts / which maybe in areas of the application should also be used - but for this i wanted to use the mailslot UDF. But i want a nice and clean way to start the already created functions, without the need of adding the functions i want to use in "clear text". The only thing which i still can't understand is: Why can my script run the memory part of my function, but cant be run by another script which copies exactly the same area of the memory into its own memory space (cause if I dont think completly wrong - it should be now the function of the other script) and then run it? Like where is the difference between memory space a and (after you copied the function from a to b) memoryspace b Or If i copy the function out of the memory - and save it into a file, what would be needed to actually make this code runable again, i dont want to be able to read it - it just should be runable by autoit itself. Like a stupid question now, if i compile my script X.au3 -> then inside of the X.exe will be an autoit.exe (/autoit64.exe) + the script - now the question is, into what is the script converted?
  24. Hi Jos, Thanks for moving it to the correct Forum. What I am looking for is: UDF that works with Azure Active Directory. If someone has built it, maybe they can share it, or AutoIT sample scripts that someone has built working with Azure Active Directory. Meanwhile, I'll continue looking for sample scripts.
  25. Okay, I suspect, that it's this combination: Start a Programm using Run() with the opt_flag $STDERR_MERGED killing this process When doing so, it doesn't matter whether StdioClose() is used or not, and in case it *IS* used, whether it's used before or after the ProcessClose($PID), the RAM consumption is increasing with each and every Run() used.
  1. Load more activity
  • Create New...