Pavel Posted June 27, 2006 Share Posted June 27, 2006 (edited) This is my first UDF ShellExecute function syntax : ShellExecute($hwnd,$lpOperation,$lpFile,$lpParameters,$lpDirectory,$nShowCmd) Example: #include "shellexecute.au3" ShellExecute(0,"open","C:\Windows\Media\ding.wav","","",@SW_SHOWNORMAL) In this udf defined constants of return codes, like a SE_ERR_NOASSOC $lpOperation types you can find in include fileshellexecute.au3 Edited June 28, 2006 by Pavel Link to comment Share on other sites More sharing options...
Pakku Posted June 27, 2006 Share Posted June 27, 2006 (edited) Hi, i like it, i was just looking for that kind of script! thanks and keep it up! Arjan Edited June 27, 2006 by arjan staring How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me Link to comment Share on other sites More sharing options...
w0uter Posted June 27, 2006 Share Posted June 27, 2006 Global Const $ERROR_FILE_NOT_FOUND = '2L' ;ERROR_FILE_NOT_FOUND The specified file was not found. Global Const $ERROR_PATH_NOT_FOUND = '3L' ;ERROR_PATH_NOT_FOUND The specified path was not found. Global Const $ERROR_BAD_FORMAT = '11L' ;ERROR_BAD_FORMAT The .exe file is invalid (non-Microsoft Win32 .exe or error in .exe image). L just means its a LONG. There is no need for that in autoit. Also arent the @SW_* the same as your $SW_* ? My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Pavel Posted June 28, 2006 Author Share Posted June 28, 2006 (edited) Global Const $ERROR_FILE_NOT_FOUND = '2L' ;ERROR_FILE_NOT_FOUND The specified file was not found. Global Const $ERROR_PATH_NOT_FOUND = '3L' ;ERROR_PATH_NOT_FOUND The specified path was not found. Global Const $ERROR_BAD_FORMAT = '11L';ERROR_BAD_FORMAT The .exe file is invalid (non-Microsoft Win32 .exe or error in .exe image). L just means its a LONG. There is no need for that in autoit. I don't know it , thanks Corrected Also arent the @SW_* the same as your $SW_* ?I know Edited June 28, 2006 by Pavel 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