Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/16/2022 in all areas

  1. Au3toCmd --- Avoid false virus positives Since many virus scanners sometimes prevent a "compiled autoit EXE" from being executed as "false positive", the "*.A3X" format is a suitable format to avoid this problem. See here for more information. In order to simplify this procedure, I wrote the Au3toCmd script. Here a *.Cmd file is generated from a *.Au3 file. The necessary files Autoit3.exe and *.A3x are added to the "*.Cmd" file as "alternate data streams" "Base64" encoded data. Now the Autoit Script can be called by clicking on the cmd file and the anti-virus scanners do not recognize the "false positive". If the short-term flashing of the CMD window bothers you, you can click the desktop shutcut that runs in a minimized window. Unfortunately, because the "alternate data streams", this CMD file cannot be distributed via FTP or email. Only a USB sti ck or removable disk formatted with NTFS can be used. As the new version now uses Base64 data instead of ADS, this statement is out of date. For reasons of compatibility, the old version was sunk into the spoiler here. The script can be called with a file name of an AU3 script as a parameter. If no name is entered, a query is made. For more information, see the header of the script. Suggestions, improvements and bug reports are welcome. Here the versions using base64 data Version: 2022.05.12 (Support blanks in pathnames) Version: 2022.06.23 (Support release candidates. Changed @CrLf to @Lf. Annual cleaning. Optimized #AutoIt3Wrapper handling) Version: 2022.07.22 (Support scripts with the same name but different content in different directories) Version: 2022.07.27 (Support blanks in usernames) Au3toCmd.au3 Version: 2022.09.01 (Optimized annual cleaning) Au3toCmd.au3
    1 point
  2. Hi @ahmeddzcom, what do you exactly mean? Please describe you requirement a bit more, this would be helpful. Best regards Sven ________________ Stay innovative!
    1 point
  3. According to the help file: "Strings are enclosed in double-quotes like "this". If you want a string to actually contain a double-quote use it twice ...". _Excel_RangeWrite($oWorkBook, Default, '=IF(D2=D1;"";VLOOKUP(D2;''J:\Temporary Files\FolderName\FileName.xlsx''!$A:$B;2;0))', "W2", False) This works for me. You might have to replace ; with , to make it work for you.
    1 point
  4. That's almost three years old, so way out of date. Please update to the latest release if you want further support. Also, you aren't supplying the location of the profile.
    1 point
  5. @n3wbieFWIW, I tested this on a Win7 VM and I didn't encounter any errors. You mentioned "Windows 7 (older version)". What did you mean by older version? You haven't shown us any code. What does your call to _WD_UpdateDriver look like?
    1 point
  6. Thank you all for thje input and your work. Glad that you enjoyed it, and this one approach that also crossed my mind. I will try to understand and adapt this for my porpose. Thanks you for pointing this out. Due to covid and part shortage we are currently not able to the new scenarios on real hardware, which would be the pre-validation. Settings/control of valves ist done by and external control. Within a simulation we want to see in which scenarios sensors connected to the system would measure flow/pressure/temperature depending on the valve position. My goal is to determine this exactly by using some scripting apporach. But I will keep the real world "oopsies" in mind and will use any solution only as guide and have it reviewed/triple checked. That looks interesting. Not really the kind of theory I like, but sometimes what someones likes and what is required to get the job done are completley different things. Thank you very much. I also gave my simplification some thoughts and realized after the feedback from @argumentum and @jchd, that there is more to it than my simplification provides. Once I figured on how to show this I will share it with you!
    1 point
  7. Well your initial post didn't say that hostname prefixes would vary in time. And for what it is worth, it doesn't change much of the code I gave you, you just need to adapt it to your needs. If you cannot do that by yourself, hmmm, I would suggest you delegate the programming to someone else.
    1 point
  8. Latest update just released. See below for change log.
    1 point
  9. Nine

    Overlapped Named Pipe IPC

    From this this thread, I started to get interested in very fast communication that could be used between VBS or AutoIt. And thanks to @argumentum, he is always there to challenge any IPC solution . My last tests show that a request from a dedicated client is about 7ms to transit to the server. And a small response takes about 4ms to be sent from the server to the client. From a basic snippet, I changed it to make a UDF on request from the community of @mLipok . Now with this UDF, you can create duplex communication but also dual channels (one way to) IPC. You can also make it persistent (close to a Peer-to-Peer approach) or a transactional (more of a client-server protocol). Example 1 : Duplex and persistent Example 2 : Dual and persistent (VBS example included) Example 3 : Duplex and transactional Whether you find it useful or not, your comments are always welcome ! (former is my preference though) Version 2022-02-11 * Added security descriptor to allow mix elevation between Client and Server * Added support for IPC between computers Version : 2020-12-30 * Added documentation to the UDF file * Optimized code * Moved some code from Example files into UDF file NPIPC UDF.zip
    1 point
  10. Nine

    Overlapped Named Pipe IPC

    New version available
    1 point
  11. Hi I want to press escape key & nothing should happen. Is this possible? Following code seems to be working with other other hotkeys, but does not work with escape key. Open any video on yotube for example & fullscreen it, then run code below, the video will exit from fullscreen indicating that esc key was pressed. Is there a workaround perhaps ? HotKeySet("{Esc}","disable_esc") func disable_esc() ;send('{space}') EndFunc while 1 sleep(100) WEnd
    1 point
×
×
  • Create New...