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 

Command line

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





PostPosted: Tue Aug 03, 2004 2:41 am    Post subject: Command line Reply with quote

This can be done with a bat file , how would I do it with Autohotkey and a hotkey setup ?
Quote:
rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,@0,2
Back to top
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Tue Aug 03, 2004 4:25 am    Post subject: Reply with quote

this binds it to Win + z

#z:: run, rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,@0,2
_________________
Back to top
View user's profile Send private message
Bob
Guest





PostPosted: Tue Aug 03, 2004 4:28 am    Post subject: Reply with quote

Thank you Rajat .
Back to top
Bob
Guest





PostPosted: Tue Aug 03, 2004 4:34 am    Post subject: Reply with quote

Get this error ?
Quote:
---------------------------
rundll.ahk
---------------------------
Error: Parameter #3 must be either blank, a variable reference, or one of these words: MIN, MAX, HIDE.

Specifically: @0,

Line#
001: Return

---> 001: Run,rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,@0,
Back to top
Bob
Guest





PostPosted: Tue Aug 03, 2004 4:35 am    Post subject: Reply with quote

I cut the 2 off of it
Code:
Run,rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,@0, 2
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Tue Aug 03, 2004 10:57 am    Post subject: Reply with quote

To use a comma literally inside a parameter (except the last parameter and except MsgBox), you must escape it like so:

#z::run, rundll32.exe shell32.dll`,Control_RunDLL timedate.cpl`,@0`,2
Back to top
View user's profile Send private message Send e-mail
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