Current To-Do List, (link)
EDIT: I'll update the list whenever I do stuff.
Edited by CyberSlug, 08 February 2004 - 07:48 AM.
Posted 05 February 2004 - 03:55 AM
Edited by CyberSlug, 08 February 2004 - 07:48 AM.
Posted 05 February 2004 - 07:12 AM
;FileOpen dialog options ;------------------------------------------------ $sFiles=FileOpenDialog( "Choose Image(s)", @DesktopDir, "Images (*.jpg;*.bmp)", 1 + 4 ) $ynCancel = @Error ;preserving @error for later scrutiny MsgBox(4096 + 64, @scriptname, "@error=" & $ynCancel & @LF & $sFiles) if $ynCancel then ;User Pressed Cancel else $aFiles = StringSplit($sFiles, "|") If $aFiles[0] = 1 then ;Single selection $sX = $aFiles[1] else ;$aFiles[0] = count of entries incl path ;$aFiles[1] = path ;$aFiles[2] = file-1 ;$aFiles[3] = file-2 $sPath = $aFiles[1] & "\" $sX = "" for $nFile = 2 to $aFiles[0] $sX = $sX & $sPath & $aFiles[$nFile] & @LF next $sX = StringTrimRight($sX,1) endif MsgBox (4096 + 64, "File(s) selected", $sX) endif $aFiles = StringSplit($sX,@LF) $sMsg = "$aFiles[0]=" & $aFiles[0] & @LF $sMsg = $sMsg & "$aFiles[1]=" & $aFiles[1] MsgBox(4096 + 64, @scriptname, $sMsg) Exit
Edited by trids, 05 February 2004 - 07:19 AM.
Posted 05 February 2004 - 07:42 AM
Drawing together recent requests for tutorials, and recalling my initial exposure to Autoit (and indeed any new language) I'd like to suggest expanding a little bit more on some of the Example sections.
Edited by GEOSoft, 05 February 2004 - 07:47 AM.
Posted 05 February 2004 - 08:41 AM
just update itProcessWaitClose
--------------------------------------------------------------------------------
Pauses script execution until a given process does not exist.
ProcessWaitClose ( "process" [, timeout])
Posted 05 February 2004 - 08:52 AM
; Script Function: ; Build Backup ; RunWait ('C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe /in Back.au3 /icon Back.ico') RunWait ('C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe /in RBack.au3 /icon RBack.ico') Exit
; Script Function: ; Build Backup ; RunWait ('C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe /Back.au3 /Back.ico') RunWait ('C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe /RBack.au3 /RBack.ico') Exit
Posted 05 February 2004 - 04:38 PM
;-------------------------------------------- ; Just Asc() to have fun with Chr() :o))) ;-------------------------------------------- _DisplayBase(2, 19) ;What is the binary equivalent of decimal 19 _DisplayBase(16, 19) ;What is the hex equivalent of decimal 19 _DisplayBase(8, 19) ;etc _DisplayBase(13, 19) _DisplayBase(20, 219) Exit Func _DisplayBase($pBase, $pNumber) ;Helper function for _ToBase() Msgbox (0,@scriptname, $pNumber & " to base " & $pBase & " = " & _ToBase($pBase, $pNumber)) EndFunc Func _ToBase($pBase, $pNumber) ;Converts the decimal $pNumber to base $pBase $sX = "" Do $nNext = Int($pNumber / $pBase) $nRem = Mod($pNumber, $pBase) If $nRem > 9 then $sX = Chr(Asc("A") - 10 + $nRem) & $sX Else $sX = String($nRem) & $sX Endif $pNumber = $nNext Until $pNumber = 0 Return $sX EndFunc
Posted 05 February 2004 - 08:28 PM
Edited by Nutster, 05 February 2004 - 08:29 PM.
Posted 05 February 2004 - 10:36 PM
TryI think that the documentation of AUT2EXE needs some updating, perhaps with valid examples. I still can't get that build script working this way.
Im wondering if it's not supposed to be; Script Function: ; Build Backup ; RunWait ('C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe /in Back.au3 /icon Back.ico') RunWait ('C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe /in RBack.au3 /icon RBack.ico') Exit
; Script Function: ; Build Backup ; RunWait ('C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe /Back.au3 /Back.ico') RunWait ('C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe /RBack.au3 /RBack.ico') Exit
RunWait ('"C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe" /in Back.au3 /icon Back.ico')
Posted 05 February 2004 - 10:51 PM
Posted 06 February 2004 - 12:59 AM
Edited by CyberSlug, 06 February 2004 - 05:02 AM.
Posted 06 February 2004 - 04:06 AM

Posted 06 February 2004 - 09:21 AM
Changed to repeat-y. Ta.I'd like to add a nitpick about H1 in default.css:
How about changing background-repeat: no-repeat; to background-repeat: repeat; ?
Posted 06 February 2004 - 03:43 PM
Posted 06 February 2004 - 09:21 PM
Posted 06 February 2004 - 10:48 PM
Posted 07 February 2004 - 06:39 AM
;infinite loop For $i = 1 to 3 step 0 Next ;executes zero times For $i = 3 to 1 step 0 Next
Edited by CyberSlug, 07 February 2004 - 08:40 PM.
Posted 08 February 2004 - 12:58 AM
d Integer Signed decimal integer.
i Integer Signed decimal integer.
Posted 08 February 2004 - 07:37 AM
Edited by CyberSlug, 08 February 2004 - 07:39 AM.
Posted 08 February 2004 - 07:50 AM
That coming from the windows doc. I don't know if the AutoIt3 format number need this level of differentiation.On StringFormat, The top two items in the "Type" table are the same. This does not seem right, or there is something else not explained on the page.
0 members, 0 guests, 0 anonymous users