Jump to content

Leaderboard

Popular Content

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

  1. Please don't. Please do not apologize for your great work. Yes it does not work in the first place, but to me it does not matter that much. What matters, and this is the point what I appriciate the most, your answers, your code and your explanations (here or on GitHub) makes me a better programmer and lead me to learn new things. I will test the new parser example tomorrow (or in the next days) and will let you know about possible questions etc 🤝 . Best regards Sven
    2 points
  2. Hi @SOLVE-SMART, I am sorry for the problems you found, that's my bad. 😞 The warning with $TYPES_TO_PROPERTY_NAMES possibly being used before declaration, i have fixed with a #forcedef. The error with "Statement cannot be just an expression", will pass at runtime, but would not work as expected, so I've fixed it with a new helper method "__setKeyValue" The warning/error with $a being an undeclared global variable and possibly used before declaration, was an oversight by me and have been fixed. No problem at all My vscode-autoit3-debug extension simply does not use the Au3Check tool, and therefore i only notice issues at runtime, currently (I should have manually used Au3Check before uploading 🤡). If i had reached the non declared variable area, the code would have crashed and I would have noticed, but had not yet, and the AutoIt runtime itself therefore does not care But I've updated the uploaded files, after fixing the issues. You only need the parser.au3 file for testing, the autoit3-modified.pegjs is just for showing the source grammar that generated the AutoIt3 code Thanks for the heads up, and once again my apologies for my lack of quality control 😅
    2 points
  3. Werty

    Ternary Operators in AutoIt

    I should have posted a slightly different example, sometimes I need to change the order so Mod() wouldnt work, but nice example.
    1 point
  4. ioa747

    Ternary Operators in AutoIt

    @Werty good as a tennary example but a bit unreadable as code it need a comment on what it does. looking up what it does I discovered a more readable approach $P = 15 $SpotX = $P=0?0:$P=1?1:$P=2?2:$P=3?3:$P=4?0:$P=5?1:$P=6?2:$P=7?3:$P=8?0:$P=9?1:$P=10?2:$P=11?3:$P=12?0:$P=13?1:$P=14?2:$P=15?3:0 ConsoleWrite("$SpotX=" & $SpotX & @CRLF) $SpotX = Mod($P, 4) ConsoleWrite("$SpotX=" & $SpotX & @CRLF) ...without being sure though.
    1 point
  5. My bad... I just seen where you posted my code... I need to start doing that
    1 point
  6. Based on WebDriver W3C document key \uE056 is Numpad End. Here how to send a Ctrl-V. Local $sAction = '{"actions":[{"type": "key", "id": "keyboard_1", "actions": [{"type": "keyDown", "value": "\uE009"}, ' & _ '{"type": "keyDown", "value": "v"}, {"type": "keyUp", "value": "v"}, {"type": "keyUp", "value": "\uE009"}]}]}' _WD_Action($sSession, "actions", $sAction) Tested and working...
    1 point
  7. Defective script replaced and updated see post #1
    1 point
  8. mr-es335

    Data-To-Arrays

    ioa747, ...ooopppsss...I had to remove the actual licensing information...so the anomaly...fixed...thanks!
    1 point
  9. Back in 2019 I posted and uploaded one of my bigger AutoIt Programs (Bigger for me anyway). that I named 'TxtFinderV475' and sometime later I unloaded my latest Version of it: 'TxtFinderV512'. I wrote this for my wife and decide to share it on AutoIt. In a nutshell my program searches through many Text Files for user specified text. My wife likes to store information in many (very many) different NotePad Files. So I wrote this to help her find that info. The script is zipped up with other files that it needs to work with. Once you unzip it you will see what I mean. Hope it works on your Version of Windows! Please let me know if it did or not.... Anyway take a look inside my script. Do a search for the following function... ;Func: _FindTxInFile() (Note that I have the ( ; ) in front of "Func" This will take you to the Remarks first) In this Function you will find the heart of how it works.... I just wrote my program around it... I found this code in the Autoit script examples forum. As you can see in my remarks I have noted the Author of it. I am not one to take credit for other people's work. Anyway just go to AutoIt's Browse / Forum,,, and Enter this into Search: TxtFinderV512 Hopefully you will have no problem finding it. Last time I searched for it this way (02/08/25) only one result came up.... If you need help finding it just let me know... and if you do find it please run it... have a look inside the script... and as before your feedback would be much appropriated! P.S. If you open up the script in Windows (11) NotePad v11.2410.21.0 / Font: Consolas / Regular / 12 the code should line up good... and at least for me... should be easier to read through. Your Version of Window may not... but I hope it does....
    1 point
  10. Hello All... I have been using AutoIt for some time now. Years actually... As of just a short time ago I found out... via chatting with a very helpful user... that AutoIt can work with Ternary Operators... I was looking over his script and came across the following line... $sMsg = ($bMute = 1) ? ('muted!') : ('not muted!') So... I was like... What?... how is this working... He pointed me to the info I needed in AutoIt Help... I am not sure if maybe there are others that did not know this either... so I wrote a small script that not only helped me to understand it better... it just may help someone else... either way... its attached... Any Feedback would be much appreciated... TernaryOpV100.au3
    0 points
×
×
  • Create New...