Jump to content
Sign in to follow this  
Kyan

ITaskBarList.au3 - Delays script execution

Recommended Posts

Kyan

Hi,

there's someone with the same problem?

when I use the ITaskBarList.au3 in my script it increases the time for application start, maybe something is wrong with the ITaskBarList code :/

can someone gives me a hand because I'm not a expert in autoIT :oops:

thanks for your time.


Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, DiOgO. Please post your code so we can see where it might be giving you fits. As ITaskBarList contains a number of functions, it is a little difficult to solve the issue without seeing how you're implementing it.


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
Kyan

I'm only using this from the ITaskBarList.au3:

$oTaskbar = _ITaskBar_CreateTaskBarObj()
_ITaskBar_SetProgressState($Form1, 2)
_ITaskBar_SetProgressValue($Form1, $perc[0])

@JFX, I'll try it, thanks


Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

Share this post


Link to post
Share on other sites
James

This could be due to a variety of reason:

  • You're on a slow computer.
  • AutoIt itself is leaking memory somewhere.
  • The UDF wasn't written properly.
  • Something on your PC is lagging everything else.
And probably more.

Share this post


Link to post
Share on other sites
Kyan

search this line:

If TimerDiff($time) > 5000 Then Return SetError(2, 0, 0)

and replace with

If TimerDiff($time) > 1000 Or @OSBuild < 7600 Then Return SetError(2, 0, 0)

yap, that was the problem, I set it to 250, there's some problem with that?

props


Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×