Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/21/2012 in all areas

  1. Hi! Today I want to show you my current AutoIt project: The ISN AutoIt Studio. The ISN AutoIt Studio is a complete IDE made with AutoIt, for AutoIt! It includes a GUI designer, a code editor (with syntax highlighting, auto complete & intelisense), a file viewer, a backup system, trophies and a lot more features!! Here are some screenshots: Here some higlights: -> easy to create/manage/public your AutoIt-projects! ->integrated GUI-Editor (ISN Form Studio 2) ->integrated - file & projectmanager ->auto backupfunction for your Projects ->extendable with plugins! ->available in several languages ->trophies ->Syntax highlighting /Autocomplete / Intelisense ->Dynamic Script ->detailed overview of the project (total working hours, total size...) And much more!!! -> -> Click here to download ISN AutoIt Studio <- <- Here is the link to the german autoit forum where I posted ISN AutoIt Studio the first time: http://autoit.de/index.php?page=Thread&threadID=29742&pageNo=1 For more information visit my Homepage: https://www.isnetwork.at So….have fun with ISN AutoIt Studio! PS: Sorry for my bad English! ^^
    4 points
  2. kylomas

    _ScreenCapture_Capture

    tsolrm, The code you posted will not run without adding a couple of #include stmts. Once you get it to run, and, follow Jos's advice you will see that the file name will contain "/" chars. These are invalid for a file name. Perhaps you want to do something like #include <ScreenCapture.au3> _ScreenCapture_Capture("c:tmp" & @YEAR & '-' & @MON & '-' & @MDAY & ' ' & @HOUR & @MIN & ".jpg") kylomas
    1 point
  3. Jos

    _ScreenCapture_Capture

    Have you checked what exactly is returned by the _NowDate() UDF?
    1 point
  4. You can change this a little and also use parameters if you need to. If $CMDLINE[0] > 0 then Switch $CMDLINE[0] Case 1 Call($CMDLINE[1]) Case 2 Call($CMDLINE[1],$CMDLINE[2]) Case 3 Call($CMDLINE[1],$CMDLINE[2],$CMDLINE[3]) Case 4 Call($CMDLINE[1],$CMDLINE[2],$CMDLINE[3],$CMDLINE[4]) Case 5 Call($CMDLINE[1],$CMDLINE[2],$CMDLINE[3],$CMDLINE[4],$CMDLINE[5]) Case Else ; EndSwitch Exit EndIf _RunExternal("_MyExternallyRanFunction") _RunExternal("_MyExternallyRanFunction",'"I have 1 param"') _RunExternal("_MyExternallyRanFunction",'"I have 2 params" "See this is my Second param"') _RunExternal("_MyExternallyRanFunction",'"I have 3 params" "This is my Second param" "And this is my Third param"') _RunExternal("_MyExternallyRanFunction",'"I have 4 params" "This is my Second param" "This is my Third param" "Look it''s my Fourth param"') MsgBox(0,"Msgbox1","I am running from the main script!" & @crlf & "My PID = " & @AutoItPID) Func _RunExternal($COMMAND,$Param = "") If @Compiled then Run('"' & @ScriptFullPath & '" ' & $COMMAND & " " & $Param, @ScriptDir) Else Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & @ScriptFullPath & '" ' & $COMMAND & " " & $Param,@ScriptDir) EndIf EndFunc Func _MyExternallyRanFunction($param1="",$param2="",$param3="",$param4="") Msgbox(0,"Msgbox2","I am the message box running in an external process" & @crlf & "My PID = " & @AutoItPID & @CRLF & $param1 & @CRLF & $param2 & @CRLF & $param3 & @CRLF & $param4) EndFunc
    1 point
  5. water

    remove element from array

    If you are familiar with regular expressions you can read the file into a string, replace all occurences of "nick2 number@CRLF" using StringRegExpReplace and then write the file to disk.
    1 point
  6. Melba23

    remove element from array

    tsolrm, I would do it like this: #include <Array.au3> #include <File.au3> ; Declare initial variables Global $aBans $sFile = "Statistics.txt" $sDelete = "nick2" ; Read file _FileReadToArray($sFile, $aBans) ; Just to show what you read _ArrayDisplay($aBans) ; Find the offending name - note you need to use the partial search parameter $iIndex = _ArraySearch($aBans, $sDelete, 1, 0, 0, 1) ; And if found - delete If Not @error Then _ArrayDelete($aBans, $iIndex) EndIf ; Just to show you it has been deleted _ArrayDisplay($aBans) ; And rewrite the file - note how to avoid the count in the [0] element _FileWriteFromArray($sFile, $aBans, 1) All clear? M23
    1 point
×
×
  • Create New...