Created
January 11, 2019 07:09
-
-
Save sangheonhan/15668bffb5f5c0f4d36e35093e66745d to your computer and use it in GitHub Desktop.
월드 오브 워크래프트 단축키를 반복해서 눌러주는 VBScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim WshSHell | |
set WshShell = CreateObject("WScript.Shell") | |
Do While True | |
set service = GetObject ("winmgmts:") | |
Dim flag | |
flag = False | |
For Each Process in Service.InstancesOf ("Win32_Process") | |
If Process.Name = "Wow-64.exe" Then | |
WshShell.AppActivate("월드 오브 워크래프트") | |
WshShell.SendKeys("j") | |
WScript.Sleep(1000) | |
flag = True | |
Exit For | |
End If | |
Next | |
If flag = False Then | |
WScript.quit | |
End If | |
WScript.Sleep(100) | |
LOOP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment