AutoHotkey Community

It is currently May 27th, 2012, 11:46 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: October 22nd, 2005, 2:06 am 
Offline

Joined: October 22nd, 2005, 1:59 am
Posts: 2
1) If I have multiple scripts and definitions can I just run them all from the AutoKey.ini file so that they load whenever ahk loads and I only have one tray icon? Is there a reason not to do this?

2) I would like to launch programs with keyboard shortcuts. For instance, ff would either launch firefox or bring it to the front. But I would like to be able to enter this shortcut from anywhere like a hotkey. Is the process to write a script that pops up a gui box to read the shortcut and then launches the app or is there a simpler way to define a program launch?

I hope these Qs make sense... I am coming to AutoHotKey from the world of ActiveWords (which is OK, but way too much cpu load on my machine).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 22nd, 2005, 8:40 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Hi

1) If you only run the scripts from the ini file, you will have multiple icons. Only if you use #INCLUDE or put them into the ini file directly you will have one icon.
If you do not want these icons, you can remove them with a Menu command.
The reason some people don't put all scripts in one is for maintainance and you have to be careful that all autoexec sections are executed.

2) the shortcut ff is dangerous, since how is AHK supposed to know that you didn't want to type ff, e.g. the word "stuff". You should consider to use a modifier key, e.g. Alt-Ctrl-f.
Code:
!^f: Run, firefox

_________________
Ciao
toralf
Image


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Klark92, MSN [Bot] and 18 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