Jump to content

Another ShellExecute UDF


Pavel
 Share

Recommended Posts

This is my first UDF :D

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 file

shellexecute.au3

Edited by Pavel
Link to comment
Share on other sites

Hi,

i like it, i was just looking for that kind of script!

thanks and keep it up!

Arjan

Edited by arjan staring
Link to comment
Share on other sites

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

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 :D

Also arent the @SW_* the same as your $SW_* ?

I know :D Edited by Pavel
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...