Online since 2002. Over 3300 puzzles, 2600 worldwide members, and 270,000 messages.

TwistyPuzzles.com Forum

It is currently Thu Apr 17, 2014 10:07 pm

All times are UTC - 5 hours



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Auto Hot Keys
PostPosted: Tue Aug 09, 2011 11:50 pm 
Offline
User avatar

Joined: Sat Apr 10, 2010 8:07 pm
In the cryptography thread created by vdude I wrote an extremely simply ahk script to make it so that I type in rot13. That got me thinks about what else I could do, so I started searching and I found the script bellow on the ahk forum. It allows you to type something and then your computer says it. I'm new to coding and I was wondering how it worked. Any help would be greatly appreciated. Thanks :)


Talk:
FileDelete, %A_ScriptDir%\SpeechMe.vbs
FileAppend, Dim voic `n, %A_ScriptDir%\SpeechMe.vbs
FileAppend, Set voic = WScript.CreateObject("SAPI.SpVoice")`n, %A_ScriptDir%\SpeechMe.vbs
FileAppend, Set voic.voice = voic.GetVoices("", "Language=809").Item(0)`n, %A_ScriptDir%\SpeechMe.vbs
FileAppend, voic.Speak("%Say%")`n, %A_ScriptDir%\SpeechMe.vbs
FileAppend, Set voic = nothing`n, %A_ScriptDir%\SpeechMe.vbs
Run, WSCRIPT.EXE "%A_ScriptDir%\SpeechMe.vbs",,, WSCRIPT_PID
return



P.S. Those of you not familiar with ahk, its a simple scripting language aimed at creating macros and the such. Heres a link to the site.


Top
 Profile  
 
 Post subject: Re: Auto Hot Keys
PostPosted: Wed Aug 10, 2011 12:03 am 
Offline
User avatar

Joined: Fri Feb 06, 2009 2:57 pm
Location: Pittsburgh
The only think I used AHK for before was to determine what the keycode was for different keys on my keyboard so I could set up ePSXe to play FF:VII.

_________________
3x3x3 PB: 00:48.10
"Study gravitation, it's a field with a lot of potential."
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot 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:
Jump to:  

Forum powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group