batch file every second Alt+F3

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
tomboman
Posts: 1
Joined: 21 Dec 2011 09:06

batch file every second Alt+F3

#1 Post by tomboman » 21 Dec 2011 09:09

Hi, I want to make a batch file that press every second the Alt + F3 combination.

I have no idea how I have to make this, can someone help me?

aGerman
Expert
Posts: 3828
Joined: 22 Jan 2010 18:01
Location: Germany

Re: batch file every second Alt+F3

#2 Post by aGerman » 21 Dec 2011 11:44

tomboman wrote:Hi, I want to make a batch file that press every second the Alt + F3 combination.

No way.

tomboman wrote:can someone help me?

Not sure. Have a look at SendKeys in VBScript or JScript. But it's not applicable to a lot of computer games (the developers already know such tricks).

Regards
aGerman

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: batch file every second Alt+F3

#3 Post by orange_batch » 21 Dec 2011 20:19

It's'a ease'ay...

http://msdn.microsoft.com/en-us/library ... dkeys.aspx

presskey.vbs

Code: Select all

set a=wscript.createobject("wscript.shell")
a.sendkeys "%{F3}"

DOS:

Code: Select all

cscript presskey.vbs //nologo

Post Reply