Что нового

[AutoitX] Есть у кого-то все новые Header для Delphi

ivanius

Знающий
Сообщения
74
Репутация
5
собственно сабж, нашел старые хеадеры на форуме зарубежном, есть для С хеадеры в справке, а вот новые и для делфи - нету;
Проблема больше в том что на Делфи (на паскале я пишу обьектном тут далееееекоооо не все есть из-за чего и хочу использовать либу) получаю AV и не пойму почему, не во всех функциях, а в некоторых - они поменялись как я вижу, к примеру тот же GetCursorPos был X Y, а сейчас с параметром....

Пишу пока ручками и проверяю заодно, как такое может быть???
Код:
AU3_PixelSearch(WPos,AU3_PixelGetColor(124,62),0,1,Pos);
 

firex

AutoIT Гуру
Сообщения
943
Репутация
208
ivanius
Вы передать значения в аргументы функции не можете?

Такой функции нет, есть AU3_MouseGetPos принимающая только указатель на OUT tagPOINT
 
Автор
I

ivanius

Знающий
Сообщения
74
Репутация
5
firex сказал(а):
ivanius
Вы передать значения в аргументы функции не можете?

Такой функции нет, есть AU3_MouseGetPos принимающая только указатель на OUT tagPOINT
Да могу и вы не правы возможно, в AutoitX - есть из С хедера -
Код:
AU3_API void WINAPI AU3_MouseGetPos(LPPOINT lpPoint);
procedure AU3_MouseGetPos(var Point: TPoint); stdcall; external 'AutoItX3.dll'; //delphi

и Это из последней версии, могу только предположить что в AutoitX другие функции просто, могу ошибаться.
 

firex

AutoIT Гуру
Сообщения
943
Репутация
208
ivanius [?]
и вы не правы возможно
Код:
var Point: TPoint
указатель на OUT tagPOINT

OffTopic:
Ох уж этот школьный курс Delphi


Не думаю, что кто то возьмется вам все объяснять.
 
Автор
I

ivanius

Знающий
Сообщения
74
Репутация
5
зачем мне все обьяснять, просто в дллке, которая специально идет для использования в других языках - функции отличаются от последней версии автоит.
Ладно сам потихоньку напишу все.
Хеадер
Код:
procedure AU3_Init ;stdcall; external 'AutoItX3.dll';
function AU3_error: Integer ;cdecl; external 'AutoItX3.dll';
////// 
function AU3_AutoItSetOption( szOption: PWideChar; 
                             nValue: Integer): Integer ;stdcall; external 'AutoItX3.dll';
