youknowwho4eva Posted July 28, 2008 Share Posted July 28, 2008 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 More sharing options...
youknowwho4eva Posted July 28, 2008 Author Share Posted July 28, 2008 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 Link to comment Share on other sites More sharing options...
herewasplato Posted July 28, 2008 Share Posted July 28, 2008 maybe:If WinExists("Kubotek KeyCreator", "Print the active document") Then ;do stuff [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
youknowwho4eva Posted July 28, 2008 Author Share Posted July 28, 2008 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 More sharing options...
herewasplato Posted July 28, 2008 Share Posted July 28, 2008 ...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] Link to comment Share on other sites More sharing options...
youknowwho4eva Posted July 28, 2008 Author Share Posted July 28, 2008 Thats funny, I was gonna add (by backflip I mean leap off my desk land on my head and break my neck) Giggity Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now