Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/13/2011 in all areas

  1. Alternatively use IsDeclared to see if the function was called and parameter set or not: Func loadhosts($filename="") if not IsDeclared("filename") then $filename = "" if not $filename then $filename=FileOpenDialog("vyber soubor s IP nebo hostnamy",@scriptdir,"(*.*)",1) endif ;filereading commands here... endfunc Just be warned that obfuscater breaks this.
    1 point
  2. Not really as you changed the problem half way through the thread. But disregarding all of the above here is an example for you... Example of your current problem: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> _Main() Func _Main() Local $iLabel, $sRead GUICreate("Example by guinness") $iLabel = GUICtrlCreateLabel("", 5, 5, 490) GUISetState(@SW_SHOW) $sRead = StringReplace(IniRead("Settings.ini", "Section", "Key", "myUserName: @UserName"), "@UserName", @UserName) ; Use StringReplace! GUICtrlSetData($iLabel, $sRead) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd EndFunc ;==>_Main
    1 point
  3. Try this to play chip tunes directly from memory using bassmod.dll (also from memory): http://autoit.pastebin.com/VNmkQZWh I don't have enough free space left to upload it here! Br, UEZ
    1 point
×
×
  • Create New...