Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/04/2011 in all areas

  1. change If @error = 0 then to If NOT @error then is not the same...
    1 point
  2. GUICtrlRead() would help! ; Press Esc to terminate script, Pause/Break to "pause" ; ; ---------------------------------------------------------------------------- ; AutoIt Version: 3.3.6.1 ; Author: BakedBeanss0802 ; ---------------------------------------------------------------------------- #include <INet.au3> #include <GuiButton.au3> #include <GuiToolBar.au3> #include <GuiConstantsEx.au3> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; GuiCreate("RandomTyper",314,299,585,333) $button1=GuiCtrlCreateButton("About",254,6,40,18) $button2=GuiCtrlCreateButton("Start Typing",65,232,183,50) $input1=GuiCtrlCreateInput("hi",44,112,138,20) $label1=GuiCtrlCreateLabel("typing",100,25,94,15) $label2=GuiCtrlCreateLabel("How to Setup",56,52,260,15) $label3=GuiCtrlCreateLabel("1. open notepad",7,73,180,15) $label4=GuiCtrlCreateLabel("2. what do you want to type?",6,94,224,15) GuiSetState() While 1 $msg=GuiGetMsg() If $msg=-3 Then Exit If $msg=$button1 Then button1() If $msg=$button2 Then button2() Wend Func button1() MsgBox(32, "-About", "Program Created by BakedBeanss0802") EndFunc Func button2() if GUICtrlRead($input1) = "hello" Then MsgBox(32, "-About", "LOLOLOLOL") Else MsgBox(32, "-About", GUICtrlRead($input1)) endif EndFunc
    1 point
  3. Something like this? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI = GUICreate("") $Limit = GUICtrlCreateLabel("10" , 0, 100, 100, 20) $Stat = GUICtrlCreateInput("10", 0, 0, 50, 20) $Level = GUICtrlCreateUpdown($Stat) GUICtrlSetLimit($Level, 20, 10) GUISetState(@SW_SHOW) $CurrentLimit = GUICtrlRead($Stat) While 1 $Msg = GUIGetMsg() Switch $Msg Case $GUI_EVENT_CLOSE Exit EndSwitch If $CurrentLimit <> GUICtrlRead($Stat) Then GUICtrlSetData($Limit, 20-GUICtrlRead($Stat)) $CurrentLimit = GUICtrlRead($Stat) EndIf WEnd
    1 point
×
×
  • Create New...