AutoHotkey Community

It is currently May 27th, 2012, 12:01 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Creating HotKeys Problem
PostPosted: December 8th, 2010, 5:37 am 
Offline

Joined: January 5th, 2007, 2:18 pm
Posts: 33
Hi Guys,
i have to create a script which will read a text file and Create HotKeys of OutPut and disable them Like This

Code:
;    KeyNames.txt
AEIOU


Code:
FileReadLine, out, %A_ScriptDir%\KeyNames.txt, 1

Loop Parse, out
{
   ; I dont know what is the next step here
}
Return


Please Help Me its very important for me

Regards
KAKA

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2010, 6:50 am 
Offline
User avatar

Joined: November 19th, 2010, 3:12 pm
Posts: 787
Location: At my computer
Using an INI file and the Hotkey Command would probably be easier than the method you are working on.

Script:
Code:
iniread, key1, keys.ini, keys, key1
hotkey, %key1%, key1

key1:
 {
    ;Code for the first hotkey to execute.
 }
return


keys.ini file:
Quote:
[Keys]
key1=a

Just repeat the code for as many hotkeys as you want. If you want the keys to be inactive you can do that with the Hotkey Command too. Read about it.

_________________
"My dear Mr Gyrth, I am never more serious than when I am joking."
~Albert Campion

My personal site


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2010, 7:04 am 
Offline

Joined: January 5th, 2007, 2:18 pm
Posts: 33
thanks for your quick reply
i m going to test it :D

_________________
Image


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google Feedfetcher 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