Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/01/2025 in all areas

  1. 2 points
  2. ioa747

    SciTE AI assistant

    I divide the project into parts for easier management. AI_Assistant.au3 which is included in SciTE_AI_Assistant.au3, but can also be used as a standalone UDF in which I #include "StringSize.au3" ; "https://www.autoitscript.com/forum/topic/114034-stringsize-m23-bugfix-version-27-dec-23" by Melba23 - thanks for that So that it folds the console output, and is visible within its boundaries (especially when it is on the side and is slim) for more comfortable reading SciTE_AI_Assistant.au3 changed the approach (again) , and made it as SciTE tool. This way, the selection process, and console writing, is handled internally by SciTE. To do this you need to add the following to SciTEUser.properties (Adding_utilities_to_the_SciTE_Tools_menu) #------------------------------------------------------------------------------ # 41 SciTE_AI_Assistant command.41.$(au3)="$(SciteDefaultHome)\..\AutoIt3.exe" "D:\i\Pro\.AutoIT\SciTE_AI_Assistant\SciTE_AI_Assistant.au3" command.subsystem.41.$(au3)=0 command.name.41.$(au3)=SciTE AI Assistant command.shortcut.41.*.au3=F10 command.save.before.41.$(au3)=2 # command.replace.selection.41.$(au3)=1 # command.quiet.41.$(au3)=0 # command.input.41.$(au3)=$(CurrentSelection) #------------------------------------------------------------------------------ #---------------------- Contex Menu ------------------------------------------- user.context.menu=\ ||\ >>>  SciTE AI Assistant  <<< |1141|\ ||\ Execute Selected Path|IDM_OPENSELECTED|\ #------------------------------------------------------------------------------ and make the necessary adjustments e.g. in command.41.$(au3)="$(SciteDefaultHome)\..\AutoIt3.exe" "D:\i\Pro\.AutoIT\SciTE_AI_Assistant\SciTE_AI_Assistant.au3" your path for the d:\your\location\SciTE_AI_Assistant\SciTE_AI_Assistant.au3 You may need to adjust the 41 to the first tool number available to you. in this case, change the >>> SciTE AI Assistant <<< |1141|\ as well in the Context Menu I added: Prompt Builder GUI The script described is an advanced AI prompt builder tool The tool provides a user-friendly interface that allows users to create, manage, and execute AI prompts based on predefined templates or customizable settings from .ini file. macros in the Prompt Builder GUI @Selection@ = the Selection of SciTE @ScriptName@ = the Script Name (useful as title) @ScriptFullPath@ = all the content of Script @ClipGet@ = the content of Clipboard @FileRead(FilePath)@ = the content of FilePath FIM (Fill-in-the-Middle <??> ) when it comes to FIM (Fill-in-the-Middle <??> ), the '<??>' tag is to specify the-Middle e.g. as in the example below, highlight the text , right click , and select, >>> SciTE AI Assistant <<< , FIM (Fill-in-the-Middle <??> ) Func SumNumbers($aNumbers)     Local $iTotal = 0         For $i = 0 To UBound($aNumbers) - 1         <??>         Next     Return $iTotal EndFunc
    1 point
  3. I don't know if I'm in the right place, I just discovered in the example C:\Program Files (x86)\AutoIt3\Examples\Helpfile\_Timer_SetTimer.au3 which was an example for: _Timer_KillAllTimers _Timer_KillTimer _Timer_SetTimer that a line is missing from the example. $g_hStatus = _GUICtrlStatusBar_Create($hGUI, $aParts) _GUICtrlStatusBar_SetParts($g_hStatus, $aParts) ; * <-- this line is missing so that the example also shows the time, as it was designed
    1 point
  4. TheSaint

    MD5 Compare

    Updated to v1.3, a much improved version. See first post.
    1 point
  5. Saulo

    Telegram Bot UDF

    257/5000 I created a program that downloads any file sent to the bot, however for api limitations the maximum allowed and 20mb anything more than that will give an error ps: sorry, i speak only portuguese-br message translated by google translator 😃 my code ;@PRIVATE CHAT MESSAGE; replace 946 to 962 in telegran api udf     If(Json_Get($Json,'[result][0][message][chat][type]') = 'private') Then         Local $msgData[10] = [ _             Json_Get($Json,'[result][0][update_id]'), _             Json_Get($Json,'[result][0][message][message_id]'), _             Json_Get($Json,'[result][0][message][from][id]'), _             Json_Get($Json,'[result][0][message][from][username]'), _             Json_Get($Json,'[result][0][message][from][first_name]') _         ]       If(Json_Get($Json,'[result][0][message][text]')) Then $msgData[5] = Json_Get($Json,'[result][0][message][text]')       If(Json_Get($Json,'[result][0][message][video][file_id]')) Then $msgData[9] = Json_Get($Json,'[result][0][message][video][file_id]') ; detects videos       If(Json_Get($Json,'[result][0][message][document][file_id]')) Then $msgData[9] = Json_Get($Json,'[result][0][message][document][file_id]');detects documents         ; TODO: Media recognition          Return $msgData While 1 $msgData = _Polling() If $msgData[9] <> "" then SendMsg($msgData[2],"Downloads starts on remote machine") $FileID = $msgData[9] $fileName = __DownloadFile(__GetFilePath($FileID)) If $fileName Then _SendMsg($msgData[2],"Download OK" & $fileName) Else _SendMsg($msgData[2],"download Erro") Endif EndIf wend
    1 point
  6. One we overlooked, and have just discovered, has been added to the first post. July 6, 2020 - ImGui in AutoIt - Advanced UI by thedemons P.S. A very interesting project, that appeared to have much potential, but sadly the author seems to have disappeared not long after providing.
    0 points
×
×
  • Create New...