SetFocus not working for Skype...

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rjw524
Pro Scripter
Posts: 104
Joined: Wed May 09, 2012 9:45 pm
Location: Michigan

SetFocus not working for Skype...

Post by rjw524 » Tue Feb 03, 2015 6:46 pm

Hi,

I'm using Skype (version 7.0.0.102 if that's important here). I need MS-13 to do some copying and pasting of info from excel or notepad into Skype while Skype's actually running.

Now, I thought a simple SetFocus command would do the trick but it just won't work!

I had to resort to taking a screen image of the Skype icon and using image recognition to get the macro to run. However, this is not the most reliable way and IR is resource intensive, which compounds the fact that Skype itself is pretty resource intensive when it's running.

I've tried a couple of the Window Handle / Child options, Inserted delays of several seconds, etc. and still no go.

Any thoughts?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: SetFocus not working for Skype...

Post by Marcus Tettmar » Wed Feb 04, 2015 8:44 am

Got the exact same version of Skype here and this works fine to focus the main window:

SetFocus>Skype*

Work fine for me. Which Skype window are you trying to focus?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

rjw524
Pro Scripter
Posts: 104
Joined: Wed May 09, 2012 9:45 pm
Location: Michigan

Re: SetFocus not working for Skype...

Post by rjw524 » Thu Feb 05, 2015 4:23 am

Thanks for the response, Marcus.

It's the skype page that shows the actual call itself when you hit the green dial button.

It took me awhile, but for some reason, the only thing that worked for me was to choose the "split windows" view and set focus on the calling window itself with a "SetFocus>+1*"

But using the "SetFocus>Skype*"just did nothing.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts