AW: Autoit V3 to slow? autoit2 was faster!?!

"Lüth, Carsten" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
;OLD Autoit-2-Script:
InputBox,NDLNummer,Search in TNSNAMES.ORA\nPlease enter Number you want to
search:
SetBatchLines, 1000
setenv,zeilennummer,0
zeilepluseins:
EnvAdd,zeilennummer,1
FileReadline,zeile,C:\\tnsnames.ora,%zeilennummer%
IfNOTEqual,errorlevel,0,Goto,notfound
StringGetPos,Position1,zeile,NDL0%NDLNummer%.world
IfNOTEqual,errorlevel,0,Goto,zeilepluseins
SetBatchLines, 1
MsgBox, 0, AutoIt, NDL0xxx.world found in line %zeilennummer% at position
%Position1%

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: Terwelp, Jeff [mailto:[email protected]] 
Gesendet: Mittwoch, 21. Februar 2007 16:30
An: [email protected]
Betreff: RE: [AutoIt] Autoit V3 to slow? autoit2 was faster!?!



How can we help you without seeing your script?

Jeff

________________________________

From: AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com
[mailto:AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com]
On Behalf Of "Lüth, Carsten"
Sent: Wednesday, February 21, 2007 3:15 AM
To: 'AutoItList@ <mailto:%27AutoItList%40yahoogroups.com> yahoogroups.com'
Subject: [AutoIt] Autoit V3 to slow? autoit2 was faster!?!
Importance: High



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:c.lueth@fielmann. <mailto:c.lueth%40fielmann.com> com
<mailto:c.lueth%40fielmann.com> <mailto:c.lueth@fielmann.
<mailto:c.lueth%40fielmann.com> com <mailto:c.lueth%40fielmann.com> > 

-----Ursprüngliche Nachricht-----
Von: valery_vi [mailto:shehrer1@yahoo. <mailto:shehrer1%40yahoo.co.nz> co.nz
<mailto:shehrer1%40yahoo.co.nz> ] 
Gesendet: Montag, 19. Februar 2007 12:38
An: AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com
<mailto:AutoItList%40yahoogroups.com> 
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]





**********************************************************************
Robert W. Baird & Co. Incorporated does not accept buy, sell or other
transaction orders by e-mail, or any instructions by e-mail that require a
signature. This e-mail message, and any attachment(s), is not an offer, or
solicitation of an offer, to buy or sell any security or other product.
Unless otherwise specifically indicated, information contained in this
communication is not an official confirmation of any transaction or an
official statement of Baird. The information provided is subject to change
without notice. This e-mail may contain privileged or confidential
information or may otherwise be protected by other legal rules. Any use,
copying or distribution of the information contained in this e-mail by
persons or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the material
from any computer on which it exists. Baird, in accordance with applicable
laws, reserves the right to monitor, review and retain all electronic
communications, including e-mails, traveling through its networks and
systems. E-mail transmissions cannot be guaranteed to be secure, timely or
error-free. Baird therefore recommends that you do not send any sensitive
information such as account or personal identification numbers by e-mail.
**********************************************************************

[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.