Jump to content
Sign in to follow this  
Ben

WinActivate : Obsolete function ?

Recommended Posts

Ben

Hi,

With AutoIt v3.2.0.1 I have this error message :

-----------

C:\AutoIt3-script\NewsToBC2.au3 (74) : ==> Obsolete function/parameter.:

WinActivate($hdial)

Use directly Windows handle

----------

But nothing in help file ?

Share this post


Link to post
Share on other sites
MHz

What code leading up yo the event may have triggered the error? Currently, only you have the code to debug.

Share this post


Link to post
Share on other sites
Ben

This is a little bit of code :

Opt ("WinTitleMatchMode", 4)

Const $class_dial = "Tfrm40tdMain.UnicodeClass"

Run("C:\Documents and Settings\dialog.exe", "C:\Documents and Settings", @SW_MAXIMIZE)

WinWaitActive("classname=" & $class_dial, "", 10)

$hdial = "handle=" & WinGetHandle("classname=" & $class_dial, "")

;....

;

;

; GUI

;

;....

WinActivate($hdial) ;<--- here the problem

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.