Jump to content
Sign in to follow this  
youknowwho4eva

If Mouse over Print Do

Recommended Posts

youknowwho4eva

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

Share this post


Link to post
Share on other sites
youknowwho4eva

Nothing? What about detecting when Print (Ctrl + P) pops up next to the mouse? Or any other way to detect when the mouse is over the print icon


Giggity

Share this post


Link to post
Share on other sites
herewasplato

maybe:

If WinExists("Kubotek KeyCreator", "Print the active document") Then ;do stuff


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
youknowwho4eva

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

Share this post


Link to post
Share on other sites
herewasplato

...I'll do a backflip off my desk.

::calls 911, insurance company, HR and then the unemployment office :-)

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
youknowwho4eva

Thats funny, I was gonna add (by backflip I mean leap off my desk land on my head and break my neck)


Giggity

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  

×