Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/07/2019 in all areas

  1. This was more than enough help. Thank you everyone! I like to post what I used for future reference and anybody else that may need help. This is what I went with. $oInputs = _IETagNameGetCollection($oIE, "span") $sTxt = "" For $oInput In $oInputs $sTxt &= $oInput.Innertext & @CRLF Next IF StringInStr($sTxt, "Showing items ") Then $iCount = Number(StringTrimLeft($sTxt, StringInStr($sTxt, " of ", 0, -1) + 3)) If $iCount > -1 Then MsgBox(4096, "Item Count",$iCount) EndIf
    1 point
  2. Your trying to use the object outside of the loop, just use something like StringRight($oInput.Innertext, 1) Edit: Whoops didn't read your post correctly, try something like Local $iCount, $sInnerText = "Showing items 1-7 of 1" If StringInStr($sInnerText, "Showing items ") Then $iCount = Number(StringTrimLeft($sInnerText, StringInStr($sInnerText, " of ", 0, -1) + 3)) If $iCount > -1 Then MsgBox(4096, "Item Count", "No. of Items = " & $iCount) EndIf
    1 point
  3. UEZ

    PNG in GUI

    It is possible to display a PNG image in a pic control using GDI+. Example: ;coded by UEZ 2011 #include <GUIConstantsEx.au3> #include <GDIPlus.au3> Global Const $IMAGE_BITMAP = 0 Global Const $STM_SETIMAGE = 0x0172 Global $msg Global Const $hGUI = GUICreate("Display PNG Image in picture control", 600, 250) Global Const $idPic = GUICtrlCreatePic("", 215, 20) _GDIPlus_Startup() Global Const $png = StringReplace(@AutoItExe, "autoit3.exe", "ExamplesGUITorus.png") Global Const $hImage = _GDIPlus_ImageLoadFromFile($png) Global Const $Bmp = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) _WinAPI_DeleteObject(GUICtrlSendMsg($idPic, $STM_SETIMAGE, $IMAGE_BITMAP, $Bmp)) GUISetState() While True $msg = GUIGetMsg() Switch $msg Case $idPic MsgBox(0, "Information", "PNG image was clicked") Case $GUI_EVENT_CLOSE _WinAPI_DeleteObject($Bmp) _GDIPlus_ImageDispose($hImage) _GDIPlus_Shutdown() GUIDelete($hGUI) Exit EndSwitch WEnd This example is using the png picture from the ExamplesGUI folder and displays it in a picture control. Br, UEZ
    1 point
  4. Tof006

    Application deployment

    This doesn't work. I'm gonna give up but I really want to thank you for your help and advises. I'll stay in my ignorance and I hate that but I have lost of other things to do and cannot waste 2 more days to understand why this doesn't work. I already have wasted enough time on this crappy software. Maybe later this month I'll try again. See you and thanks again
    0 points
×
×
  • Create New...