Jump to content

If Mouse over Print Do


Recommended Posts

I would like my script to change focus from one area to another when the mouse is over the print button, I figured that seeing when the mouse is over the print icon the visable text changes so I tried this

$sWinText = WinGetText("Kubotek KeyCreator", "")


    Case StringInStr($sWinText, "Print the active document")
    controlfocus("Kubotek KeyCreator", "", "Afx:00400000:2b1")
But didn't get the results I was looking for. Im wondering how I would do this.

Giggity

Link to comment
Share on other sites

Thanks again herewasplato, I had tried including that if with my other if statement. For some reason when you suggested it, I created a different If statement and tada it works. *slaps self in the forehead* Now if I can get it to work with W2K I'll do a backflip off my desk.

Giggity

Link to comment
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
 Share

  • Recently Browsing   0 members

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