Quantcast
Channel: SCN : Document List - Scripting Languages
Viewing all articles
Browse latest Browse all 100

How To Execute Any File With GuiXT

$
0
0

Hello community,

 

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.

 

Cheers

Stefan

 

//-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------------------------------------------------------------------

Viewing all articles
Browse latest Browse all 100

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>