Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/14/2012 in all areas

  1. grasshopper3

    TheTVDB API

    Hey, I was wondering if anyone had some code to work with TheTVDB API that they are willing to share. I just want to get season information and fan art. I would like to integrate it into another autoit script that I have. I'd rather not start from scratch. Thanks.
    1 point
  2. You are talking about setting the working directory, which is the second parameter to Run(). I will let you piece that puzzle together.
    1 point
  3. There are more ways to insult somebody than just saying "you're stupid" to them. Incredibly tempting. Why do you keep placing capitalized emphasis on stating it's your opinion? I'm not interested in your opinion nor am I interested that you have an opinion. Meaning what, exactly? Do you realize that I am a user of AutoIt? Do you realize that trancexx is a user of AutoIt? Indeed, we both go further than that, we are users of other languages, too. We can see what problems AutoIt has. What features it lacks. I know it's shocking but we don't actually need your input at all. Well that's a strawman argument. Never-the-less, what this thread is about is not "What feature do you want to see in AutoIt" but rather, "What would you change about AutoIt if you had the chance to do it all over again". It was meant to be a thought exercise to which my reply is a not-so-subtle, "I do have the chance to do it all over again and in fact we are doing some things all over again so STFU". If I want it gone it will go. If I want it to stay it will stay. If I want to force all variables to be prefixed with "WowThisIsADumbPrefix" then I'll do it. At no point is getting told not to completely remove it a part of my decision unless I happen to be told that by Jon. Additionally, why would we go to all the trouble of making something optional if our intent was to remove it? Logically speaking, it's more work to support the presence and absence of something than it is to support the presence or absence of something.
    1 point
  4. IniRead() anyone? #cs [FileVersion] #ce #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_Fileversion=1.0.0.2 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** MsgBox(0, "Version:", _GetVersion()) Func _GetVersion() If @Compiled Then Return FileGetVersion(@AutoItExe) Else Return IniRead(@ScriptFullPath, "FileVersion", "#AutoIt3Wrapper_Res_Fileversion", "0.0.0.0") EndIf EndFunc
    1 point
  5. MKANET, here is an example using labels: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> $bOn = True $hGUI = GUICreate("On/Off", 120, 45) GUICtrlCreateLabel("ON", 10, 10, 50, 25, BitOR($SS_CENTER, $SS_CENTERIMAGE)) GUICtrlSetFont(-1, 8, 800, 0, "Arial",5) GUICtrlSetColor(-1, 0xC0C0C0) GUICtrlSetBkColor(-1, 0x101010) GUICtrlSetState(-1, $GUI_DISABLE) GUICtrlCreateLabel("OFF", 60, 10, 50, 25, BitOR($SS_CENTER, $SS_CENTERIMAGE)) GUICtrlSetFont(-1, 8, 800, 0, "Arial",5) GUICtrlSetColor(-1, 0xC0C0C0) GUICtrlSetBkColor(-1, 0x101010) GUICtrlSetState(-1, $GUI_DISABLE) $hSwitch = GUICtrlCreateLabel("", 60, 10, 50, 25) GUICtrlSetFont(-1, 8, 800, 0, "Arial") GUICtrlSetBkColor(-1, 0xFF0000) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case -3 Exit Case $hSwitch $aPos = ControlGetPos($hGUI, "", $hSwitch) If $bOn Then For $i = 0 To 50 ControlMove($hGUI, "", $hSwitch, $aPos[0] - $i, $aPos[1]) Next $bOn = False Else For $i = 0 To 50 ControlMove($hGUI, "", $hSwitch, $aPos[0] + $i, $aPos[1]) Next $bOn = True EndIf EndSwitch WEnd
    1 point
  6. If it doesn't have to be a slider, how about this idea: #include <GUIConstants.au3> #include <GuiButton.au3> #include <GUIConstantsEx.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 150, 85) $Button1 = GUICtrlCreateButton("On", 32, 24, 75, 25, 0) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlSetBkColor ($Button1, 0x87f717) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 _ToggleButton() EndSwitch WEnd Func _ToggleButton() $readButton = _GUICtrlButton_GetText($Button1) If $readButton = "On" Then _GUICtrlButton_SetText($Button1, "Off") GUICtrlSetBkColor ($Button1, 0xFF0000) Else _GUICtrlButton_SetText($Button1, "On") GUICtrlSetBkColor ($Button1, 0x87f717) EndIf EndFunc
    1 point
×
×
  • Create New...