Jump to content

Recommended Posts

  • Developers
Posted

Thanks Jos for the code,

Interestingly, it finds two windows with exact title but different handles, and I do not understand why?!

Am I not allowed to say: I told you so? :)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

So your next step is to test the 2 windows you have for visibility, and use the handle from the visible one.

Ss the handle same if the application is even running in another computer under another version of Windows?

Posted

No the handle wont be the same, it hardly ever will, even on the same machine.

take a look at the example of winlist() in the help, and its IsVisible() function

If you list just the "SyncBackPro" windows

WinList("SyncBack")

and use the IsVisible function upon it to get the window handle, you can use that handle in place of "SyncBack"

eg ControlSend($hWnd, "", "", "!+x")

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Posted

No the handle wont be the same, it hardly ever will, even on the same machine.

take a look at the example of winlist() in the help, and its IsVisible() function

If you list just the "SyncBackPro" windows

WinList("SyncBack")

and use the IsVisible function upon it to get the window handle, you can use that handle in place of "SyncBack"

eg ControlSend($hWnd, "", "", "!+x")

thank you for your replies, but when it is minimized in systray, the IsVisible() doesn't work, and still I can't have its handle! any other suggestion?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...