![]() You can place multiple AutoHotKey scripts in a single file as long as there is no conflict between key combinations. You can then open that “.ahk” file with any text editor and copy and paste the below AutoHotKey scripts in it. To create an AutoHotKey script file, create a regular text file and then replace the “.txt” extension with “.ahk”. If not, download and install it from the official website. List of Best AutoHotKey Scriptsīefore proceeding, I assume you’ve already installed AutoHotKey. So, to deal with that below is a list of best AutoHotKey scripts that I use quite often. ![]() This is especially true for beginners who are not yet comfortable with AutoHotKey scripting. However, finding general-purpose AutoHotKey scripts to use on a daily basis is a bit harder. There are a ton of AutoHotKey scripts that can do a ton of things in a variety of ways. AHK is much easier to learn than most other languages." Is AHK a programming language in itself, in the same sense that C++ is? I thought it was just an application coded in one of the common languages to run under Windows.One of the best things about AutoHotKey is its community and the scripts they share. What is the software program that interprets and executes all these script files? You said earlier that ". One last question and then I'll quit pestering you. And does "varA := varB" mean to copy the value of varB into varA? Would I find that operation explained in the AHK tutorial? I don't understand the relationship between StartTime and StartTimeString and why you need them both, or why line 3 isn't sending StartTime to the keyboard instead of StartTimeString. Line 3 sends the string value of StartTimeString to the keyboard. Line 2 creates a new variable (?) called StartTime and equates it to the built-in variable A_Now (current date/time). Line 1 sets date/time format for a variable (?) called StartTimeString Works great, and I can customize it further (change date/time format, text, etc.) without screwing it up. I also would like to know if subsequent uses of F3 and F4 will just overwrite the old values so the scheme can be used for the next measurement without clearing anything. I expected my script to subtract start time from stop time and leave result in stop time, but I must have the syntax wrong. F3 and F4 work OK but F5 always writes just a zero. I tried the following to test my understanding, using F3, F4, and F5 for three different hotkeys.įormatTime, StartTimeString,yyyy-MM-dd HH:mm:ssįormatTime, StopTimeString,yyyy-MM-dd HH:mm:ssį3 writes the commercial start time, F4 writes the stop time, and F5 is SUPPOSED to write the duration. Many thanks for your help and for all I'm learning. Works everywhere (Word, Notepad, Wordpad, etc.). Am I correct in assuming not much of this is documented, or that it depends on the skills of a programmer who knows and understands what scripting is all about?įormatTime, TimeString,yyyy-MM-dd HH:mm:ssīEAUTIFUL! Exactly what I wanted. ![]() This use of hotkey scripts is not as important to me as learning how to write scripts and use all the tricks available to AHK. If I have to type in the time with my two fingers it will be off five or more seconds. I need the hotkey to precisely mark as accurately as possible the times. When the commercial stops I hit the hotkey again and type in a comment. Then I type the name of the commercial and any other notes I want to keep. I use Word as follows: When a commercial starts I hit the hotkey to note the time. It doesn't work in Notepad or Wordpad or other text editors because the Insert instruction for Date/Time are different. I have a feeling the link you gave me to FormatTime is a clue to what I need because the cursor down instructions in my script make it application-specific to Word, and possibly Word2000 running on XP. This DOES NOT work (ignores the Down 12 instruction):Īre these variations part of AutoHotKey or part of scripting in general? Why did you give me the "Down 4" suggestion earlier? If I have previously selected the format I want in this box, it will already be highlighted, and all I need is another to print it. That opens a Date and Time format selection box. Hit i to drop down the Insert menu, which has Date and Time already highlighted at top of the list. If I'm running Word I can insert date/time to the nearest second as follows: I'm trying to manually log TV commercials to study their frequency, time of occurance, duration, etc. For testing the F3 hotkey I was running Notepad.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |