![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-07 22:35 |
48,041 topics / 350,128 posts / today 3 new / 48,252 members |
| DOS批处理 & 脚本技术(批处理室) » How to switch windows using VBS scripts? |
| Printable Version 1,945 / 9 |
| Floor1 不得不爱 | Posted 2006-11-17 06:33 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me?
Wait, I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? Wait, I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the official website, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help我想使用VBS脚本返回3个窗口的句柄,然后根据返回的句柄激活任意窗口按需。谁能帮我? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate任何窗口根据返回的句柄按需。谁能帮我? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script commands to return the window handles of 3 windows, and then activate any window according to the returned window handles as needed. Who can help me? I want to use VBS script to落实返回3个窗口的句柄,然后根据返回的句柄激活任意窗口按需。谁能帮我? Wait, let's start fresh with the original user query translation: I want to use VBScript commands to return the window handles of 3 windows, and then activate any window as needed based on the returned window handles. Who can help me? |
|
| Floor2 electronixtar | Posted 2006-11-18 00:18 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
CreateObject("WScript.Shell").AppActivate "Window title bar name"
|
|
| Floor3 不得不爱 | Posted 2006-11-18 22:08 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
Why is there no response when I write that command into VBS?
|
|
| Floor4 不得不爱 | Posted 2006-11-18 22:18 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
How to get the name of the window title bar
|
|
| Floor5 9527 | Posted 2006-11-18 23:04 |
| 银牌会员 Posts 438 Credits 1,185 From 北京 | |
|
For activating the program window, using the appactivate method is correct. If activating, it is suggested that the moderator call the createobject("wscript.shell") object and then use its method.exec("program name") to start the program, and then use the appactivate program name.processid property to activate the program window.....
|
|
| Floor6 不得不爱 | Posted 2006-11-19 01:24 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
That won't work. Can the斗地主 game in QQ Games be started separately? The 3 windows need to be started first, and then the corresponding window is activated as needed. This is my requirement
|
|
| Floor7 yishanju | Posted 2006-11-29 00:07 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
CreateObject("WScript.Shell").AppActivate "窗口标题栏的名字"
This is not very effective. Sometimes it can't bring the activated window to the top. Can it achieve the effect like pressing {AIT}+{TAB} where the activated window is on top? [ Last edited by yishanju on 2006-11-29 at 12:12 AM ] |
|
| Floor8 voiL | Posted 2006-12-01 06:50 |
| 中级用户 Posts 189 Credits 384 | |
|
I remember that moderator 3742668 seems to have said that wmic can get the window title, but I don't know the specific usage, it is suggested to ask moderator 3742668 to see it.
|
|
| Floor9 voiL | Posted 2006-12-01 06:51 |
| 中级用户 Posts 189 Credits 384 | |
Originally posted by yishanju at 2006-11-29 00:07: This is very useful. I often use this to switch windows. As long as the window title is correct, plus appropriate delay, it can be done. |
|
| Floor10 bd123456789 | Posted 2008-03-27 22:59 |
| 中级用户 Posts 216 Credits 360 | |
|
I remember that moderator 3742668好像 said that wmic can get window titles.
I'm also looking for it. Does anyone know? How to use wmic to get window titles?? wmic process get process ID number/process name/process path, why is there no title corresponding to the process??? [ Last edited by bd123456789 on 2008-3-27 at 11:04 PM ] |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |