Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Move Active Window

1 view
Skip to first unread message

VB6Pro

unread,
Dec 5, 2009, 8:05:15 AM12/5/09
to
I need to write a program that moves the active window after every 20
seconds. I believe there must be some api function for that but dont know
which one. Can any one help. In most case the active window will be VB6 IDE
itself so if any active window is not easy is it easy to write a code that
moves the VB6 IDE after every twenty seconds?? Don't ask why I want to do
it, I just need to do it!!

Thanks

Message has been deleted

Eduardo

unread,
Dec 5, 2009, 2:46:15 PM12/5/09
to
VB6Pro escribi�:

Hi, get the handle of the active window with the API GetActiveWindow and
then call to GetWindowPlacement to get the window state, and if it's
normal (not maximized or minimized) move the window with MoveWindow.
Use a timer to do it every 20 seconds.

http://allapi.mentalis.org/apilist/GetActiveWindow.shtml
http://allapi.mentalis.org/apilist/GetWindowPlacement.shtml
http://allapi.mentalis.org/apilist/MoveWindow.shtml

Dee Earley

unread,
Dec 7, 2009, 9:03:39 AM12/7/09
to

Locking the PC will have the same effect of an unusable system...

--
Dee Earley (dee.e...@icode.co.uk)
i-Catcher Development Team

iCode Systems

Karl E. Peterson

unread,
Dec 7, 2009, 6:12:23 PM12/7/09
to
Eduardo presented the following explanation :
> VB6Pro escribiᅵ:

Wouldn't GetForegroundWindow be a "more better" choice?

--
[.NET: It's About Trust!]


0 new messages