Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/29/2019 in all areas

  1. I'm thinking about a function that would return the full error message text when you pass the error number (e.g. from @error) and the function name (default is the name of the last called function). Means: #include <TaskScheduler.au3> _TS_Open() $sErrorMessage = _TS_ErrorMessage(1) ; Returns the text for error 1 of function _TS_Open: Error creating the COM error handler. @extended is set to the error code returned by _TS_ErrorNotify $sErrorMessage = _TS_ErrorMessage(2, "_TS_ActionCreate") ; Returns the text for error 2 of function _TS_ActionCreate: Error creating the COM error handler. @extended is set to the error code returned by _TS_ErrorNotify What do you think?
    2 points
  2. Hi guys! A pretty simple UDF to convert HTML to PDF using wkHTMLtoPDF. It uses the C API of the tool (DLL), so no external process, no ActiveX or COM sh*t. See the example, and the documentation of wkHTMLtoPDF. Cheers https://github.com/matwachich/wkhtmltopdf-au3
    1 point
  3. Sorry, I call BS. You're going to tell us that your Mom is not okay with the proper way to open files with a script, but would be okay with you doing a pixel search and mouse move? You are the only one in this thread thinking your story is believable. Thread is locked until you PM with an explanation (better make it a good one) of what you're really trying to do here.
    1 point
  4. @Zedna, SQLite uses || for string concatenation and cast(id, type) for conversion. Your snippet isn't SQLite-compatible, which isn't my real point. Anyway I fail to see how this query could delete what the OP calls "subsequent sets". Again, a table has no order and there is no possibility (given the little information the OP gave) to differentiate between the first line shown: xxxx 1 aaaaaaaaa bbbbbbbbb and the subsequent line xxxx 1 kkkkkkkkk lllllllll ==> needs to be deleted Unless there is a way to determine which "set" or "group" a row is part of, in conformance to what the OP has in mind, either the job can't be done or we are missing hidden information.
    1 point
  5. @czardas - was the mover and shaker behind them. If you are keen for some more, maybe let him know.
    1 point
  6. All of the variables that you have defined that are not inside of a function are global in scope, even if you define them as Local. So all of the Local vars at the top of your script should actually be defined as Global. Change your au3 parameters to the following and you will see the warnings: #AutoIt3Wrapper_AU3Check_Parameters=-w 3 -w 4 -w 5 -w 6 -d
    1 point
  7. Version 1.1.0.0 released Changelog can be found on the download page and the history in the ZIP file. For download please see my signature below. Please play with this version and tell me what doesn't work or is missing!
    1 point
  8. pixelsearch

    Image not found

    @Musashi: thanks for the confirmation. @Polistotele: after googling on the sentence "If IsArray($Variable) = True", I wonder where you found this erroneous syntax in your script because you apply it to _ImageSearch() which will never return an Array. I didn't find your syntax in any post related to _ImageSearch() $Variable = _ImageSearch(...) Or _ImageSearch(...) If IsArray($Variable) = True Then ; this will never happen ... Else $Variable = _ImageSearch(...) Or _ImageSearch(...) If IsArray($Variable) = True Then ; impossible too ... EndIf EndIf When BrewmanNH used this kind of nesting in Dec 2011, he applied it to $Variable = PixelSearch(...) as we can see here and it was correct because PixelSearch(...) returns an Array when successful. This is BrewmanNH's code : $Variable = PixelSearch(...) If IsArray($Variable) = True Then ; correct ... Else $Variable = PixelSearch(...) If IsArray($Variable) = True Then ; correct ... EndIf EndIf Maybe one did copy his script, thinking he could apply it to _ImageSearch() without any other change... wrong try ! To solve this 1st issue, you should do what all other posters did in their scripts, testing only one image per line, then testing if the Return is 1 (success) : $Variable = _ImageSearch(...) If $Variable = 1 Then Here are a few interesting links I found in AutoIt concerning _ImageSearch() LINK1 : 8 pages of comments, OP is Centrally (thread created in 2013) . The whole pages should be read when you got an issue to see how other posters solved it (or at least tried to) . You would have immediately noticed how Centrally scripted, in his 1st post : global $y = 0, $x = 0 ; always good to write Global (especially on $x & $y) Func checkForImage() Local $search = _ImageSearch(...) If $search = 1 Then LINK2 : tbodine88's code shows exactly what Nine asked you to do in his upper post (testing all DllCall possible error values) as it may help solve your #2 issue LINK3 : JohnOne's about #include <ImageSearch.au3> vs #include "ImageSearch.au3" LINK4 : guestscripter's (2015) whole package "ImageSearch2015.zip" which seems to solve a lot of issues. And for all other posters whining later in the same thread that his additional link "ImageSearch15.au3" wasn't working anymore (a version of ImageSearch Library without the built-in Example and Debugging) ... he pasted that additional script "ImageSearch15.au3" at the very end of his post, the same day he wrote it ! LINK5 : guestscripter's again (2018) showing he didn't modify his precedent download package (good news !) : 10.659 downloads. LINK6 : BrewmanNH's "That's probably one of the worst reasons for using ImageSearch I've seen yet." Impossible not to smile (at least) when reading this sentence I guess many posters who created an account to ask for help used the function for game automation, invoking disguised reasons... which will make JLogan3o13 react : LINK7 : JLogan3o13's "I was curious how long this thread would go after being resurrected before someone ruined it for everyone." LINK8 : kangkeng's original thread (2008) : 13 pages of comments You may also google on "Miguel7" "AutoHotKey" "ImageSearch" which links to 10 ImageSearch Tips & Tricks (2014) that could help you. Good luck with all these various dll's from 2008 / 2010 / 2012, let's hope they can be trusted without any danger.
    1 point
  9. Musashi

    Image not found

    You are right. Local $Variable ; Func _ImageSearch() : Return Value(s): Success=1 , Failure=0 ; --> simulates the possible results of : _ImageSearch(...) Or _ImageSearch(...) $Variable = (0 Or 0) ConsoleWrite(' 0 Or 0 : $Variable = ' & $Variable & @CRLF) $Variable = (1 Or 0) ConsoleWrite(' 1 Or 0 : $Variable = ' & $Variable & @CRLF) $Variable = (0 Or 1) ConsoleWrite(' 0 Or 1 : $Variable = ' & $Variable & @CRLF) $Variable = (1 Or 1) ConsoleWrite(' 1 Or 1 : $Variable = ' & $Variable & @CRLF) ; ==> $Variable is either True or False $Variable = True ConsoleWrite('! IsArray = ' & IsArray($Variable) & @CRLF) $Variable = False ConsoleWrite('! IsArray = ' & IsArray($Variable) & @CRLF) Summary : If IsArray($Variable) = True will never come true !
    1 point
  10. pixelsearch

    Image not found

    I maybe mistaken, but how could ever the following test be True in Func myResult() when _ImageSearch() and _ImageSearchArea() Returns are only 0 or 1 ? $Variable = _ImageSearch("quinto.bmp", 0, $x,$y,0) Or _ImageSearch("quarto.bmp", 0, $x,$y,0) If IsArray($Variable) = True Then
    1 point
  11. Nine

    Image not found

    At least check what is the @error, then address the situation. To do this, modify the UDF to msgbox the error.
    1 point
  12. Nine

    Image not found

    If you look at help file for DllCall you would have notice that : Return Value Success: an array. See remarks. Failure: sets the @error flag to non-zero. @error: 1 = unable to use the DLL file, 2 = unknown "return type", 3 = "function" not found in the DLL file, 4 = bad number of parameters, 5 = bad parameter. $Result is not an array in case of failure. It can be any of the errors mentioned. But my guess is you are not using the right (x86 vs x64) dll or the dll is missing (wrongly placed).
    1 point
  13. Jos

    Image not found

    Don't know what the reason is but guess some error checking is missing in that UDF. I don't know that include as it isn't a standard include so do you have a link to the sourcecode so it can be checked why you get the error. Jos
    1 point
  14. Hello Rayray Try this $Var = "NAME OF VARIABLE" $SCCM = ObjCreate("Microsoft.SMS.TSEnvironment") $VarResult = $SCCM.Value($Var)
    1 point
  15. Thanks. =) I mainly built off the code offered at this site: http://www.outlookcode.com/threads.aspx?fo...messageid=16295 I found a workaround to the problem of minimizing outlook. Though, thanks! I would love to review how you did the COM solution. I'm a novice to the VS.Net development platform so I figured out how to get started and found how to execute a button through the COM. But I wasn't able to figure out how to execute the "Send/Receive" button in outlook from another application alltogether.
    1 point
  16. Because my mother said that she does not want anything on my pc that looks suspicious when she borrows it, yea she really borrows mine, but as long as I live under her roof I have to share and I don't really mind, but back to the topic, if something happens, and she does not see what she will flip out again, so if she sees her mouse jump to the new file, she will be at ease. That's why. So could you please help me ?
    0 points
×
×
  • Create New...