Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/09/2017 in all areas

  1. Version 1.6.3.0

    17,292 downloads

    Extensive library to control and manipulate Microsoft Active Directory. Threads: Development - General Help & Support - Example Scripts - Wiki Previous downloads: 30467 Known Bugs: (last changed: 2020-10-05) None Things to come: (last changed: 2020-07-21) None BTW: If you like this UDF please click the "I like this" button. This tells me where to next put my development effort
    2 points
  2. Hello. The issue is that AutoIt structures does not support wstr LPCSTR,LPSTRSTR LPCWSTR,LPWSTRWSTR as C/C++. For that reason you need to create an structure. If dllstructure allow you wstr and str data types it was correct did the way you tried. using something like this WSTR lpFile (Of couse AutoIt does not support that kind of structure data type) DllStructSetData($ShExecInfo, 'lpFile', 'C:\Windows\Notepad.exe') But as I said if was possible if AutoIt allow you that data type in dll structures but it does not, So it will not work. So for that reason you need to create the strings structures. ;~ If you'll use UNICODE unicode Local $lpVerb = DllStructCreate('WCHAR[15];') Local $lpFile = DllStructCreate('WCHAR[255];') Local $lpParameters = DllStructCreate('WCHAR[255];') Local $lpDirectory = DllStructCreate('WCHAR[255];') ;~ If you'll use ANSI version Local $lpVerb = DllStructCreate('CHAR[15];') Local $lpFile = DllStructCreate('CHAR[255];') Local $lpParameters = DllStructCreate('CHAR[255];') Local $lpDirectory = DllStructCreate('CHAR[255];') ;pd: of course the size could be diferent Sorry for post code without correct tag my connections is unable to load the popup window for put the code. MSDN is clear enough I think when it says: lpFile Type: LPCTSTR The address of a null-terminated string that specifies the name of the file or object on which ShellExecuteEx will perform the action specified by the lpVerb parameter. So what is the address? $MyAddress=DllStructGetPtr($lpFile) the we put it in our HELLEXECUTEINFO structure DllStructSetData($ShExecInfo, 'lpFile',$MyAddress) that's all. Saludos
    2 points
  3. water

    ExcelChart

    Version 0.4.0.1

    1,465 downloads

    Extensive library to control and manipulate Microsoft Excel charts. Written by GreenCan and water. Theads: General Help & Support - Example Scripts BTW: If you like this UDF please click the "I like this" button. This tells me where to next put my development effort KNOWN BUGS (last changed: 2017-07-21) None. The COM error handling related bugs have been fixed.
    1 point
  4. You may want to review this thread for one technique -- However, it's likely that you will run into the same issue because the site is using events to detect user input.
    1 point
  5. I see you didn't got an answer. Since I would like to help you I might have a suggestion not connected with autoit. I had the similar problem which I solved with applicati0n HotkeyP. Maybe there you could detect keys and then code something for keyboard in autoit? I hope I didnt broke any rule by telling you that.
    1 point
  6. Yes sure, Even there are some more functions to be added and some bugs fixes I ll update the same with examples Thanks for suggesting
    1 point
  7. Use TimerInit before the Do statement and check the elapsed time inside the loop with TimerDiff.
    1 point
  8. Add an ExitLoop underneath the Guidelete() to exit the While loop. Jos
    1 point
  9. ShellExecute uses literal params (no struct) while ShellExecuteEx uses a pointer to SHELLEXECUTEINFO only You might have even more fun by looking into the "WinAPIShellEx.au3" UDF to the _WinAPI_ShellExecute func and see how AutoIt handles the thingy Dazing: in this func, wstr is used in the call if the parameter value is defined, but if not then ptr is used with the value 0 (implied: pointer to default) Nice
    1 point
×
×
  • Create New...