Autoit V3 to slow? autoit2 was faster!?!

"Lüth, Carsten" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
Hello,
 
I' ve got an old autoit2-script.
I wan't to convert it to an autoit3-script.
 
Problem: 
The new written autoit3-Script works fine, but is to SLOW
The old autoit2-script is much faster, because it's using "SetBatchLines,
1000".
 
How can I accelerate the new script?
 
Mit freundlichem Gruß / With kind regards 

Fielmann AG 

Carsten Lüth
IT - Desktop Services
Weidestraße 118a
22083 Hamburg
Telefon: +49 - (0) 40 - 2 70 76 - 199
mailto:[email protected] <mailto:[email protected]>  

-----Ursprüngliche Nachricht-----
Von: valery_vi [mailto:[email protected]] 
Gesendet: Montag, 19. Februar 2007 12:38
An: [email protected]
Betreff: [AutoIt] Re: wingettitle with process?



Carsten,

I know about other simple thing:

; Get process Id (pid) from hWnd:
#include <GUIConstants.au3>
Run("Notepad.exe", "")
Sleep(1000)
Opt("WinTitleMatchMode", 4)
$hWnd = WinGetHandle('classname=Notepad')
;get pid from window handle
$pid = DllCall
("user32.dll", "int", "GetWindowThreadProcessId", "hwnd", 
$hWnd, "int_ptr", 0)
If IsArray($pid) Then MsgBox(0,'','$pid = ' & $pid[2])
WinClose('classname=Notepad')

It's more useful, I think.

Valery

--- In AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com,
"Lüth, Carsten" <c.lueth@...> 
wrote:
>
> Hello,
> 
> is it possible to get the windowstitle if you only know the name of 
the
> process ?
> 
> e.g.:
> wingettitle (process = notepad.exe) ????
> 
> 
> 
> Mit freundlichem Gruß / With kind regards 
> 
> Fielmann AG 
> 
> Carsten Lüth
> IT - Desktop Services
> Weidestraße 118a
> 22083 Hamburg
> Telefon: +49 - (0) 40 - 2 70 76 - 199
> mailto:c.lueth@... <mailto:c.lueth@...> 
> 
> 
> 
> 
> 
> [Non-text portions of this message have been removed]
>



 



[Non-text portions of this message have been removed]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.