Guest User

Untitled

a guest
Nov 21st, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #include <Windows.h>
  2. #include "AutoItX3_DLL.h"
  3.  
  4. int APIENTRY wWinMain(HINSTANCE hInstance,
  5. HINSTANCE hPrevInstance,
  6. LPTSTR lpCmdLine,
  7. int nCmdShow)
  8. {
  9. UNREFERENCED_PARAMETER(hPrevInstance);
  10. UNREFERENCED_PARAMETER(lpCmdLine);
  11.  
  12. // You can now call AutoIt commands, e.g. to send the keystrokes "hello"
  13. AU3_Sleep(1000);
  14. AU3_Run(L"notepad.exe", L"", 1);
  15. AU3_WinWaitActive(L"Untitled -", L"", 0);
  16. AU3_Send(L"Hello{!}", 0);
  17.  
  18. // Get the text in the status bar
  19. //WCHAR szText[1000];
  20. //AU3_StatusbarGetText("Untitled -", "", 2, szText, 1000);
  21. //MessageBox(NULL, szText, "Text:", MB_OK);
  22.  
  23. return 0;
  24. }
Add Comment
Please, Sign In to add comment