Recently Browsing 0 members
No registered users viewing this page.
I have a Delphi compiled program that I use for work and I can read some logs with this function:
Func __ReadExternalListBox() Local $hListBox, $iItemCount $hListBox = ControlGetHandle("Software Setup", "", "[CLASS:TListBox; INSTANCE:1]") ConsoleWrite("$hListBox = " & $hListBox & @CRLF) $iItemCount = _GUICtrlListBox_GetCount($hListBox) For $i = $iStart To $iItemCount - 1 ConsoleWrite(GUICtrlListBox_GetText($hListBox,$i) & @CRLF) Next EndFunc ;==>__ReadExternalListBox I can find pid and full path of the process.
The problem is when I must open another process: I can't read the new ListBox because the title of the window to read is the same and the function
$hListBox = ControlGetHandle("Software Setup", "", "[CLASS:TListBox; INSTANCE:1]") return me only one handle.
With Autoinfo I can read handle: is, for this instance, 0x0001099C and is $hListBox
But I need to automize some function and I can't always change in runtime this values.
Ideas? Is there e method to read this title windows associated to a determined pid?
I don't need the handle from the pid windows application, but from its control
if I use
_WinAPI_EnumProcessWindows() the function return me window handle, not Control handle
In this case Windows Handle is 0x001007DA but I need Control Handle that is 0x0001099C
I'm trying to call WinList() with a handle. That should be possible:
But I only get back an 2d array that looks like this:
(That means no window was found.)
It's not the window or the handle. When I call other functions like WinExists() or WinGetHandle() it works.
Is it because of me, the description in the reference or because of Autoit who makes a mistake?
No, because of the rest of my program I don't want to use WinGetTitle() because the format of WinList() has to be kept. Alternatively, I could create a 2d array myself, but it should also work with WinList() ... I hope.
i've some questions about StringRegExpReplace i hope you can help me
i tried to make a function that give me the host of the url and other give me the url with out host
for example i've this link
i need the first give me the
and the other give me
i find that
$s_source = "https://www.google.com/vb/index.php" Local $s_Host = StringRegExpReplace($s_Source, '.*://(.*?)/.*', '\1') Local $s_Page = StringRegExpReplace($s_source, '.*://.*?(/.*)', '\1') msgBox(64, $s_Host, $s_Page)
but i found some problems i need your help to correct it
first: when i get the host if the url has www i want to remove it
second: if the url with out host did not have other things
i need the result to be ""
the first i want it
and the second i want it to be ""
i hope that you can help me
thanks in advance
So basically need to pull text from a .txt file or .sql and use that text to replace something within a different file.
Text1 = jumps
Text2 = fence
My Dog XXXXX over the YYYYY.
My Dog jumps over the fence
I have found a good start, I'm basic programmer at best, I have some experience but this gets out of my wheel house.
Any help is appreciated.
I want to ask about this :
I want it runs from 1 to 100 and It opens 10 firefox profiles then access youtube. After I close a firefox window, the loop runs and wait for another window close until loop ends
I have a loop like this.
Func launch() Local $from = Int(GUICtrlRead($input1)) Local $to = Int(GUICtrlRead($input2)) If $to <> "" Then While $from <= $to Local $profile = $to _RunDos("start firefox.exe -p " & $profile & " -no-remote youtube.com") $to=$to+1 WEnd Else Local $profile = $to _RunDos("start firefox.exe -p " & $profile & " -no-remote youtube.com") EndIf EndFunc Is there any solution?