Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/22/2023 in all areas

  1. After rereading the SciTE/Scintilla API calls in the helpfile I see indeed that it will be a different line number than the Document linenumber. I will make some changes to the script to avoid doing the lexing of too many lines, which should help decrease the lag.
    2 points
  2. No, $bShadowRoot only takes a boolean value. I can't explain why you are experiencing different behaviors while using Edge, but then again it is Microsoft. 🙄 I looked at the site and don't see any shadow roots. It does look like they are dynamically loading elements, so I would suggest using _WD_WaitElement like this -- ; Locate the "Next" button after Username input Local $sElement2 = _WD_WaitElement($WD_SESSION, $_WD_LOCATOR_ByXPath, "//input[@id='submitlogin']", Default, Default, $_WD_OPTION_Enabled + $_WD_OPTION_Visible) _WD_ElementAction($WD_SESSION, $sElement2, 'click') ; Locate the "Password" text field after Username input. then clicking on the Next button. Local $sElePsswd = _WD_WaitElement($WD_SESSION, $_WD_LOCATOR_ByXPath, "//input[@id='Password']", Default, Default, $_WD_OPTION_Enabled + $_WD_OPTION_Visible) If @error = $_WD_ERROR_Success Then _WD_ElementAction($WD_SESSION, $sElePsswd, 'value', $sYourPassword) Else ConsoleWrite("! Password element not found!" & @CRLF) EndIf
    1 point
  3. correct. I need to use editor:DocLineFromVisible(line displayLine) to get the proper file record... more tomorrow.
    1 point
  4. Thanks for your debugging and will have a more detailed look tomorrow when i will have some time to debug. :-)
    1 point
  5. Please use the (https://sqlite.org/see/forum) for SEE support questions. You can log in there with the credentials supplied to your licensee when he purchased SEE. If your licensee can't help providing you a SEE-enabled SQLite DLL, and if you still can open the DB with your SEE-enabled SQLite Manager then you can change the password to an empty string. Properly close any connection to the DB before, of course. Then you can copy the DB file (look for journal files if ever) and you can play with the unencrypted DB using AutoIt. Don't forget to re-encrypt the original DB!
    1 point
  6. If I remember well it was already discussed here. But currently I do not remember the details. I will take fresh look today in the evening or tomorrow.
    1 point
  7. Maybe this ? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiListBox.au3> ; ListBox OwnerDrawn Colors Global Const $tagDRAWITEMSTRUCT = "uint CtlType;uint CtlID;uint itemID;uint itemAction;uint itemState;hwnd hwndItem;handle hDC;dword rcItem[4];ptr itemData" Global Const $ODA_DRAWENTIRE = 1 Global Const $ROW_HEIGHT = 24, $MARGIN = 4 Example() Func Example() GUICreate("Ownerdrawn Listbox", 300, 300) Local $idListBox = GUICtrlCreateList("", 4, 4, 292, 292, $WS_VSCROLL + $LBS_OWNERDRAWFIXED) _GUICtrlListBox_SetItemHeight($idListBox, $ROW_HEIGHT) For $i = 0 To 19 _GUICtrlListBox_AddString($idListBox, "") Next GUIRegisterMsg($WM_DRAWITEM, WM_DRAWITEM) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE EndFunc ;==>Example Func WM_DRAWITEM($hWnd, $iMsg, $wParam, $lParam) Local $tDRAWITEMSTRUCT = DllStructCreate($tagDRAWITEMSTRUCT, $lParam) Switch $tDRAWITEMSTRUCT.itemAction Case $ODA_DRAWENTIRE Local $tRECT = DllStructCreate($tagRECT, DllStructGetPtr($tDRAWITEMSTRUCT, "rcItem")) Local $hBrush = _WinAPI_CreateSolidBrush(Mod($tDRAWITEMSTRUCT.itemID, 2) ? 0xFFFFFF : 0xE0E0E0) _WinAPI_FillRect($tDRAWITEMSTRUCT.hDC, $tRECT, $hBrush) Local $sItemText = "Line " & $tDRAWITEMSTRUCT.itemID $tRECT.Left += $MARGIN $tRECT.Top += $MARGIN _WinAPI_DrawText($tDRAWITEMSTRUCT.hDC, $sItemText, $tRECT, $DT_LEFT) _WinAPI_DeleteObject($hBrush) EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_DRAWITEM
    1 point
  8. Hi September I hope you find someone being able to do it with a list control (e.g. GUICtrlCreateList) Meanwhile, here is the easy way to do it with a listview control. Who knows, it may help you in case you want to try a "no header listview control with 1 column only" looking like a list control. #include <GUIConstantsEx.au3> #include <GuiListView.au3> Example() Func Example() Local $hGUI = GUICreate("Alternate color in LV", 270, 175, 100, 200) Local $idListview = GUICtrlCreateListView("", 10, 10, 250, 155, $LVS_NOCOLUMNHEADER) _GUICtrlListView_AddColumn($idListview, "", 228) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_LV_ALTERNATE) ; <============ GUICtrlSetBkColor(-1, 0xFFFFFF) ; white background (will show on odd lines) For $i = 1 To 20 GUICtrlCreateListViewItem("Line " & $i, $idListview) GUICtrlSetBkColor(-1, 0xE6E6E6) ; light grey background (will show only on even lines) Next GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete($hGUI) EndFunc ;==>Example
    1 point
×
×
  • Create New...