Jump to content

Leaderboard

Popular Content

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

  1. As the WebDriver UDF - Help & Support thread has grown too big, I started a new one. The prior thread can be found here.
    1 point
  2. Sorry it should have been _ArrayDisplay($aFileData2D)
    1 point
  3. @czmasterYou can also use _WD_ExecuteScript to retrieve an element's innerHTML or outerHTML. P.S. In the future, this type of question belongs in the Support Thread instead of here
    1 point
  4. _WD_GetSource($sSession)
    1 point
  5. I found out the problem and I must say I am a little bit ashamed 😚 The protocol to send the data to the serial could be visualized like this: <STX> <DATA> <ETX> <LRC> (with STX=02 and ETX=03) STX stands for Start of Text and ETX stands for End of Text. I presumed the LRC should only be calculated using the <DATA>, but upon rereading the protocol I saw that the <ETX> also needed to be included. Now, when I add the ETX to the array, the LRC indeed becomes: 0x06. I have added the 03 to the array (see below) and my LRC is now as expected. At least if some one needs a LRC implementation for Autoit, there is one working implementation in this forum. 😃 //Array Data is Hex values $LongStr = "30 30 43 31 30 30 30 30 30 30 30 30 31 30 30 30 30 30 30 30 30 30 30 31 20 20 20 20 20 20 20 " $LongStr = $LongStr & "20 20 20 20 20 20 20 20 20 20 20 20 20 30 30 30 30 30 31 30 30 30 30 35 30 31 45 55 52 03" ; Expected LRC = 06 $aArray = StringSplit($LongStr, " ", $STR_CHRSPLIT ) $lrc = 0 $b = 0 For $t=1 to $aArray[0] $b = Dec($aArray[$t]) $lrc = BitXOR ($lrc,$b) Next MsgBox (0,"LRC","LRC (Dec) = " & $lrc & " Hex: " & Hex ($lrc) )
    1 point
  6. @senatin Its basically a text file that describes the sales items. Each row is an item as follows: ItemNo1|ItemName1|Price1|Group ItemNo2|ItemName2|Price2|Group ItemNo3|ItemName3|Price3|Group PosConfig.ini
    1 point
  7. You can't use the user profile for a webdriver session if it is already in use by another instance of Chrome.
    1 point
  8. Welcome to the forum! As a note to both new and current members and as mentioned above, please read the FAQs on the AutoIt Wiki before posting. This will save you time, as the answers to many common questions are out there. Most importantly for new forum members, please see the section on Why isn't my thread getting any replies? Forum members are here, volunteering their time to help you with your questions, and we will always do our best to assist. Below are just a few of the items we need from you in order to provide the best help, please see the FAQ section for more: First, foremost and always, know and follow the forum rules: Every member of this forum is expected to know and adhere to the forum rules. The rules are based on common sense and should not be daunting for anyone to follow. Doing so will ensure you receive assistance and will prevent any necessary sanctions by the Moderation team. We would much rather help you with your scripts than have to attend to the unpleasant business of suspending or banning accounts. Add a meaningful title to your thread: "HELP!!" tells no one anything, and will often delay your receiving assistance. Include a detailed description of what you are trying to do, what you have tried on your own, and what problem/error you are experiencing: "Doesn't work" or "AutoIt's broke" doesn't cut it. Forum members are also here to help you write and improve your own scripts; this is not a forum where you put in an order and someone writes the code for you. Always Post Code: Even if the code is not doing what you want it to, posting the code you are working from rather than asking forum members to guess is always going to result in more rapid assistance. If you cannot post the code for business reasons, create a script that reproduces the issue you are seeing.
    1 point
  9. If I understand your problem, you should use ShellExecute instead of Run
    1 point
  10. Valuater

    Autoit Wrappers

    ; Window Active/Activate by Exe ; Author - SmOke_N While 1 If _WinActiveByExe('notepad.exe', False) Then MsgBox(64, 'info', 'true') Sleep(100) WEnd Func _WinActiveByExe($sExe, $iActive = True);False to WinActivate, True to just see if it's active If Not ProcessExists($sExe) Then Return SetError(1, 0, 0) Local $aPL = ProcessList($sExe) Local $aWL = WinList() For $iCC = 1 To $aWL[0][0] For $xCC = 1 To $aPL[0][0] If $aWL[$iCC][0] <> '' And _ WinGetProcess($aWL[$iCC][1]) = $aPL[$xCC][1] And _ BitAND(WinGetState($aWL[$iCC][1]), 2) Then If $iActive And WinActive($aWL[$iCC][1]) Then Return 1 If Not $iActive And Not WinActive($aWL[$iCC][1]) Then WinActivate($aWL[$iCC][1]) Return 1 EndIf EndIf Next Next Return SetError(2, 0, 0) EndFunc 8)
    1 point
×
×
  • Create New...