Ac Script : raw list of function declarations
Introduction
They are mostly self-descriptive and/or are exact equivalent the the Win API/MFC
functions (which are described on
MSDN). The list has the following syntax:
(return value) FunctionName (ArgumentType ArgumentName);
Example:
bool Acb_IsDirectory(string) ;
This function returns bool (TRUE or FALSE), and takes one argument of type
string. It returns TRUE if the given path is directory (folder) or FALSE if it
ist't. Usage:
if(Acb_IsDirectory("c:\\Windows")) MessageBox("yes, it is a directory"); else MessageBox("no, it is not a directory");
The List
//basics
void print (string s)
//files & folders:
string Acb_GetCurrentDirectory()
bool Acb_SetCurrentDirectory (string)
bool Acb_IsDirectory(string)
bool Acb_CreateDirectory(string sDirPath)
//alias: Acb_CreateFolder
bool Acb_CopyToFolder (string or array of strings SrcObjects, string DestFolder, [string overwriting_mode="ask"(default) / "yes_all" / "skip_all"] )
bool Acb_MoveToFolder (string or array of strings SrcObjects, string DestFolder, [string overwriting_mode="ask"(default) / "yes_all" / "skip_all"] )
bool Acb_Delete (string or array of strings strObjects [string protected_objects_mode= "ask" / "yes_all"(default) / "skip_all"])
bool Acb_Rename(string sOldPath,string sNewPath)
//windows:
string Acb_BwGetFolder([AcWinID="active"])
bool Acb_BwSetFolder(string sNewDir,[AcWinID="active"])
HWND Acb_BwGetHandle([bool getframehandle=false],AcWinID="active")
array (of HWND's) Acb_BwGetAllHandles([bool getframehandles=false])
void Acb_BwRefresh ([AcWinID="active"])
(array of strings) Acb_BwGetSelectedPaths([AcWinID="active"])
string Acb_BwGetFocusedPath([AcWinID="active"])
int Acb_BwGetItemIndex(string sPath,[AcWinID="active"])
//index to the item specified by sPath
void Acb_BwSetItemSelection(int nIndex,[bool3 bSelect=true],[bool3 bFocus=false],[bool bUnselectAllOthers=false],[AcWinID="active"])
string Acb_BwGetPathAt(int nIndex,[AcWinID="active"])