Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Always On Top

Status
Not open for further replies.

WalleyeGuy

Technical User
Oct 18, 2007
44
US
Hiya All

Sorry for bein' such a newbie here...
However, I'm running a logon script that'll pop out an hta window. Is there a way that I can keep that hta window on top of all other windows, regardless of what commands I execute within the script??

Thought document.focus() however, that didn't work.

Thanks Ahead of time
 
You may try the WshShell.AppActivate method.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Maybe I should try and do this a different way...

wshShell.AppActivate "blablawoofwoof" didn't work
I also tried:
wshShell.AppActivate objIE.Document.Title and that didn't work either.

Basically what I really need is to suppress the windows created by:
wshShell.Exec "reg.exe EXPORT HKCU\Software" &_
"c:\HKCU-Soft_Backup.reg
 
Got it figured out.
I added , 0, True to the end of the line

wshShell.Exec "reg.exe EXPORT HKCU\Software" &_
"c:\HKCU-Soft_Backup.reg", 0, True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top