HotFudge :: Delicious Toppings for Magic On-Line Help 
Module :: HFMISC Latest Release: v2.0 Beta - Build#3 
HotFudge v2.0 Beta - Build 3 (20 February 2007)

HFmisc

Provides miscellaneous features for Magic/eDeveloper

Function Description Parameters Usage
ReadINI Read values from an INI Section - alpha
Key - alpha
Filename - alpha
returns value - alpha
udf('hfmisc.readini', section, key, filename )
WriteINI Write values to an INI Section - alpha
Key - alpha
Value - alpha
Filename - alpha
udf('hfmisc.writeini', section, key, value, filename )
ReadRegistry Read a value from the windows registry Root - number
Key - alpha
Name - alpha
udf('hfmisc.readregistry', Root, Key, Name )
WriteRegistry Write a string value to the windows registry Root - number
Key - alpha
Name - alpha
Data - alpha
udf('hfmisc.writeregistry', root, key, name, data )
ScreenCap hwnd - number
wintype - alpha
filename - alpha
udf('hfmisc.screencap', hwnd, wintype, filename )
DisplaySize Return the dimensions of the screen display udf('hfmisc.diplaysize' )
Calendar hwnd - number
date - number (magic date)
returns date (magic date)
udf('hfmisc.calendar', hwnd, date )
MsgBox hwnd - number
Text - alpha
Caption - alpha
Icon - alpha
DlgButtons - alpha
udf('hfmisc.msgbox', hwnd, text, caption, icon, dlgbuttons )
DirBrowse hwnd - number
returns directorypath - alpha
udf('hfmisc.dirbrowse' )
OpenDialog hwnd - number
InitialDir - alpha
Filter - alpha
InitialFile - alpha
DefExt - alpha
Title - alpha
returns filename - alpha
udf('hfmisc.opendialog', hwnd, initialdir, filter, initialfile, defext, title )
SaveDialog hwnd - number
InitialDir - alpha
Filter - alpha
InitialFile - alpha
DefExt - alpha
Title - alpha
returns savefilename - alpha
udf('hfmisc.savedialog', hwnd, initialdir, filter, initialfile, defext, title )
PrintDialog hwnd - number udf('hfmisc.printdialog', hwnd )
PlayMedia mediatype - alpha
filename - alpha
options - alpha
udf('hfmisc.playmedia', mediatype, filename, options )
ShowContextAt hwnd - number
xpos - number
ypos - number
udf('hfmisc.showcontextat', hwnd, xpos, ypos )
SetCaption hwnd - number
caption - alpha
udf('hfmisc.setcaption', hwnd, caption )
SetIcon hwnd - number
Filename - alpha
udf('hfmisc.seticon', hwnd, filename )
Setcrsr Cursor - number
Filename - alpha
udf('hfmisc.setcrsr', cursor, filename )
MinimizeWindow hwnd - number udf('hfmisc.minimizewindow', hwnd )
MaximizeWindow udf('hfmisc.maximizewindow', hwnd )
NormalizeWindow hwnd - number udf('hfmisc.normalizewindow', hwnd )
CenterWindow hwnd - number udf('hfmisc.centerwindow', hwnd )
FitWindow hwnd - number udf('hfmisc.fitwindow', hwnd )
FitHeightWindow hwnd - number udf('hfmisc.fitheightwindow', hwnd )
FitWidthWindow hwnd - number udf('hfmisc.fitwidthwindow', hwnd )
ShowContext hwnd - number udf('hfmisc.showcontext', hwnd )
GetMagicHandle hwnd - number udf('hfmisc.getmagichandle', hwnd )
GetMagicHwnd udf('hfmisc.getmagichwnd' )
GetParentHandle hwnd - number udf('hfmisc.getparenthandle', hwnd )
EnableClose hwnd - number udf('hfmisc.enableclose', hwnd )
DisableClose hwnd - number udf('hfmisc.disableclose', hwnd )
HideCaption hwnd - number udf('hfmisc.hidecaption', hwnd )
ShowCaption hwnd - number udf('hfmisc.showcaption', hwnd )
ToolWin hwnd - number udf('hfmisc.toolwin', hwnd )
HideMinBox hwnd - number udf('hfmisc.hideminbox', hwnd )
ShowMinBox hwnd - number udf('hfmisc.showminbox', hwnd )
HideMaxBox hwnd - number udf('hfmisc.hidemaxbox', hwnd )
ShowMaxBox hwnd - number udf('hfmisc.showmaxbox', hwnd )
DropCombo udf('hfmisc.dropcombo' )
SelectPrinter Select a printer udf('hfmisc.selectprinter' )
SetGDSdelimiter newDelimiter - alpha udf('hfmisc.setgdsdelimiter', newDelimiter )
GetGDS string - alpha
token - alpha
returns value - alpha
udf('hfmisc.getgds', string, token )
HFctrlhwnd Get the windows handle of a named control hwnd - number
caption - alpha
udf('hfmisc.hfctrlhwnd', hwnd, caption )
GetUTC Get UTC timestamp udf('hfmisc.getUTC' )
getIP udf('hfmisc.getip' )
getlocalhostname udf('hfmisc.getlocalhostname' )
Version Returns module version string   udf('hfmisc.version')