friends Posted September 16, 2004 Share Posted September 16, 2004 I wonder if the HotKeySet can work with Run() @ComSpec command ? I've tested it out... but looks like it doesn't work... anybody, any idea on this ? Thanks Link to comment Share on other sites More sharing options...
friends Posted September 16, 2004 Author Share Posted September 16, 2004 (edited) HotKeySet ("{F9}", "GetHelp") $flag = 1 WHILE $flag = 1 ; keep it active until condition meets ; other statements here WEND Func GetHelp() Run (@ComSpec & " /c " & "net send sppmis2 Help is required by this counter. Please Check the counter / contact the Cashier immediately !", "", @SW_HIDE) EndFunc When I press F9 key, the Run() command does not work, any problem with this coding ? Please help and thanks Edited September 16, 2004 by friends Link to comment Share on other sites More sharing options...
friends Posted September 16, 2004 Author Share Posted September 16, 2004 change to this to debug... I think the slash in your message is a bad idea... HotKeySet ("{F9}", "GetHelp") $flag = 1 WHILE $flag = 1; keep it active until condition meets ; other statements here WEND Func GetHelp() Run (@ComSpec & " /k " & "net send localhost Help is required by this counter. Please Check the counter / contact the Cashier immediately !") EndFunc <{POST_SNAPBACK}>Thanks Larry... I'll try it out ! by the way.... what is the different between " /c " and " /k " ? cos in the AutoIT Help file... it does not clearly stated what is those parameters for. Another question is, is there any other way to send a message to PC rather than using the Run() with @ComSpec command ? Thanks Link to comment Share on other sites More sharing options...
friends Posted September 16, 2004 Author Share Posted September 16, 2004 /k is a parameter to comspec and not related to autoit. I use net send as... RunWait('net send computername "My Message"','',@SW_HIDE) <{POST_SNAPBACK}>thanks for the tips.. i'll try it out ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now