////// 
procedure AU3_ClipGet( szClip: PWideChar; 
                      nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_ClipPut( szClip: PWideChar) ;stdcall; external 'AutoItX3.dll';
////// 
function AU3_ControlClick( szTitle: PWideChar; 
                           szText: PWideChar; 
                           szControl: PWideChar; 
                           szButton: PWideChar; 
                          nNumClicks: Integer; 
                          nX: Integer = AU3_INTDEFAULT; 
                          nY: Integer = AU3_INTDEFAULT): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlClickByHandle(hWnd: integer; 
                                  hCtrl: integer; 
                                   szButton: PWideChar; 
                                  nNumClicks: Integer; 
                                  nX: Integer = AU3_INTDEFAULT; 
                                  nY: Integer = AU3_INTDEFAULT): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlCommand( szTitle: PWideChar; 
                              szText: PWideChar; 
                              szControl: PWideChar; 
                              szCommand: PWideChar; 
                              szExtra: PWideChar; 
                              szResult: WideChar; 
                             nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlCommandByHandle(hWnd: integer; 
                                     hCtrl: integer; 
                                      szCommand: PWideChar; 
                                      szExtra: PWideChar; 
                                      szResult: WideChar; 
                                     nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlListView( szTitle: PWideChar; 
                               szText: PWideChar; 
                               szControl: PWideChar; 
                               szCommand: PWideChar; 
                               szExtra1: PWideChar; 
                               szExtra2: PWideChar; 
                               szResult: WideChar; 
                              nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlListViewByHandle(hWnd: integer; 
                                      hCtrl: integer; 
                                       szCommand: PWideChar; 
                                       szExtra1: PWideChar; 
                                       szExtra2: PWideChar; 
                                       szResult: WideChar; 
                                      nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
function AU3_ControlDisable( szTitle: PWideChar; 
                             szText: PWideChar; 
                             szControl: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlDisableByHandle(hWnd: integer; 
                                    hCtrl: integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlEnable( szTitle: PWideChar; 
                            szText: PWideChar; 
                            szControl: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlEnableByHandle(hWnd: integer; 
                                   hCtrl: integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlFocus( szTitle: PWideChar; 
                           szText: PWideChar; 
                           szControl: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlFocusByHandle(hWnd: integer; 
                                  hCtrl: integer): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlGetFocus( szTitle: PWideChar; 
                               szText: PWideChar; 
                               szControlWithFocus: WideChar; 
                              nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlGetFocusByHandle(hWnd: integer; 
                                       szControlWithFocus: WideChar; 
                                      nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
function AU3_ControlGetHandle(hWnd: integer; 
                               szControl: PWideChar): integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlGetHandleAsText( szTitle: PWideChar; 
                                      szText: PWideChar; 
                                      szControl: PWideChar; 
                                      szRetText: WideChar; 
                                     nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
function AU3_ControlGetPos( szTitle: PWideChar; 
                            szText: PWideChar; 
                            szControl: PWideChar; 
                            lpRect: TRect): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlGetPosByHandle(hWnd: integer; 
                                   hCtrl: integer; 
                                    lpRect: TRect): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlGetText( szTitle: PWideChar; 
                              szText: PWideChar; 
                              szControl: PWideChar; 
                              szControlText: WideChar; 
                             nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlGetTextByHandle(hWnd: integer; 
                                     hCtrl: integer; 
                                      szControlText: WideChar; 
                                     nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
function AU3_ControlHide( szTitle: PWideChar; 
                          szText: PWideChar; 
                          szControl: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlHideByHandle(hWnd: integer; 
                                 hCtrl: integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlMove( szTitle: PWideChar; 
                          szText: PWideChar; 
                          szControl: PWideChar; 
                         nX: Integer; 
                         nY: Integer; 
                         nWidth: Integer = -1; 
                         nHeight: Integer = -1): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlMoveByHandle(hWnd: integer; 
                                 hCtrl: integer; 
                                 nX: Integer; 
                                 nY: Integer; 
                                 nWidth: Integer = -1; 
                                 nHeight: Integer = -1): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlSend( szTitle: PWideChar; 
                          szText: PWideChar; 
                          szControl: PWideChar; 
                          szSendText: PWideChar; 
                         nMode: Integer = 0): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlSendByHandle(hWnd: integer; 
                                 hCtrl: integer; 
                                  szSendText: PWideChar; 
                                 nMode: Integer = 0): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlSetText( szTitle: PWideChar; 
                             szText: PWideChar; 
                             szControl: PWideChar; 
                             szControlText: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlSetTextByHandle(hWnd: integer; 
                                    hCtrl: integer; 
                                     szControlText: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlShow( szTitle: PWideChar; 
                          szText: PWideChar; 
                          szControl: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ControlShowByHandle(hWnd: integer; 
                                 hCtrl: integer): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlTreeView( szTitle: PWideChar; 
                               szText: PWideChar; 
                               szControl: PWideChar; 
                               szCommand: PWideChar; 
                               szExtra1: PWideChar; 
                               szExtra2: PWideChar; 
                               szResult: WideChar; 
                              nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_ControlTreeViewByHandle(hWnd: integer; 
                                      hCtrl: integer; 
                                       szCommand: PWideChar; 
                                       szExtra1: PWideChar; 
                                       szExtra2: PWideChar; 
                                       szResult: WideChar; 
                                      nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
//////                                    
procedure AU3_DriveMapAdd( szDevice: PWideChar; 
                           szShare: PWideChar; 
                          nFlags: Integer; 
                           szUser: PWideChar; 
                           szPwd: PWideChar; 
                           szResult: WideChar; 
                          nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
function AU3_DriveMapDel( szDevice: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_DriveMapGet( szDevice: PWideChar; 
                           szMapping: WideChar; 
                          nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
////// 
function AU3_IsAdmin: Integer ;stdcall; external 'AutoItX3.dll';
////// 
function AU3_MouseClick( szButton: PWideChar='primary'; 
                        nX: Integer = AU3_INTDEFAULT;
                        nY: Integer = AU3_INTDEFAULT;
                        nClicks: Integer = 1;
                        nSpeed: Integer= -1): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_MouseClickDrag( szButton: PWideChar; 
                            nX1: Integer; 
                            nY1: Integer; 
                            nX2: Integer; 
                            nY2: Integer; 
                            nSpeed: Integer= -1): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_MouseDown( szButton: PWideChar='primary') ;stdcall; external 'AutoItX3.dll';
function AU3_MouseGetCursor: Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_MouseGetPos( lpPoint: TPoint) ;stdcall; external 'AutoItX3.dll';
function AU3_MouseMove(nX: Integer; 
                       nY: Integer; 
                       nSpeed: Integer= -1): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_MouseUp( szButton: PWideChar='primary') ;stdcall; external 'AutoItX3.dll';
procedure AU3_MouseWheel( szDirection: PWideChar; 
                         nClicks: Integer) ;stdcall; external 'AutoItX3.dll';
//////                         
function AU3_Opt( szOption: PWideChar; 
                 nValue: Integer): Integer ;stdcall; external 'AutoItX3.dll';
//////                 
function AU3_PixelChecksum( lpRect: TRect; 
                           nStep: Integer = 1): Cardinal ;stdcall; external 'AutoItX3.dll';
function AU3_PixelGetColor(nX: Integer; 
                           nY: Integer): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_PixelSearch( lpRect: TRect; 
                          nCol: Integer; 
                          nVar: Integer; 
                          nStep: Integer; 
                           pPointResult: TPoint) ;stdcall; external 'AutoItX3.dll';
//////                          
function AU3_ProcessClose( szProcess: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ProcessExists( szProcess: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ProcessSetPriority( szProcess: PWideChar; 
                                nPriority: Integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ProcessWait( szProcess: PWideChar; 
                         nTimeout: Integer= 0): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_ProcessWaitClose( szProcess: PWideChar; 
                              nTimeout: Integer= 0): Integer ;stdcall; external 'AutoItX3.dll';
////// 
function AU3_Run( szProgram: PWideChar; 
                  szDir: PWideChar; 
                 nShowFlag: Integer= SW_SHOWNORMAL): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_RunWait( szProgram: PWideChar; 
                      szDir: PWideChar; 
                     nShowFlag: Integer= SW_SHOWNORMAL): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_RunAs( szUser: PWideChar; 
                    szDomain: PWideChar; 
                    szPassword: PWideChar; 
                   nLogonFlag: Integer; 
                    szProgram: PWideChar; 
                    szDir: PWideChar; 
                   nShowFlag: Integer= SW_SHOWNORMAL): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_RunAsWait( szUser: PWideChar; 
                        szDomain: PWideChar; 
                        szPassword: PWideChar; 
                       nLogonFlag: Integer; 
                        szProgram: PWideChar; 
                        szDir: PWideChar; 
                       nShowFlag: Integer= SW_SHOWNORMAL): Integer ;stdcall; external 'AutoItX3.dll';
////// 
procedure AU3_Send(szSendText: PWideChar; 
                   nMode: Integer=0) ;stdcall; external 'AutoItX3.dll';
//////                   
function AU3_Shutdown(nFlags: Integer): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_Sleep(nMilliseconds: Integer) ;stdcall; external 'AutoItX3.dll';
function AU3_StatusbarGetText( szTitle: PWideChar; 
                               szText: PWideChar; 
                              nPart: Integer; 
                               szStatusText: WideChar; 
                              nBufSize: Integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_StatusbarGetTextByHandle(hWnd: integer; 
                                      nPart: Integer; 
                                       szStatusText: WideChar; 
                                      nBufSize: Integer): Integer ;stdcall; external 'AutoItX3.dll';
/////////
procedure AU3_ToolTip( szTip: PWideChar; 
                      nX: Integer= AU3_INTDEFAULT; 
                      nY: Integer= AU3_INTDEFAULT) ;stdcall; external 'AutoItX3.dll';
/////////
function AU3_WinActivate( szTitle: PWideChar; 
                          szText: PWideChar=''): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinActivateByHandle(hWnd: integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinActive( szTitle: PWideChar; 
                        szText: PWideChar=''): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinActiveByHandle(hWnd: integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinClose( szTitle: PWideChar; 
                       szText: PWideChar=''): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinCloseByHandle(hWnd: integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinExists( szTitle: PWideChar; 
                        szText: PWideChar=''): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinExistsByHandle(hWnd: integer): Integer ;stdcall; external 'AutoItX3.dll';
/////
function AU3_WinGetCaretPos( lpPoint: TPoint): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_WinGetClassList( szTitle: PWideChar; 
                               szText: PWideChar; 
                               szRetText: WideChar; 
                              nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_WinGetClassListByHandle(hWnd: integer; 
                                       szRetText: WideChar; 
                                      nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
/////
function AU3_WinGetClientSize( szTitle: PWideChar; 
                               szText: PWideChar; 
                               lpRect: TRect): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinGetClientSizeByHandle(hWnd: integer; 
                                       lpRect: TRect): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinGetHandle( szTitle: PWideChar; 
                           szText: PWideChar): integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_WinGetHandleAsText( szTitle: PWideChar; 
                                  szText: PWideChar; 
                                  szRetText: WideChar; 
                                 nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
function AU3_WinGetPos( szTitle: PWideChar; 
                        szText: PWideChar; 
                        lpRect: TRect): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinGetPosByHandle(hWnd: integer; 
                                lpRect: TRect): Integer ;stdcall; external 'AutoItX3.dll';
///////////
function AU3_WinGetProcess( szTitle: PWideChar; 
                            szText: PWideChar): LongWord ;stdcall; external 'AutoItX3.dll';
function AU3_WinGetProcessByHandle(hWnd: integer): LongWord ;stdcall; external 'AutoItX3.dll';
function AU3_WinGetState( szTitle: PWideChar; 
                          szText: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinGetStateByHandle(hWnd: integer): Integer ;stdcall; external 'AutoItX3.dll';
procedure AU3_WinGetText( szTitle: PWideChar; 
                          szText: PWideChar; 
                          szRetText: WideChar; 
                         nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_WinGetTextByHandle(hWnd: integer; 
                                  szRetText: WideChar; 
                                 nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_WinGetTitle( szTitle: PWideChar; 
                           szText: PWideChar; 
                           szRetText: WideChar; 
                          nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
procedure AU3_WinGetTitleByHandle(hWnd: integer; 
                                   szRetText: WideChar; 
                                  nBufSize: Integer) ;stdcall; external 'AutoItX3.dll';
function AU3_WinKill( szTitle: PWideChar; 
                      szText: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinKillByHandle(hWnd: integer): Integer ;stdcall; external 'AutoItX3.dll';
//////////////
function AU3_WinMenuSelectItem( szTitle: PWideChar; 
                                szText: PWideChar; 
                                szItem1: PWideChar; 
                                szItem2: PWideChar; 
                                szItem3: PWideChar; 
                                szItem4: PWideChar; 
                                szItem5: PWideChar; 
                                szItem6: PWideChar; 
                                szItem7: PWideChar; 
                                szItem8: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinMenuSelectItemByHandle(hWnd: integer; 
                                        szItem1: PWideChar; 
                                        szItem2: PWideChar; 
                                        szItem3: PWideChar; 
                                        szItem4: PWideChar; 
                                        szItem5: PWideChar; 
                                        szItem6: PWideChar; 
                                        szItem7: PWideChar; 
                                        szItem8: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
////////
procedure AU3_WinMinimizeAll ;stdcall; external 'AutoItX3.dll';
procedure AU3_WinMinimizeAllUndo ;stdcall; external 'AutoItX3.dll';
function AU3_WinMove( szTitle: PWideChar; 
                      szText: PWideChar; 
                     nX: Integer; 
                     nY: Integer; 
                     nWidth: Integer= -1; 
                     nHeight: Integer= -1): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinMoveByHandle(hWnd: integer; 
                             nX: Integer; 
                             nY: Integer; 
                             nWidth: Integer= -1; 
                             nHeight: Integer= -1): Integer ;stdcall; external 'AutoItX3.dll';
///////////
function AU3_WinSetOnTop( szTitle: PWideChar; 
                          szText: PWideChar; 
                         nFlag: Integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinSetOnTopByHandle(hWnd: integer; 
                                 nFlag: Integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinSetState( szTitle: PWideChar; 
                          szText: PWideChar; 
                         nFlags: Integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinSetStateByHandle(hWnd: integer; 
                                 nFlags: Integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinSetTitle( szTitle: PWideChar; 
                          szText: PWideChar; 
                          szNewTitle: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinSetTitleByHandle(hWnd: integer; 
                                  szNewTitle: PWideChar): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinSetTrans( szTitle: PWideChar; 
                          szText: PWideChar; 
                         nTrans: Integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinSetTransByHandle(hWnd: integer; 
                                 nTrans: Integer): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinWait( szTitle: PWideChar; 
                      szText: PWideChar; 
                     nTimeout: Integer = 0): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinWaitByHandle(hWnd: integer; 
                             nTimeout: Integer = 0): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinWaitActive( szTitle: PWideChar; 
                            szText: PWideChar; 
                           nTimeout: Integer = 0): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinWaitActiveByHandle(hWnd: integer; 
                                   nTimeout: Integer = 0): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinWaitClose( szTitle: PWideChar; 
                           szText: PWideChar; 
                          nTimeout: Integer = 0): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinWaitCloseByHandle(hWnd: integer; 
                                  nTimeout: Integer = 0): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinWaitNotActive( szTitle: PWideChar; 
                               szText: PWideChar; 
                              nTimeout: Integer = 0): Integer ;stdcall; external 'AutoItX3.dll';
function AU3_WinWaitNotActiveByHandle(hWnd: integer;
 
Верх