Jump to content
Sign in to follow this  
Doghouse

Keyboard Function Keys

Recommended Posts

Doghouse

would a command like:

Send("{F8}")

replicate pressing the F8 function key on the keyboard? If not how would I need to write the script to replicate pressing a function key?

Thanks

Share this post


Link to post
Share on other sites
GEOSoft

help file >> appendix >> sendkey list.

Yes, it does send the function key code.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites
Doghouse

Thank You!

Please pardon my silly questions. I just heard about AutoIt yesterday in response to a question on another forum. I'm still very green to AutoIt, but can see how it can help automate several of my dialy tasks.

Please bear with me while I try to learn.

Share this post


Link to post
Share on other sites
somdcomputerguy

..heard about AutoIt yesterday in response to a question on another forum.

Offtopic sortof.. What other forum if you don't mind? Just curious.. :mellow:

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
Doghouse

CodeCall

I went there looking for a suggestion about writing this script, and was pointed to AutoIt.

Edited by Doghouse

Share this post


Link to post
Share on other sites
Doghouse

Along the same line of inquiry, when writing a script to automate repetiative proceedures, would I write the SEND command comments to conform to the AutoIt syntax of the syntax of the program I'm working in. For example to simulate pressing the return button in AutoIt the command would be Send("{ENTER}"), but whe writing macros in the application I use at work I would enter ^m to simulate pressing the return button. Which method should I use?

Share this post


Link to post
Share on other sites
somdcomputerguy

Send Enter.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
Doghouse

Thanks!

Another silly question, which would work better when operating an a DOS type environmment Send or ControlSend?

Share this post


Link to post
Share on other sites
somdcomputerguy

I try to use ControlSend over Send (for Windows or DOS, too), except when I can't.. But I can't really say which operates better with a DOS window.

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
Doghouse

The program works in windows, but operates more like a dos program. None of the Windows features work, you cannot click to move from place to place on the screen, all the navigation is done with the keyboard. This program is slated to be replaced next year, about 15-20 years over due.

Share this post


Link to post
Share on other sites
somdcomputerguy

Use the AutoIt Window Info Tool (AU3Info) to see whatever can be got from a program, UIO wise anyway.. I'm sure if you posted particular things you were trying to accomplish, as well as any code you have gotten to the point of, would get you all kinds of assistance here..


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
Doghouse

I'll start the more serious coding Tuesday when I get back to work. There are several areas that I cannot get too specific due to security restrictions. I work for a phone company and they're very touchy about sharing any info.

Thanks for giving me a good place to start.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.