AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

can i use autohotkey?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ericisbacchus



Joined: 12 Sep 2006
Posts: 4

PostPosted: Tue Sep 12, 2006 9:39 pm    Post subject: can i use autohotkey? Reply with quote

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.
Back to top
View user's profile Send private message
Kerry



Joined: 20 Jul 2006
Posts: 146
Location: Los Angeles

PostPosted: Tue Sep 12, 2006 9:51 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ericisbacchus



Joined: 12 Sep 2006
Posts: 4

PostPosted: Wed Sep 13, 2006 3:36 am    Post subject: Reply with quote

Yeah...I read it but it didn't make sense. Where do I put this code?
Back to top
View user's profile Send private message
Carlol



Joined: 14 Aug 2006
Posts: 162
Location: CPH

PostPosted: Wed Sep 13, 2006 5:52 am    Post subject: Reply with quote

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! Smile
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Wed Sep 13, 2006 6:29 am    Post subject: Reply with quote

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 ... Rolling Eyes
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. Smile

Thx Carlol for your effort. Very Happy
Back to top
ericisbacchus



Joined: 12 Sep 2006
Posts: 4

PostPosted: Wed Sep 13, 2006 5:54 pm    Post subject: Reply with quote

Uhh...thanks???
Back to top
View user's profile Send private message
Kerry



Joined: 20 Jul 2006
Posts: 146
Location: Los Angeles

PostPosted: Wed Sep 13, 2006 6:05 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ericisbacchus



Joined: 12 Sep 2006
Posts: 4

PostPosted: Tue Sep 19, 2006 7:42 pm    Post subject: Reply with quote

I'm starting to get the hang of it. Thanks all.
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 6223

PostPosted: Tue Sep 19, 2006 8:00 pm    Post subject: Reply with quote

ericisbacchus wrote:
I'm starting to get the hang of it.


Congrats! Happy Scripting! Very Happy
_________________
Back to top
View user's profile Send private message
Carlol



Joined: 14 Aug 2006
Posts: 162
Location: CPH

PostPosted: Wed Sep 20, 2006 4:49 am    Post subject: Reply with quote

Very Happy Good luck to you, be sure to come back with some nice code to share!Laughing
Back to top
View user's profile Send private message
Grumpy
Guest





PostPosted: Wed Sep 20, 2006 9:56 am    Post subject: Reply with quote

Carlol wrote:
Very Happy Good luck to you, be sure to come back with some nice code to share!Laughing
Hopefully with a more explicit subject line... Sad
"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.
Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group