Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 15-08-2011, 01:24 PM   #1 (permalink)
Night Fury
 
mayoorite's Avatar
 
Join Date: Jun 2011
Location: Ajmer,Rajasthan
Posts: 99
Smile How to make batch file?


Hi!
I need help to make a batch file to run "ctrl+alt+right arrow". or to rotate screen.
Please reply.
mayoorite is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 16-08-2011, 07:23 PM   #2 (permalink)
Alpha Geek
 
Join Date: Jan 2007
Location: In your hearts
Posts: 828
Default Re: How to make batch file?

Which OS?
abhijangda is online now   Reply With Quote
Old 16-08-2011, 08:22 PM   #3 (permalink)
Stuck in Time...
 
Vyom's Avatar
 
Join Date: May 2009
Location: Land of Logic
Posts: 2,269
Default Re: How to make batch file?

@OP: I can't say if you can create a batch file for this purpose, but you can make a simple VB script to the same purpose, and call that from a batch file. (Assuming you are using Windows XP).

If you want to create the script, following would be the best page to do that:
Microsoft Windows 2000 Scripting Guide - Sending Keystrokes to a Program

Tell me, if you were unable to make it, since I got successful in making one.
__________________
Marty: Hey, Doc, we better back up. We don't have enough road to get up to 88.
Doc Brown: Roads? Where we're going, we don't need, "roads!" :)

──── On the Internet you can be Anything you want. It's Strange that, so many people choose to be Stupid! ────
Vyom is online now   Reply With Quote
Old 16-08-2011, 09:19 PM   #4 (permalink)
<Sparkling Pwnies>
 
Anorion's Avatar
 
Join Date: Oct 2008
Posts: 956
Default Re: How to make batch file?

just save the extension as .bat in ur text editor
__________________
IDDQD IDKFA
Anorion is online now   Reply With Quote
Old 16-08-2011, 10:02 PM   #5 (permalink)
Stuck in Time...
 
Vyom's Avatar
 
Join Date: May 2009
Location: Land of Logic
Posts: 2,269
Default Re: How to make batch file?

@Anorion: If speaking to OP, then I really thinks he know how to make a batch file, what he may not know are commands to execute to invoke that shorcut.
If you were referring to me, then.. thanks, I would try renaming .vbs to .bat to create a batch file from vbs script file.

Edit: No It doesnt work that way. :S
__________________
Marty: Hey, Doc, we better back up. We don't have enough road to get up to 88.
Doc Brown: Roads? Where we're going, we don't need, "roads!" :)

──── On the Internet you can be Anything you want. It's Strange that, so many people choose to be Stupid! ────
Vyom is online now   Reply With Quote
Old 16-08-2011, 11:27 PM   #6 (permalink)
Night Fury
 
mayoorite's Avatar
 
Join Date: Jun 2011
Location: Ajmer,Rajasthan
Posts: 99
Default Re: How to make batch file?

Quote:
Originally Posted by vineet369 View Post
@OP: I can't say if you can create a batch file for this purpose, but you can make a simple VB script to the same purpose, and call that from a batch file. (Assuming you are using Windows XP).

If you want to create the script, following would be the best page to do that:
Microsoft Windows 2000 Scripting Guide - Sending Keystrokes to a Program

Tell me, if you were unable to make it, since I got successful in making one.
I will try and reply in one or two days.
mayoorite is offline   Reply With Quote
Old 16-08-2011, 11:54 PM   #7 (permalink)
<Sparkling Pwnies>
 
Anorion's Avatar
 
Join Date: Oct 2008
Posts: 956
Default Re: How to make batch file?

yeah its overkill for a batch file, but I was just answering OPs question
the vbs can be added to a batch file using

Code:
@echo off
start c:\keystrokes.vbs
orr add the .vbs directly to the registry or startup folder
__________________
IDDQD IDKFA
Anorion is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:33 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2