Jump to content



Photo

VBScript launched w/ HOT KEYBOARD : WinGetTitle does not work


  • Please log in to reply
2 replies to this topic

#1 Liv

Liv

    Seeker

  • New Members
  • 4 posts

Posted 28 July 2007 - 11:56 AM

Problem with WinGetTitle
I write all my scripts in VBScript with references to AutoItX3.dll
My OS is Windows XP Professional 64 (mobo is Athlon X2 64 bits).
I use Hot Keyboard Pro to launch the VBScripts.

This is the problem:
I want to retrieve the title of the active window, so I write
Set ax = CreateObject("AutoItX3.Control")
Dim someVar
someVar = ax.WinGetTitle("")
MsgBox someVar

Now instead of the title of the current active window being displayed, the message is "Hot Keyboard Pro"

When i make 2 calls to MsgBox like in
someVar = ax.WinGetTitle("")
MsgBox someVar
MsgBox someVar

Now the first message is "Hot Keyboard Pro" and the second message is the title of the current active window.

Of course I don't want this "Hot Keyboard Pro". Any clues to how to solve this ?





#2 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 29 July 2007 - 07:02 AM

I cannot test under a 64-bit version I hope Jon can :)

#3 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 9,529 posts

Posted 23 December 2007 - 01:30 PM

Probably need to use the x64 version of the dll.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users