Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/24/2018 in all areas

  1. pixelsearch

    Array-Error

    Hi Chinx7 My guess is that, sometimes, your variable $playandtime doesn't contain any separator ":" Then the Array $playandtimeA is recreated with a single element [0], here : $playandtimeA = StringSplit ($playandtime,":",2) That's why you never get an error with $GlobalTimestamp = $playandtimeA[0] But the error arrives immediately after with $GlobalPlaystate = $playandtimeA[1] I suggest you add a test to detect that $playandtime contains a ":" each time the function is called, for example : $playandtime = TCPRecv ($SocketServer,2048) If StringInStr($playandtime, ":") = 0 Then MsgBox(0, "Error", "Separator : not found in string $playandtime") EndIf You'll tell us
    2 points
  2. I've been asked for a comment in this post. pixelsearch, You're probably right that Return (without a value) and Return $GUI_RUNDEFMSG both causes the AutoIt internal message code to be executed. At least for WM_NOTIFY. There are slightly different explanations in different versions of the help file. I can see from what you've copied from the Help file that you're at 3.3.14.5. I'm still at 3.3.14.2. At 3.3.14.2, the text in the help file and especially the text at the bottom of the WM_COMMAND example is slightly better in accordance with what you have experienced. The text at the bottom of the WM_COMMAND example: ; !!! But only 'Return' (without any value) will not proceed ; the default AutoIt3-message in the future !!! Return $GUI_RUNDEFMSG Note the last 3 words in the comment: "in the future". But in the text above the example it's also mentioned that Return (without a value) does not execute the internal code. So it's not completely clear. If in doubt, just test it. With regard to actual return values, you should check the Microsoft documentation so that you only return valid values. There are, for example, no return values for NM_CLICK (listview), while return values for NM_RCLICK (listview) are zero and non-zero. If you return a value that is not documented by Microsoft, check that it has no unintended effects. It seems that the difficulties of using GUIRegisterMsg and the return values are somewhat overstated. In a real concrete example, it's very easy. Merry Christmas.
    1 point
  3. @mLipok What have you tried? Show us your code. Seriously, have you reviewed my prior post with the proposed _WD_Screenshot? Using either that (or by calling the core webdriver function directly) you can capture the page in PNG format. Once you have that, you should be able to use your UDF for Debenu Quick PDF Library to create a PDF containing this image.
    1 point
×
×
  • Create New...