Q: What are all the script commands?
A: Here's a list of commands and the Win32 API calls they use.
Send(key): Uses Keybd_Event to simulate a key press ("Type" is better).
Type(key): Uses SendInput to simulate a key press (better than "Send").
Wait(ms), Delay(ms), Sleep(ms), Pause(ms): All do the same thing.
Sits in a loop running Application.ProcessMessages.
Run(ms): Uses ShellExecuteEx to run a exe or a file with an association.
RunWait(ms): Same as run but halts SKINbedder until exe terminates.
OnTop(True/False): Sets main form OnTop state (buggy).
Kill(process): Uses Process32First/Next and CloseHandle to kill a process.
Play(file): Uses PlaySound from mmSystem to play a sound file.
LoadSkin(skinlayer): Makes a graphic overlay with hot-spots and size/pos.
If skin already has been loaded, just sets visible=true.
Uses modified version of TPNGImage.pas
Embed(window): Makes a window container with size/pos and embeds a window.
Uses SetWindowLong, SetWindowPos, SetParent, SetLayeredWindowAttributes.
Close(window): Deletes window container (which closes the embeded window).
HideSkin(skinlayer): Sets a SkinLayer to visible=false.
Focus(window): Uses SetForgroundWindow to set the system focus.
(needed before using Send/Type)
Q: How do I do things like send mouse clicks or another command not supported in the commands above?
A: Use Run() with an Auto-It script.
Q: How to I Run a file whos name or path has a space in it?
A: Use the DOS dir command with the /x switch to see the 8.3 path.