AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Saving scripts in the script section.

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
vengance
Guest





PostPosted: Sat Jul 19, 2008 3:02 pm    Post subject: Saving scripts in the script section. Reply with quote

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





PostPosted: Sat Jul 19, 2008 3:28 pm    Post subject: Reply with quote

.ahk

ahk2exe
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 5887

PostPosted: Sat Jul 19, 2008 3:50 pm    Post subject: Re: Saving scripts in the script section. Reply with quote

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



Smile
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
vengance
Guest





PostPosted: Sat Jul 19, 2008 6:02 pm    Post subject: Reply with quote

when i save it it appears as a text file

why does this happen
Back to top
vengance
Guest





PostPosted: Sat Jul 19, 2008 6:05 pm    Post subject: Reply with quote



see
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 5887

PostPosted: Sat Jul 19, 2008 6:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
lol
Guest





PostPosted: Sat Jul 19, 2008 7:40 pm    Post subject: Reply with quote

Do you have AutoHotkey installed? Does it work when you double click it?
Back to top
Guest






PostPosted: Sat Jul 19, 2008 8:19 pm    Post subject: Reply with quote

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






PostPosted: Sat Jul 19, 2008 8:38 pm    Post subject: Re: Saving scripts in the script section. Reply with quote

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





PostPosted: Sun Jul 20, 2008 12:08 am    Post subject: Reply with quote

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






PostPosted: Sun Jul 20, 2008 12:47 am    Post subject: Reply with quote

vengance wrote:
well i want this...

...oh so a virus?...***ends support***
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 5887

PostPosted: Sun Jul 20, 2008 1:42 am    Post subject: Re: Saving scripts in the script section. Reply with quote

Anonymous wrote:
so a link...


Thanks JS .. I tried one of the results : http://windowsxp.mvps.org/uglymenubar.htm .. Problem solved.

Smile
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Jul 20, 2008 5:40 am    Post subject: Reply with quote

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

PostPosted: Sun Jul 20, 2008 5:51 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group