Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
stefan_schnell
Active Contributor
Everbody knows GuiXT - the comfortable library to individualize the SAP screens. It is standard part of the SAP GUI for Windows and you can use it without any problems. You can find more information about GuiXT here.

GuiXT offers the possibility to use function calls from DLLs inside a GuiXT script, with the command Call. Here an GuiXT script example how to use the Windows API function ShellExecute. On this way you can execute any file you like.
//-Begin----------------------------------------------------------------

//-With InputAssistant------------------------------------------------

//-Flags------------------------------------------------------------

//-ShowWindow-----------------------------------------------------
Set V[SW_HIDE] "0"
Set V[SW_SHOWNORMAL] "1"
Set V[SW_NORMAL] "1"
Set V[SW_SHOWMINIMIZED] "2"
Set V[SW_SHOWMAXIMIZED] "3"
Set V[SW_MAXIMIZE] "3"
Set V[SW_SHOWNOACTIVATE] "4"
Set V[SW_SHOW] "5"
Set V[SW_MINIMIZE] "6"
Set V[SW_SHOWMINNOACTIVE] "7"
Set V[SW_SHOWNA] "8"
Set V[SW_RESTORE] "9"
Set V[SW_SHOWDEFAULT] "10"
Set V[SW_FORCEMINIMIZE] "11"
Set V[SW_MAX] "11"

//-ShellExecute-----------------------------------------------------
Set V[hWnd] "0"
Set V[Operation] "open"
Set V[File] "Test.vbs"
Set V[Parameters] ""
Set V[Directory] "C:\Dummy"
Set V[ShowCmd] V[SW_SHOWNORMAL]

Call "ShellExecuteA" dll="shell32.dll" In="&V[hWnd]" In="&V[Operation]" In="&V[File]" In="&V[Parameters]" In="&V[Directory]" In="&V[ShowCmd]" Out="rc"


//-Without InputAssistant---------------------------------------------

//-ShellExecute-----------------------------------------------------
Call "ShellExecuteA" dll="shell32.dll" In="0" In="open" In="Test.vbs" In="" In="C:\Dummy" In="1" Out="rc"

//-End------------------------------------------------------------------
4 Comments
Labels in this area