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 

Executing scripts by clicking an icon

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





PostPosted: Fri Jan 14, 2005 7:53 pm    Post subject: Executing scripts by clicking an icon Reply with quote

Question How can i execute an script by clicking an icon on the desktop instead pressing a keystroke?
Back to top
corrupt



Joined: 29 Dec 2004
Posts: 2421

PostPosted: Fri Jan 14, 2005 8:48 pm    Post subject: Reply with quote

I'm not quite sute I understand the question... Do you mean you have a script that you run and use a hotkey but would like to just run when you start the script? If so if you're script was something like:

Code:
^j::
Run, Notepad.exe
Return


then remove the hotkey to run without using a hotkey Wink:
Code:
Run, Notepad.exe
ExitApp


Does this help?
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Jan 14, 2005 9:15 pm    Post subject: Reply with quote

@corrupt: You don't need to explicitly define ExitApp instead of Return unless the script is Persistent. A script is made persistent if it contains hotkeys, hotstrings, gui commands, or a #Persistent directive. If it contains none of those, it will exit when it is finished executing.
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2421

PostPosted: Fri Jan 14, 2005 10:44 pm    Post subject: Reply with quote

jonny wrote:
@corrupt: You don't need to explicitly define ExitApp instead of Return unless the script is Persistent. A script is made persistent if it contains hotkeys, hotstrings, gui commands, or a #Persistent directive. If it contains none of those, it will exit when it is finished executing.
Thanks for the tip jonny Smile. I wasn't sure about that so I thought I'd put it in anyway Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website
Ricardo
Guest





PostPosted: Mon Jan 17, 2005 11:57 am    Post subject: Thank´s Reply with quote

Laughing Thank´s a lot (Obrigado), It solved the problem.
Back to top
BoBo
Guest





PostPosted: Mon Jan 17, 2005 12:37 pm    Post subject: Reply with quote

If Jonny is a female (which I doubt, otherwise it would be an OrangeGallopingWhatNot *) than the correct spelling would be Obrigada, isn't it ?

* check the Toast it! post at the General Chat Section to get the evidence ! Laughing
Back to top
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Mon Jan 17, 2005 4:04 pm    Post subject: Reply with quote

Um... I thought my chosen name made my gender clear. Allow me to elaborate: I am an American male student. There. It's on record. Rolling Eyes

And while I admire your seemingly endless capacity for language, you are wrong in this case. In Brazilian Portuguese at least (not sure about Portugal, but such a fundamental element should still be the same), the gender of such a word as "obrigado" depends on the speaker, not the spoken to.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Mon Jan 17, 2005 4:16 pm    Post subject: Reply with quote

Quote:
In Brazilian Portuguese at least (not sure about Portugal, but such a fundamental element should still be the same), the gender of such a word as "obrigado" depends on the speaker, not the spoken to.
Shocked

Well, I'm off to find my portuguese media lesson, unfortunately I've the slight feeling that you're right Wink
Back to top
enrica



Joined: 21 Mar 2005
Posts: 117
Location: Bahia, Brasil

PostPosted: Sat Sep 09, 2006 2:40 pm    Post subject: Reply with quote

Ricardo spoken = obrigado
Enrica spoken = obrigada
Very Happy
_________________
65.6E.72.69.63.61. (My hovercraft is full of eels)
Back to top
View user's profile Send private message
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