Leaderboard
Popular Content
Showing content with the highest reputation on 07/22/2013 in all areas
-
File Name: AutoIt v3.3.9.11 Beta File Submitter: Jon File Submitted: 22 Jul 2013 File Category: Beta 3.3.9.11 (22nd July, 2013) (Beta) AutoIt: - Fixed #2311: Wrong handling of casesense parameter in StringReplace() - Fixed #2361: RegRead() doesn't read REG_QWORD values. - Fixed #2362: WinGetText() and ControlGetText() would sometimes give invalid results due to the target application's handling of WM_GETTEXT. Au3Info: - Fixed: Same text bug as #2362. Click here to download this file3 points
-
Hopefully this is all fixed in 3.3.9.11. I've fixed my window handling class so that all calls for WM_GETTEXT use it (there were a few places I'd missed). I've checked WinGetText() and ControlGetText() with it and Scite. Same fixes for Au3Info too.2 points
-
How to locate a graphic "button"
Xandy reacted to abberration for a topic
First off, ActiveX is a Microsoft feature for Internet Explorer. It cannot work in any other browser, so whatever it is, it's not ActiveX if it works in Firefox. We might be able to help you if you tell us the website and which button you are trying to click. Otherwise, we would be just as helpful as guessing tomorrow's lottery numbers. If you think the only way to press the button is with ControlClick and full screen, then you can try using the Firefox UDF (I think a lot of it no longer works perfectly since version 3.xx). Or you can use WinSetState ( "window title", "", @SW_MAXIMIZE) to bring it to full screen. I just tested it with this page and it worked.1 point -
Dizzy, Have you actually run any of the code offered above? Where did "2300" come from? The sleep in the code that I posted is just to stop the loop from streaming output while on the 10 second interval and to idle the CPU. The solution BremanNH posted produces the same result. I think czardas hit it on the head, the definition is vague and the target now seems to be moving. Regardless of whether you use an Adlib, modulo arithmetic or a timer, you will get better results if your requirements are clearly defined. kylomas edit: spelling...shit, cross posted...1 point
-
read from excel database into array
dickjones007 reacted to GMK for a topic
If you're interested, I have updated many of those functions1 point -
read from excel database into array
dickjones007 reacted to water for a topic
Sure. The Excel UDF only works with - surprise - Microsoft Excel. If you want to read a Excel workbook with LibreOffice you need the >Open Office Calc UDF.1 point -
Ok, this time a more serious reply. Welcome and: - don't use unrelated threads to ask questions. - spend a little time searching before posting your question. Like your initial post should have been very easy to answer when having looked at the Website or helpfile introductions. - Read our forum rules to ensure you will have a happy lengthy stay here. The link is located at the right bottom of this forum. Jos1 point
-
How to Know PID in this case
mesale0077 reacted to Ascend4nt for a topic
well, f*k me, I guess I like a good challenge. Here's a UDF for finding processes that started after a given time point: ; ======================================================================================================== ; <_ProcessListAfterTimePoint.au3> ; ; Functions to get an array of processes that started after a given time point ; Example included displays array of processes ; ; Functions: ; _WinTime_GetSystemTimeAsLocalFileTime() ; Gets current time as 64-bit FILETIME (_WinTimeFunctions UDF) ; _ProcessListAfterTime() ; Gets list of processes after a certain timepoint (as FILETIME) ; ; Author: Ascend4nt ; ======================================================================================================== #include <WinAPI.au3> ; ProcessOpen/CloseHandle ; ============================================================================================== ; Func _WinTime_GetSystemTimeAsLocalFileTime() ; ; Function to grab the current system time as 64bit Local FileTime (not UTC) ; (from _WinTimeFunctions UDF) ; ; Return: ; Success: 64-bit value representing the UTC-based FileTime ; Failure: -1, with @error set: ; @error = 2 = DLL Call error, @extended = actual DLLCall error code ; ; Author: Ascend4nt ; ============================================================================================== Func _WinTime_GetSystemTimeAsLocalFileTime() Local $aRet=DllCall("kernel32.dll","none","GetSystemTimeAsFileTime","uint64*",0) If @error Then Return SetError(2,@error,-1) Return $aRet[1] EndFunc ; ============================================================================================== ; Func _ProcessListAfterTime($nSysTime, $vProcFilter = "") ; ; Returns an array of Processes that started after a given time point (as FILETIME) ; ; $nSysTime = a 64-bit FILETIME value (see GetSystemTimeAsFileTime) to use ; as the starting point ; ; $vProcFilter = Process name filter ("calc.exe") or "" for ALL processes ; ; Returns: ; Success: An array of processes in the same form as ProcessList: ; [0][0] = # of processes ; [i][0] = Process name ; [i][1] = Process ID # ; ; Failure: "" with @error set (only happens if ProcessList() itself fails) ; ; ; Author: Ascend4nt ; ============================================================================================== Func _ProcessListAfterTime($nSysTime, $vProcFilter = "") Local $aProcList, $aFoundList, $nFound Local $iAccess, $hProcess If $vProcFilter = "" Then $aProcList = ProcessList() Else $aProcList = ProcessList($vProcFilter) EndIf If @error Then Return SetError(@error,0,"") ; XP, XPe, 2000, or 2003? - Affects process access requirement If StringRegExp(@OSVersion,"_(XP|200(0|3))") Then $iAccess = 0x0400 ; PROCESS_QUERY_INFORMATION Else $iAccess = 0x1000 ; PROCESS_QUERY_LIMITED_INFORMATION EndIf Dim $aFoundList[$aProcList[0][0]+1][2] $nFound = 0 For $i = 1 To $aProcList[0][0] $hProcess = _WinAPI_OpenProcess($iAccess, False, $aProcList[$i][1]) $aRet = DllCall("kernel32.dll", "bool", "GetProcessTimes", "handle", $hProcess, "uint64*", 0, "uint64*", 0, "uint64*", 0, "uint64*", 0) If Not @error And $aRet[0] And $aRet[2] > $nSysTime Then ConsoleWrite("Found process that started after timepoint: " & $aProcList[$i][0]&", PID #" & $aProcList[$i][1] & @CRLF) $nFound += 1 $aFoundList[$nFound][0] = $aProcList[$i][0] $aFoundList[$nFound][1] = $aProcList[$i][1] EndIf _WinAPI_CloseHandle($hProcess) Next $aFoundList[0][0] = $nFound ReDim $aFoundList[$nFound + 1][2] Return $aFoundList EndFunc ; --- EXAMPLE USAGE --- #include <Array.au3> Local $nSysTime, $aProcList $nSysTime = _WinTime_GetSystemTimeAsLocalFileTime() Sleep(10) ; Some systems may need a small sleep (see MichaelIslamet's posts) Run("calc.exe") Run("notepad.exe") Sleep(500) $aProcList = _ProcessListAfterTime($nSysTime) _ArrayDisplay($aProcList, "Processes that started after start point") In michaelslamet's case, call it like _ProcessListAfterTime($nSysTime, "iexplore.exe"). *edit: Added Sleep(10) after getting the System Time. May or may not be system-specific issue (see >MichaelIslamet's post)1 point -
AutoIt and Scintilla based Text Editor a.k.a ASciTE Based off of and ' frameborder='0' data-embedContent>text editors! Click their names to see their projects! Tested only on Win XP 32bit. This will not work on 64bit systems! ASciTE script source => ASciTE.rar Previous Downloads: 44 ASciTE Script Source => ASciTE.rar Previous Downloads: 10 ChangeLog Details Other Files Here are some extractions from the script of thing that took conciderable time, I've taken out what I would assume some people would probably want, such as the arrow for the tab switching (Which stopped working in the latest version) and the IPC (inter process communication) through windows messages that was created for this script from code by wolf9228 in this Tab re-ordering indicator (little red arrow) => Tab Reposition.au3 IPC Script Communication => Simple IPC.au3 Feature details *Portable mode is activated when the "AutoIt3" directory is found in the same directory as the script, but if an installed version is detected, it will default to using that one. ** There is a bug present that I could not figure out where double clicking on the title bar to maximize the window will cause the script to forget its initial size causing the script to stay full screen when re-sized in this manner Other information Credits Background The more you know...1 point