joeloyzaga Posted October 29, 2013 Share Posted October 29, 2013 I will use autoit it command called tray tip and I will run it using this command WshShell.Run "C:Program FilesAutoIt3AutoIt3.exe PathtoAutofile.au3",1,True how can I write an autoit script to accept the title and message when run from .vbs using the WshShell.Run command Link to comment Share on other sites More sharing options...
orbs Posted October 29, 2013 Share Posted October 29, 2013 hello, and welcome to AutoIt and to the forum. AutoIt scripts accept command-line parameters. look-up CmdLine in the AutoIt help. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
joeloyzaga Posted October 29, 2013 Author Share Posted October 29, 2013 thanks orbs and I just looked at the CmdLine - what would the vbs code look like the for 2 params? kinda like this? WshShell.Run "C:Program FilesAutoIt3AutoIt3.exe PathtoAutofile.au3 param1 "this is another param" param2 "this is another param2"", 1,True 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