Jump to content

Leaderboard

Popular Content

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

  1. WatskeBart

    FindCD function

    Thank you for the quick reply and the warm welcome. I come from a age where starting a new thread was not done, when there's still a old one I already figured out my problem by doing the following. Changed this code: ElseIf $option = 1 Then $allocated = $drives[$i] If DriveGetLabel($allocated) = $name Then Return $allocated EndIf EndIf To this code: ElseIf $option = 1 Then $allocated = $drives[$i] $label = DriveGetLabel($allocated) ;Put the output into $label, which contains 0117ABCD If StringInStr($label, $name) Then ;Check if part of $label contains $name, which in my case would be ABCD Return $allocated EndIf EndIf I also edited If Not $allocated part, because when using option 1, it will return 0 when no match is found. So this: If Not $allocated Then Turned into this: If Not $allocated Or $allocated = 0 Then Again thank you for the quick reply, and I will make a new thread the next time. //WB
    1 point
  2. In Outlook when you do "archive" but choose a condition ">date that is the future" it will create the folder structure and dont move any mail to the PST. @Water, does _OL_FolderArchiveGet and _OL_FolderArchiveSet have the same behavior ? Otherwise the above vba code i posted should be creating the folder structure ONLY if you select a future 'older than date' condition. I haven't been able to test it though!
    1 point
  3. Thanks! Works like a charm, and a much cleaner way of doing the same thing.
    1 point
  4. Runwait('rundll32 printui.dll PrintUIEntry /k /n "MFP"',"",@SW_HIDE) ; MFP is the printer name This is even better a few line of code, list all the information I needed on the test page Printer name , computer name , time and date , IP address. by the way I tested your print function in your udf and did it not work for me
    1 point
  5. Not sure where it goes wrong but this is not nice in the log (in my system its 5600 so indeed findall is not allways efficient walk thru the tree with n elements where n equals 6800 Found match with element: 35 So it loads first the 6800 elements in the arrray where it only needs number 35 suggestions The first oP1.mainwindow leave as is but the 2nd make it page2_P1.mainwindow Rewrite for the moment to this logic which makes sure you only retrieve one time the 6800 elements $oUIElement=_UIA_Action("oUIElement","getobject") _UIA_Action($oUIElement,"setfocus") _UIA_Action($oUIElement,"highlight") _UIA_Action($oUIElement,"click") Study the treewalker examples as that could be more efficient as then you only walk thru elements 1-34 The UIWrappers will not help you to do this much quicker without treewalker at the moment but however this thread has my interest to improve the uiawrappers ;-)
    1 point
  6. What about this? #include <ScreenCapture.au3> _ScreenCapture_SetJPGQuality(100);max image quality $scrFile = @DesktopDir & "\screenshot - " & @MDAY & @MON & @YEAR & '-' & @HOUR &@MIN& @SEC & ".bmp" _ScreenCapture_CaptureWnd($scrFile, "[ACTIVE]", -1, -1, -1, -1, 0)
    1 point
  7. iamtheky

    Signing Executables

    Unpopular opinion: Self signing is not worth any less, because the value of EV certs is zero. It’s the cyber equivalent of rating lipsticks. I’ll take a proper PKI and app whitelisting before I place any checks for signatures.
    1 point
  8. You could fall back to using GetAttirbute instead of dataset -- Local $result = $oIE.document.getElementsByTagName('html').item(0).getAttribute('data-ffo-opensans')
    1 point
  9. There is something else at play here. The script does work correctly *after* you Open the Dev Tools, go to Console, paste this: document.getElementsByTagName('html').item(0).dataset.ffoOpensans.
    1 point
×
×
  • Create New...