Accessing the power & functionality of the MS Windows API via the JMP LoadDll function

Matthew Flynn · 2010

This paper will show and discuss JMP scripting code (JSL) examples to access the power & functionality of the MS Windows API via the JMP LoadDll function. Examples include accessing Windows environmental variables, controlling and positioning JMP windows, defining hot-keys, importing and exporting data to MS Excel, GUI automation testing via sending keystrokes. For example, your JMP script can programmatically open an external file with the “ShellExecuteA” function: = Load DLL( shell32 ); << DeclareFunction(ShellExecuteA,Convention( STDCALL ),Alias( ShellExecute ), Arg( UIntPtr, input, hWnd ), Arg( AnsiString( 20 ), lpOperation ), Arg( AnsiString( 256 ), lpFile ), Arg( AnsiString( 256 ), lpParameters ),/* Arg( UInt32, lpParameters ), */ Arg( UInt32, lpDirectory ), Arg( UInt32, nShowCmd ), Returns( UInt32 ) ); //If the function succeeds, it returns a value greater than 32.

Read the paper · More papers on PaperTik