Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/07/2024 in all areas

  1. I use something like this: _Example() Func _Example() ..... ..... Local $s_CSS_Parser = _MY_CSSParser() Local $s_JavaScript = StringRegExpReplace(StringReplace( _ " let style = document.createElement('style'); " & @CRLF & _ " style.id = 'WEBDRIVER_CSSStyles-theme" & $IDX_Frame & "'; " & @CRLF & _ " style.innerHTML = `" & $s_CSS_Parser & "`; " & @CRLF & _ " document.documentElement.insertBefore(style, document.body.nextSibling); " & @CRLF & _ "", @TAB, ''),'\R','') Local $v_Result = _WD_ExecuteScript($sSession, $s_JavaScript) EndFunc Func _MY_CSSParser() Return StringReplace( _ " * { " & @CRLF & _ " line-height: 1 !important; " & @CRLF & _ " margin-top: 3px !important; " & @CRLF & _ " margin-bottom: 3px !important; " & @CRLF & _ " background-color: white !important; " & @CRLF & _ " } " & @CRLF & _ " " & @CRLF & _ " .alert-info { " & @CRLF & _ " color: black !important; " & @CRLF & _ " } " & @CRLF & _ " " & @CRLF & _ " img[alt='Logo aplikacji'], " & @CRLF & _ " header[class='ember-view'], " & @CRLF & _ " .container > div[class='vertical-offset'], " & @CRLF & _ " svg[role='img'], " & @CRLF & _ " div[class='row ember-view'], " & @CRLF & _ " div.container button, " & @CRLF & _ " div.navbar-header, " & @CRLF & _ " nav.navbar-default, " & @CRLF & _ " #ember271, " & @CRLF & _ " #ember292, " & @CRLF & _ " #ember420, " & @CRLF & _ " #ember419, " & @CRLF & _ " #ember455, " & @CRLF & _ " #ember457, " & @CRLF & _ " #ember484, " & @CRLF & _ " #ember491 { " & @CRLF & _ " display: none; " & @CRLF & _ " } " & @CRLF & _ "", @TAB, '') #cs * { line-height: 1 !important; margin-top: 3px !important; margin-bottom: 3px !important; background-color: white !important; } .alert-info { color: black !important; } img[alt='Logo aplikacji'], header[class='ember-view'], .container > div[class='vertical-offset'], svg[role='img'], div[class='row ember-view'], div.container button, #ember271, #ember292, #ember420, #ember419, #ember455, #ember457, #ember484, #ember491 { display: none; } #ce EndFunc ;==>_MY_CSSParser
    1 point
  2. argumentum

    WinAPI Hidden Func

    ..as luck may have it, I had previous parameters in "Shift + F8". There's nothing wrong with the code.
    1 point
  3. Danyfirex

    RegisterSyncCallback

    what's the @ProgAndy's code? Saludos
    1 point
  4. post the better code ? for x86 and x64 ?
    1 point
  5. Using a bat file to call the Powershell script rather than a cmd file ended up being the resolution here. That being said, if I were doing this again from scratch I would have a close look at @argumentum post here I'm a fan of this approach. However, in this instance as I already had the code "working" apart from intermittent glitches, just changing to using a bat file instead of a cmd file was easier.
    1 point
  6. Danyfirex

    RegisterSyncCallback

    30 is the number of bytes in the opcode till p := NumPut((InStr(Options, "C") ? 0 : ParamCount*4), p+0, "short") "char" 1 p+4 4 "int" 4 "char" 1 "char" 1 "int" 4 "char" 1 "int" 4 "char" 1 "int" 4 "short" 2 "char" 1 "short" 2 Saludos
    1 point
×
×
  • Create New...