Google Answers Logo
View Question
 
Q: INSERT A FUNCTION KEY (F1 to F12) in a batch file ( No Answer,   4 Comments )
Question  
Subject: INSERT A FUNCTION KEY (F1 to F12) in a batch file
Category: Computers > Operating Systems
Asked by: felisque-ga
List Price: $5.00
Posted: 26 Nov 2005 15:01 PST
Expires: 26 Dec 2005 15:01 PST
Question ID: 597857
Is it possible to for a batch file to execute a function key command.
If so how do we write the batch file.
Thank you

Request for Question Clarification by hummer-ga on 26 Nov 2005 17:58 PST
Hi felisque,

Is this what you are looking for?

Programming the function Keys
http://www.xrmx.com/resources/programming/batch.html

Regards,
hummer
Answer  
There is no answer at this time.

Comments  
Subject: Re: INSERT A FUNCTION KEY (F1 to F12) in a batch file
From: sparxnet-ga on 05 Dec 2005 00:15 PST
 
To enter Ctrl-Shift-F7:

	  SendKeysto("Microsoft Word", "^+{F7}")


Got this from this link - http://techsupt.winbatch.com/TS/T000001058F28.html

Hope it helps
Subject: Re: INSERT A FUNCTION KEY (F1 to F12) in a batch file
From: cytro-ga on 08 Dec 2005 20:03 PST
 
Felisque, it is not possible to for function keys to be used. This is
a windows security measure.
Subject: Re: INSERT A FUNCTION KEY (F1 to F12) in a batch file
From: kumar754-ga on 08 Dec 2005 23:51 PST
 
It is not possible to use the Function key like a command in the batch
files... but infact if you want to implement, therez always some way
to do it. I dont know what you are trying to do out here using the
function keys. but you can create an exe in C language using Intrrupt
programming to fire the command for function key. and execute this exe
usig your batch file. If you need more help on how to create such
program in C language, that will be answered saperately in next
question.
Subject: Re: INSERT A FUNCTION KEY (F1 to F12) in a batch file
From: traviswagers-ga on 10 Dec 2005 12:38 PST
 
We ran into this at work.  We needed a bat/program for Function + F2,
which enables and disables WiFi.  Initially Idid not have very much
success.  What I ended up doing is downloading DEVCON from micro$oft. 
DEVCON is basically a command line version of the Windows Device
Manager.  MY first test was a bat file, as you requested, that
executed a DEVCON disable for the WiFi NIC card.  It worked perfectly.
 Eventually, I wrote both a Windows Service and normal VP Application
to take care of executing these tasks utilizing DEVCON.

DEVCON can be downloaded here:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272

At a command prompt, browse to the directory holding DEVCON, and type
the following command:      DEVCON hwids =net

It will show you your Wireless NIC card, and the Compatible IDs.  

Next do some trial and error testing with your results.

At command prompt here is the syntax of a disable command:
DEVCON DISABLE <insert compatible ID here>

DEVCON DISABLE PCI\VEN_1317

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy