Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/16/2011 in all areas

  1. water

    Active Directory UDF

    I have converted and extended the adfunctions.au3 written by Jonathan Clelland to a full AutoIt UDF including help file, examples, ScITE integration etc. The example scripts should run fine without changes. 2016-08-18: Version: 1.4.6.0 As always: Please test before using in production! KNOWN BUGS: (Last changed: ) None AD 1.4.6.0.zip For AutoIt >= 3.3.12.0 AD 1.4.0.0.zip other versions of AutoIt
    1 point
  2. JohnOne is a brit and guiness isn't.
    1 point
  3. Syed23

    Help with Array errors

    Hmm... Have something like this before you handle some arrays..so you can avaoid errors mostly.. If IsArray($coord) Then MouseClick ( "left" ,$coord[0] ,$coord[1]) ;click item Else MouseClick ( "left" ,$coord) ;click item EndIf Note: i gave this option since i don't know complete picture of your program . Try with the above you may not face the previous error.
    1 point
  4. hannes08

    FTP .JPG Upload

    This works for me: #include <FTPEx.au3> $server = 'server' $username = 'user' $pass = 'pass' $Open = _FTP_Open('MyFTP Control') $Conn = _FTP_Connect($Open, $server, $username, $pass) _FTP_FilePut($Conn, "C:\file.jpg", "/pub/folder/file_uploaded.jpg") $Ftpc = _FTP_Close($Open) When I look at your script, you wrote systemfiles with two "s" -> Systemfiless Also please be aware that you need to provide the path where you want to put the file on the FTP server.
    1 point
  5. Unless the force would be disturbed.
    1 point
  6. NunoBorges Firstly my most abject apologies for getting your name wrong. Your problem is caused by the fact that you were not adding the "hidden" values to the shadowing array - if you do this the "drag" function works fine for me. I just added this (<<<<<<<<<<) line and I get what I would expect when dragging rows: ; Fill listview For $i = 1 To UBound($aLV_List_Right) - 1 _GUICtrlListView_AddItem($hListView_Right, $aLV_List_Right[$i][0]) ;***NDB _GUICtrlListView_AddSubItem($hListView_Right, $i - 1, $aLV_List_Right[$i][1], 1) ; <<<<<<<<<<<<<<<<<<<<<<<< _GUICtrlListView_AddSubItem($hListView_Right, $i - 1, $aLV_List_Right[$i][2], 2) _GUICtrlListView_AddSubItem($hListView_Right, $i - 1, $aLV_List_Right[$i][3], 3) NextDoes it work for you now? M23 Edit: Tags screwed up again!
    1 point
  7. I use a program at work where there are no controls, all windows have the same name, etc. in my loops where an error box could pop up, I do something like this $search = PixelSearch(465, 213, 845, 273, 0xFF8080) Do $search = PixelSearch(465, 213, 845, 273, 0xFF8080) $pos = WinGetPos("[CLASS:Chimenix]") If $pos[2] = 422 And $pos[3] = 132 Then;width and height of error box Sleep(500) Send("{ENTER}") ControlSend("AutoItlog", "", 15, "Workflow in use" & " " & @HOUR & ":" & @MIN & @CRLF) $reason = "In use" norun() EndIf Sleep(10) Until $search <> 1 *edit* WinGetPos("[CLASS:Chimenix]") <-- this is the same name I get for all windows pertaining to this program but since the window sizes are different, I can tell which is which by the size
    1 point
  8. Please use function _AD_GetPasswordInfo to get all information about a users password. The function returns an array and element 9 contains the date/time when the password expires. You can use _DateDiff to calculate how many days before the password will expire. Please see the example script _AD_GetPasswordInfo.au3 or the help file _AD_GetPasswordInfo.htm
    1 point
  9. I'm guessing you mean that the ERP title is the same for all windows including the error. There must be some hidden or visible text you could use with WinWait() as it must have 'Error' somewhere in the window eg: If WinExists("Intuitive ERP", "error") then winclose("Intuitive ERP", "Error")
    1 point
  10. obrienj, When compiling your script, run Obfuscator using the /STRIPONLY parameter. That way the compiler uses an au3 file which has the include files included, but all unused functions, variables, comments and blank lines removed. It is saved in the same folder as the source and named YourScriptName_Obfuscated.au3. You need to add these directives to the top of your script: #AutoIt3Wrapper_Run_Obfuscator=y #Obfuscator_Parameters=/soThen when the error occurs, it is easy to see which line gave the fault as it is this Obfuscated file which has been compiled - just scroll to the indicated location. The only problem we know of is that using the line continuation operator screws up the count, but apart from that it works fine. Of course, you need the full SciTE4AutoIt3 package, which you can download from here if you do not already use it. M23
    1 point
×
×
  • Create New...