Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/03/2016 in all areas

  1. Tagging this thread. Looks to be a ton of stuff to look at and learn later
    1 point
  2. @Deye if you just manually run the script I assume the trayicon is created? Just looking for confirmation the issue is only when it is run on startup.
    1 point
  3. AutoBert

    No systray icon at log on

    Use TraySetIcon. Have a look in the help if needed for undrstanding.
    1 point
  4. error471, My fault. Please try the new function code in #83 above. M23
    1 point
  5. Local $text = 'your text to replace1234!@#$%' Local $array = StringRegExp(StringLower($text), '[a-zA-Z0-9%]', 3) Local $newString = '' For $i = 0 To UBound($array) - 1 Step + 1 $newString &= $array[$i] Next This is the code I use to replace all unnecessary characters. Where "newString" is the new string. In the second parameter of the StringRegExp method you can place new characters that will not be removed. For the first questions, can you give me some more information about the background of your program?
    1 point
  6. @kwibus, welcome to AutoIt and to the forum. why won't you try it yourself? copying others' solutions will not improve your skills like doing it on your own. i advise you study the examples for various GUI functions, like GUICReate, GUIGetMsg, etc. once you understand those, it becomes easier to complete the functionality of the calculator. EDIT: changed AutoIT to AutoIt - thanks to TheDcoder for the post hereunder.
    1 point
  7. @BerniBuys, welcome to AutoIt and to the forum. here's what you missed: 1) this specific program, a well as many others, have either portable version or silent installation methods. use them! if you are "installing" many such programs, visit this site for their portable versions or alternatives. but if you insist on doing things the hard way, then let's proceed: 2) the installer requires elevation, which you cannot circumvent by sending Alt+y. you have to include the line #RequireAdmin at the top of your script, so your installation script is elevated before you launch any administrative task. and when you do, low and behold: Run() works as expected, as well as the other send() instructions! amazing! 3) or at least the first Alt+n works, for the first "Next" button. i have no idea what your Alt+i is supposed to do. the installer does not have any such options. 4) when you post code to the forum, use the code tags - the <> icon at the toolbar. like this: #RequireAdmin $result = FileExists("spsetup129.exe") If $result Then MsgBox(0, "", "File exists, Click OK to install") Run("spsetup129.exe") Sleep(5000) WinWaitActive("Speccy v1.29 Setup") WinActivate("Speccy v1.29 Setup") Sleep(2000) Send("!n") Sleep(1000) Send("!i") Sleep(15000) Send("!f") Else MsgBox(0, "", "File doesn't exist") EndIf
    1 point
  8. JohnOne

    Machine Text Parser

    #include <AutoItConstants.au3> #include <MsgBoxConstants.au3> Example() Func Example() Local $iPID = Run(@ComSpec & ' /C DIR ', "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) Local $sOutput = "" While 1 $sOutput = StdoutRead($iPID) If @error Then ; Exit the loop if the process closes or StdoutRead returns an error. ExitLoop EndIf ConsoleWriteLine($sOutput) WEnd EndFunc ;==>Example Func ConsoleWriteLine($str) If $str <> "" Then ConsoleWrite($str & @LF) EndIf EndFunc ;==>ConsoleWriteLine
    1 point
  9. GZM

    Machine Text Parser

    @orbs: BTW, I'm just as pissed of as anybody else looking at how science is turned into toys used by irresponsible grown-ups children... Another great tool went into Warez scene is srep. The same apply to Freearc, both by Bulat Ziganshin. Or Zpaq, the very strongest compressor known by this time.
    1 point
  10. Thanks for the feedback. Hope the INI-file approach works as well
    1 point
×
×
  • Create New...