| View previous topic :: View next topic |
| Author |
Message |
vengance Guest
|
Posted: Sat Jul 19, 2008 3:02 pm Post subject: Saving scripts in the script section. |
|
|
when saving codes in scripts on notepads, what file type do i save it as?
like this for example
| Code: | a::
MsgBox, Get the **** away from the computer.
Return
b::
MsgBox, Get away from the computer.
Return
c::
MsgBox, Get away from your computer.
Return |
how do i exexute it and save it as one file |
|
| Back to top |
|
 |
lol Guest
|
Posted: Sat Jul 19, 2008 3:28 pm Post subject: |
|
|
.ahk
ahk2exe |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5887
|
Posted: Sat Jul 19, 2008 3:50 pm Post subject: Re: Saving scripts in the script section. |
|
|
| vengance wrote: | | when saving codes in scripts on notepads, what file type do i save it as? |
Filename should have .ahk extension
Save as type should be All Files
Encoding should be ANSI
 _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
vengance Guest
|
Posted: Sat Jul 19, 2008 6:02 pm Post subject: |
|
|
when i save it it appears as a text file
why does this happen |
|
| Back to top |
|
 |
vengance Guest
|
Posted: Sat Jul 19, 2008 6:05 pm Post subject: |
|
|
see |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5887
|
Posted: Sat Jul 19, 2008 6:18 pm Post subject: |
|
|
| vengance wrote: | | when i save it it appears as a text file |
I have already answered. Please read it carefully. _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
lol Guest
|
Posted: Sat Jul 19, 2008 7:40 pm Post subject: |
|
|
| Do you have AutoHotkey installed? Does it work when you double click it? |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Jul 19, 2008 8:19 pm Post subject: |
|
|
| vengance wrote: |
see |
...Notepad by default saves as Text File...so even if you type test.ahk you will get test.ahk.txt...also by default Microsoft thought it was a GOOD idea (it's not) to "Hide extensions for known file types"...which means you can't see the .txt on the end...so the solution is 2-fold, re-follow SKAN's instructions to a T...including picking "All Files" before you save...which will...or should...give you test.ahk & not test.ahk.txt...but also for good measure do this to...
- Start -> Control Panel -> Tools -> Folder Options -> View -> Uncheck "Hide extensions for known file types" -> OK
- Look at the desktop, notice "omgzlolz.ahk.txt"
- Click twice slowly on it (or right-click -> Rename)
- Remove the .txt (that's DOT T X T) from the end...
- Press Enter or click off it to accept the new name
- Click Yes when it barks about changing the extension
- Install Notepad2 which saves by default to All Files & doesn't give you this headache!...
...then call Microsoft & tell them they are idiots...for making you go thru all this... |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Jul 19, 2008 8:38 pm Post subject: Re: Saving scripts in the script section. |
|
|
| SKAN wrote: | | <screenshot-with-menubar-messed-up> |
...BTW...SKAN I noticed you have the white menubar issue...do you like it?...or would you like to fix it?...damn I was gonna post scripts to fix it, but I don't have them on this computer...so a link...
|
|
| Back to top |
|
 |
vengance Guest
|
Posted: Sun Jul 20, 2008 12:08 am Post subject: |
|
|
well i want this so when i send this to a friend
when they click it pops up and tells them to get away from their comp |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jul 20, 2008 12:47 am Post subject: |
|
|
| vengance wrote: | | well i want this... |
...oh so a virus?...***ends support*** |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5887
|
Posted: Sun Jul 20, 2008 1:42 am Post subject: Re: Saving scripts in the script section. |
|
|
| Anonymous wrote: | so a link...
|
Thanks JS .. I tried one of the results : http://windowsxp.mvps.org/uglymenubar.htm .. Problem solved.
 _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jul 20, 2008 5:40 am Post subject: |
|
|
| Anonymous wrote: | | vengance wrote: | | well i want this... |
...oh so a virus?...***ends support*** |
asshat. |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 908 Location: The Interwebs
|
Posted: Sun Jul 20, 2008 5:51 am Post subject: |
|
|
| vengance wrote: | well i want this so when i send this to a friend
when they click it pops up and tells them to get away from their comp |
When you right click on the file, "Compile Script" should be one of the options. Do that, and the .exe file will be able to be executed even on a computer that doesn't have AHK installed. |
|
| Back to top |
|
 |
|