Jump to content

freanir

Members
  • Posts

    17
  • Joined

  • Last visited

About freanir

  • Birthday 04/12/1986

Profile Information

  • Location
    Gelsenkirchen, Germany

freanir's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. The function is called NETWORKDAYS(), which means net work days (The space between net and work is deliberate).
  2. It isn't possible to call the function Call without the first parameter. You at least have to use: Call('Test1') Func Test1() MsgBox(4096, '', 'Hello') EndFunc
  3. #include <GUIConstants.au3> $t = GUICreate("Title", 200, 200, -1, -1, $WS_POPUP) GUISetState(@SW_SHOW, $t) While 1 Sleep(1000) Wend (Quick and dirty) Took me 1 Minute to find...
  4. I belive he means Random(). The correct Version of his Code is: Local $Seed = Int(InputBox("Seed", "Enter Seed:")) Local $A = Int(Random(0, 2^32)) Local $B = Int(Random(0, 2^32)) Local $Mod = 512 Local $Cache = $Seed For $x = 0 To 100 ConsoleWrite(Mod(($A*$Cache+$B),$Mod)) Next But I don't understand, why it is supossed to be an Random Algorithm. 1. It uses Random(), ergo you use the Random Algorithm,you want to rebuild, inside the new algorithm 2. When I use $Seed = 23 I get for example following Returnvalue: 4834834834834834834834834834834834834834834834834834834834834834834834834834834834834834834834834834 8348348348348348348348348348348348348348348348348348348348348348348348348348348348348348348348348348 3483483483483483483483483483483483483483483483483483483483483483483483483483483483483483483483483483 483 which is imho not very "random".
  5. @jefhal: I don't get your point. I know what assign() and eval() are for. My previous post was an answer to a post of theguy0000, who wrote: To answer his question I changed it to a question of which he knows the answer.
  6. Why use Assign('foo', 'Test'), when you can use $foo = 'Test' ?
  7. Eval() returns the value of a variable. Example: $foo = 12 MsgBox(0, 'Test', Eval('foo'))
  8. The script works for me. I won't do everything for you, except you're willing to pay me. BTW: I answered your question it is posible to format per AutoIt, the script is just a bonus. So you've got to excuse the "sloppiness". Can't test it, because I've got no (re)writeable Medium, except a HDD. Imho the control is just a frontend for the Dos-Command.
  9. Yes AutoIT can be used to format an removeable Drive, but you have to use a DOS Command. ;example #include <process.au3> $sDrive = FileSelectFolder("Choose a Drive.", "", 2); Select a Drive _RunDOS("format " & $sDrive & "/X");Formats the Drive with NTFS and cancels every allocation ;of the Volume MsgBox(0, "Finished", $sDrive & "is formatted") This Script is usable, although you may want to add Control and Error routines. Just check the Helpfile. For further Information on "format" type in the cmd.exe Window format /?
  10. Use StringReplace(). Example: $sString = 123456789 $sString = String($sString);Because 123456789 is a integer $iNumber = 2 $sStrippedString =StringReplace($sString, String($iNumber), "") MsgBox(0, "Result", $sStrippedString) EDIT: Next time I have to be quicker.
  11. You just have to use : #Include <process.au3> _RunDOS("net start messenger") ("net start" starts every service you want to) Accordingly "net stop" would stop the service.
  12. No problem. I'm from Germany, too, so I know the problem.
  13. Nice script. The Taskbar looks really cool when you use the script, although it`s pretty interfering when you actually want to work with Windows. BTW: It`s called Taskbar not Traywindow.
  14. You have to use the array $CmdLine. Explanation: $CmdLine[0] = Number of elements $CmdLine[1] = first parameter $CmdLine[2] = second parameter etc. Your Script would look like this: PROGRESS($CmdLine[1]) Func PROGRESS($sleepME) ProgressOn("Progress Meter", "Mapping Drives...", "0 percent") sleep($sleepME) ProgressSet( 10, 10 & " percent") sleep($sleepME) ProgressSet( 20, 20 & " percent") sleep($sleepME) ProgressSet( 40, 40 & " percent") sleep($sleepME) ProgressSet( 60, 60 & " percent") sleep($sleepME) ProgressSet( 80, 80 & " percent") ProgressSet(100 , "Done", "Complete") sleep(500) ProgressOff() EndFunc
×
×
  • Create New...