AutoHotkey Community

It is currently May 27th, 2012, 7:40 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: can i use autohotkey?
PostPosted: September 12th, 2006, 10:39 pm 
Offline

Joined: September 12th, 2006, 10:35 pm
Posts: 4
Can I use autohotkey to do the following?

Change a key like F7 to do the following macro:
CTRL+DELETE, TAB, ENTER, TAB, ENTER

What about make a key like F8 or something to type the following:
Photo (color)

How do I do it? I don't get it. Can I make these run in a specific program only???

Thanks so much in advance. I do many repetitive things, and it would come in very handy.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 12th, 2006, 10:51 pm 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
Yes, you can. Have you read the manual?

I'll give an example of your first one if someone else doesn't do it before me:

Code:
F7::
  Send ^{DELETE}
  Send {TAB}
  Send {ENTER}
  Send {TAB}
  Send {ENTER}
  Return


I haven't tried this code, but it should work.

_________________
String Manipulator - GrabIco


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 13th, 2006, 4:36 am 
Offline

Joined: September 12th, 2006, 10:35 pm
Posts: 4
Yeah...I read it but it didn't make sense. Where do I put this code?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 13th, 2006, 6:52 am 
Offline

Joined: August 14th, 2006, 11:54 am
Posts: 163
Location: CPH
Well the manual. also very difficult for me, but basically you need to make a script:
Creating a script
Each script is a plain text file containing commands to be executed by the program (AutoHotkey.exe). A script may also contain hotkeys and hotstrings, or even consist entirely of them. However, in the absence of hotkeys and hotstrings, a script will perform its commands sequentially from top to bottom the moment it is launched.

To create a new script:

Open Windows Explorer and select a folder of your choice.
Pull down the File menu and choose New >> AutoHotkey Script (or Text Document).
Type a name for the file, ensuring that it ends in .ahk. For example: Test.ahk
Right-click the file and choose Edit Script.
On a new blank line, type the following:
#space::Run www.google.com
The symbol # stands for the Windows key, so #space means holding down the Windows key then pressing the spacebar to activate a hotkey. The :: means that the subsequent command should be executed whenever this hotkey is pressed, in this case to go to the Google web site. To try out this script, continue as follows:

Save and close the file.
In Windows Explorer, double-click the script to launch it. A new tray icon appears.
Hold down the Windows key and press the spacebar. A web page opens in the default browser.
To exit or edit the script, right click its tray icon.


Good luck! :-)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 13th, 2006, 7:29 am 
It depends.
Quote:
Yeah...I read it but it didn't make sense
... for you. If you expect from us to explain you every single line of it, well ... :roll:
Quote:
can i use autohotkey?
No. Programming needs to be specific. To work with the computer too. Your subject line isn't specific. I guess it'll be a tough ride for you. Anyway. Good luck. :)

Thx Carlol for your effort. :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 13th, 2006, 6:54 pm 
Offline

Joined: September 12th, 2006, 10:35 pm
Posts: 4
Uhh...thanks???


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 13th, 2006, 7:05 pm 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
lol - you have to be willing to learn a bit, at first the manual might seem a bit confusing (did for me), when you make your first script, after that everything gets easier, and then the manual is your best friend.

-Kerry

_________________
String Manipulator - GrabIco


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2006, 8:42 pm 
Offline

Joined: September 12th, 2006, 10:35 pm
Posts: 4
I'm starting to get the hang of it. Thanks all.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2006, 9:00 pm 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
ericisbacchus wrote:
I'm starting to get the hang of it.


Congrats! Happy Scripting! :D

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2006, 5:49 am 
Offline

Joined: August 14th, 2006, 11:54 am
Posts: 163
Location: CPH
:D Good luck to you, be sure to come back with some nice code to share!:lol:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2006, 10:56 am 
Carlol wrote:
:D Good luck to you, be sure to come back with some nice code to share!:lol:
Hopefully with a more explicit subject line... :-(
"can i use autohotkey?"
Yes, of course you can! It is free... As long as the policies at your work allow you to install software.
:-)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: HotkeyStick, sjc1000, SKAN, tomL and 68 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group