Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/25/2021 in all areas

  1. Alternatively, you can use this to store snippets, as well: http://www.freesoftland.net/dtt.html It saves all in one database (so far i know). and, (i guess) this could be used as a note/snippet tool as well: https://sourceforge.net/projects/keynote/ I'm using KeyNote for note/passwordkeeping. The Developer Tricks and Tips (DTT) are ok, but you need to copy and paste the text (from dtt to your code) by yourself. Well, while the app is ok in itself, there is a little annoyance: The select all button works only if the editor field is active (and it is not at the first time you select the snippet). So basically i need 3 clicks to get the text into the clipboard, and then to use the ctrl v for the paste. That's why i have written the Simple Snippet Manager. And i was going for the simplicity and ease of use. It keeps the files in a folder, and all you need to do is to select the snippet, to switch to the app, and to press ctrl /strg + b (within a minute - to prevent copying text into wrong apps by missclicks) You can add snippets, by saving them from the Scite editor into the folder.
    2 points
  2. Hello @pixelsearch, Thanks for the latest version I'm busy with right now. I stumbled upon one problem that appears if any column has Align set to 0. If there is such a column, then after moving it to the left, it becomes empty. For example: Global $ g_aColAligns [$ g_iCols] = [2, 0, 1, 0, 1, 2]
    1 point
  3. @TheDcoder Thank you so much. Your code snippet workes like a charm. It is just a little annoying that the snippet needs to be inserted every time I want to load up a new site, but I'll take it as long as it works. Thank you too @Danp2. You guys are great. I can now continue with my stuff. I am sure that I will be back with more questions (in another thread)
    1 point
  4. I was away from my PC for a bit. I was going to suggest trying WMI. Here was my example: #include <Constants.au3> #RequireAdmin example() Func example() Local $oComErr, $oTpm $oComErr = ObjEvent("AutoIt.Error", "com_error_handler") #forceref $oComErr ;Get WMI TPM object $oTpm = ObjGet("winmgmts:Root\CIMV2\Security\MicrosoftTpm:Win32_Tpm=@") If Not IsObj($oTpm) Then Exit MsgBox($MB_ICONERROR, "ERROR", "Unable to get object.") ;Display properties With $oTpm ConsoleWrite("IsActivated_InitialValue = " & .IsActivated_InitialValue & @CRLF) ConsoleWrite("IsEnabled_InitialValue = " & .IsEnabled_InitialValue & @CRLF) ConsoleWrite("IsOwned_InitialValue = " & .IsOwned_InitialValue & @CRLF) ConsoleWrite("SpecVersion = " & .SpecVersion & @CRLF) ConsoleWrite("ManufacturerVersion = " & .ManufacturerVersion & @CRLF) ConsoleWrite("ManufacturerVersionInfo = " & .ManufacturerVersionInfo & @CRLF) ConsoleWrite("ManufacturerId = " & .ManufacturerId & @CRLF) ConsoleWrite("PhysicalPresenceVersionInfo = " & .PhysicalPresenceVersionInfo & @CRLF) EndWith EndFunc Func com_error_handler($oError) With $oError ConsoleWrite(@CRLF & "COM ERROR DETECTED!" & @CRLF) ConsoleWrite(" Error ScriptLine....... " & .scriptline & @CRLF) ConsoleWrite(" Error Number........... " & "0x" & Hex(.number) & " (" & .number & ")" & @CRLF) ConsoleWrite(" Error WinDescription... " & StringStripWS(.windescription, $STR_STRIPTRAILING) & @CRLF) ConsoleWrite(" Error RetCode.......... " & "0x" & Hex(Number(.retcode)) & " (" & Number(.retcode) & ")" & @CRLF) ConsoleWrite(" Error Description...... " & StringStripWS(.description , $STR_STRIPTRAILING) & @CRLF) EndWith Return ; Return so @error can be trapped by the calling function EndFunc Console output: IsActivated_InitialValue = True IsEnabled_InitialValue = True IsOwned_InitialValue = True SpecVersion = 2.0, 0, 1.16 ManufacturerVersion = 11.7.0.3290 ManufacturerVersionInfo = Intel ManufacturerId = 1229870147 PhysicalPresenceVersionInfo = 1.3
    1 point
  5. Correct, I added a couple "phrases" since the last upgrade that are commonly used by us.
    1 point
  6. To automate the latest versions of Browsers use the WebDriver UDF (written by Danp2). There are still a lot of users with a need to use older versions of the IE. So I think the IE UDF will be here for quite some time.
    1 point
  7. I was able to run a basic command and get a response -- { "id": "1", "method": "Browser.getVersion" } { "id": "1", "result": { "protocolVersion": "1.3", "product": "Firefox", "revision": "1", "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0", "jsVersion": "1.8.5" } } Now just need to figure out which commands are supported by Firefox. FWIW, it doesn't appear to recognize Page.addScriptToEvaluateOnNewDocument as a valid method.
    1 point
  8. The most probable situation is that eBay is detecting the Navigator.webdriver property: It is possible to mask this with some hacks though, here is the JavaScript snippet I used a while ago to mask that in Chrome: Object.defineProperty(Navigator.prototype, "webdriver", {get: Function.prototype.bind()}) You can use this code by injecting it into every page on start like so: ; Inject Navigator Shim Local $sNavShim = 'Object.defineProperty(Navigator.prototype, "webdriver", {get: Function.prototype.bind()})' Local $oParams = Json_ObjCreate() Json_ObjPut($oParams, 'source', $sNavShim) _WD_ExecuteCdpCommand($g_sSession, 'Page.addScriptToEvaluateOnNewDocument', $oParams) But this uses Chrome's non-standard CDP (Chrome DevTools Protocol) protocol (redundant, heh), so obviously it works only in Chrome. Firefox's equivalent is the Marionette protocol, but I am not familiar with it, so someone else would have to help you with that.
    1 point
  9. Jon

    AutoIt v3.3.15.4 Beta

    1,713 downloads

    AutoIt: - Changed: PCRE regular expression engine updated to 8.44. - Added: doc pages about ControlID/Handle and String/Encoding. - Added #2375: SetError(), SetExtended() doc precision. - Added #3780: WinSetTitle() on notepad.exe is reverted when the windows get focus starting Windows 19H1 !!! - Added #3222: Doc precision for statement with 2 FileInstall(). - Added: ConsoleWrite() preserves the @error and @extended. - Added: ConsoleWriteError() preserves the @error and @extended. - Added #2938: Add "GetCount" to ControlCommand() - Added #3539: FileGetTime() UTC. - Added #3808: ProgressOn()/ProgressSet() - size of the progress window - Fixed: Missing Opt("SetExitCode", 1) and AutoIt3 Exit codes in doc. - Fixed #3211: Doc precision for hwnd parameter in Pixel*() functions. - Fixed #3774: Doc precision about Null keyword comparison. - Fixed #3579: DllStructGetData() doc precision. - Fixed #3823: Language Reference - Variables typo. - Fixed #3021: bad obj calling. - Fixed #3106: StringIsFloat() doesn't accept a valid FP exponent. - Fixed #3135: StdioClose memory leak. - Fixed #3165: Call UBound Array[0] AutoIt Crash. - Fixed #3167: Com error handler not called. - Fixed #3179: Number() failure with lower case hex. - Fixed #3182: MouseMove() on multiple screens. - Fixed #3232: Issue when parsing scientific notation literals. - Fixed #3659: InetClose() always false. - Fixed #3682: GuiCtrlCreatePic() with h=0 and w=0. - Fixed #3701: Crash with array 2^24. - Fixed #3710: @OSVersion for Server 2019. - Fixed #3743: [LAST] and WinWaitClose(), WinExists(), WinGetHandle(), etc. - Fixed #3772: int64 = -9223372036854775808 not handled properly. - Fixed #3778: ToolTip() position. - Fixed #3789: FileRead() on big ANSI file (1Gb). - Fixed #3790: UCS2 compare empty string. - Fixed #3807: GUISetIcon() in taskbar. - Fixed #3809: WinGetTitle() on windows created with _WinAPI_CreateWindowEx(). - Fixed #3817: Double to Int64 conversion. AutoItX: - Fixed: run*() showflag default SW_SHOWNORMAL. Aut2Exe: - Fixed #2383: Aut2exe GUI dropped files. - Added #3684: Aut2exe title with version. Au3Check: - Fixed #3785: Crash if too many includes. Au3info: - Added #3938: DPI scaling Support. UDFs: - Changed: Updated used Excel constant enumerations in ExcelConstants.au3 to Excel 2016. - Added #3514: _GUICtrlTreeView_GetLastItem() (Thanks Crazzy). - Added #3611: _GUICtrlListView_SetBkHBITMAP() (Thanks Alofa). - Added #3695: _SQLite_Display2DResult() 2 additional parameters $sDelim_Col and $sDelim_Row. - Added #3675: WinNET.au3 $tagNETRESOURCE: Add constants. - Added #3740: _ChooseColor() support Custom colors (Thanks argumentum). - Added #3547: _FormatAutoItExitCode() and _FormatAutoItExitMethod(). - Added #3696: _ArrayFromString(). - Added #3771: ColorConstants.au3 now include all W3C extended colors. THIS IS A small SCRIPT BREAKING CHANGE - Added #3739: _Array2DCreate(). - Added #3550: _Date_Time_SystemTimeToDateTimeStr() support 2 new formats to return GMT or ISO8601 format. - Added: _WinAPI_CreateProcess() example. - Added #3804: _GUICtrlMenu_CreateMenu() example to demonstrate menuclick non blocking. - Added #3806: _GDIPlus_GraphicsDrawString() with AlphaColor font. - Added #3811: _SQLite_Startup() new parameter to allow return AutoIt Type variables by _SQLite_FetchData(). - Added: _GUICtrlListView_GetSelectedIndices() optimisation (Thanks pixelsearch). - Added: _WinAPI_GetProcessName() and _WinAPI_GetParentProcessName() doc example (Thanks argumentum). - Added #3813: _MemGlobalRealloc(). - Added #3816: _WinAPI_ReadDirectoryChanges() example with magic number. - Fixed #3819: _FileCountLines() can use file handle. - Added: SpeedUp display and sorting of ArrayDisplay() and _DebugArrayDisplay() (Thanks LarsJ). - Fixed #3647: _GDIPlus_ImageResize() ghost border. - Fixed #3650: _GDIPlus_ImageResize() off by one. - Fixed #3633: _GUICtrlRichEdit_GotoCharPos() does not detect end of text. - Fixed #3765: _FileWriteLog() using Handle Cannot insert atvthe beginning, just set @extended. - Fixed #3776: __EventLog_DecodeDesc(). - Fixed: _GUICtrlListView_SetItemChecked() regression and more GUIListview.au3 functions. - Fixed: _WinAPI_CreateEvent() return error on already define $sName. - Fixed: use "wstr" for "ptr" with Null value. - Fixed #3791: _ArrayDisplay() sort arrow. - Fixed #3805: $tagRID_DEVICE_INFO_KEYBOARD definition. - Fixed #3810: _ArrayUnique not handling "Default" for Parameter $iIntType. - Fixed: _WinAPI_DragQueryFileEx() $iflag behavior when mix drag (Thanks pixelsearch). - Fixed #3812: _DateTimeSplit() returning @error. - Fixed #3814: $PAGE_ connstants for _WinAPI_CreateFileMapping(). - Fixed #3821: _WinAPI_OemToChar() with string greater than 65536 crash. - Fixed: _Now(), _NowCalc(), ... date time coherency when call just on hour change. (Thanks argumentum). - Fixed #3824: _GUICtrlRichEdit_StreamToFile(), _GUICtrlRichEdit_StreamFromFile() default encoding doc. - Fixed #3825: beta regression for $tagEDITSTREAM in x64.
    1 point
  10. @Danp2 has been very helpful for beginners to learn how to use WebDriver. I'm sure he wanted to write a tutorial himself only if he had time. Thank you, @water, for initiating this project. I would appreciate if someone could add a tutorial for use of _WD_Window, _WD_Action and _WD_ElementAction functions and compostion of $sDesiredCapabilities among other things. Though I have been using WebDriver for almost a year now, I still don't know how to use some of the "commands" in these functions. Thnak you and I have a great expectation.
    1 point
  11. All are very good points. But the most important purpose of a tutorial is to start you up with easy problems (like installation, Hello World first script), and then move on to higher difficulties of issues. What I like about tutorial is also the explanation of the concepts, like what is the difference between absolute xPath and relative. Sorry if I am too simplistic.
    1 point
  12. I will extend faq40. In the WD wiki examples tutorial add examples on * how to deal with downloading or navigating pdf * how to deal with popups ** alert popup ** print or save dialog * how to deal with multiple tabs * ...
    1 point
  13. LOLOLOLOLOLOL! wow... it was that simple... I would've never thought to change it's style to reset it...
    1 point
×
×
  • Create New...