Jump to content

NicePerson

Active Members
  • Posts

    163
  • Joined

  • Last visited

Everything posted by NicePerson

  1. Thats doing exactly what you 've written in it. What you want to do with it?
  2. ghost710, Welcome the the forum! Please read the forum rules before posting more questions about bots/game automation. Regards
  3. dfmsguitar, Welcome to the AutoIt forums Please post the code of second program where its running installer.exe then it will be easy to help you out! Regards
  4. Try this: $run = 0 Func _Main() While 1 < 6 Call("Second") $run += 1 WEnd EndFuncThis will Call("Second") for 5 times.
  5. You can use GUICtrlRead() function to get the values from input box and same for checking check box...
  6. That helped me a lot Thanks..
  7. Use GUISetState(@SW_RESTORE, $hGUI) after enabling the GUI that will solve the problem.
  8. Try this: Do $var = FileSelectFolder("Choose a folder.", "") Until $var <> "Computer" And $var <> "Control Panel" MsgBox(0,"",$var & " is a valid path.")
  9. @PhoenixXL Thanks, but thats already done in the code... Here is a simple example code of my problem: #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 178, 450, 192, 124) $buttonsToCreate = 8 $buttons = 0 $Button0 = GUICtrlCreateButton("Button 0", 16, 16, 145, 41, $WS_GROUP) $buttonTop = 64 While $buttons <> $buttonsToCreate $buttons += 1 GUICtrlCreateButton("Button " & $buttons, 16, $buttonTop, 145, 41, $WS_GROUP) $buttonTop = $buttonTop + 48 WEnd GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button0 MsgBox(0,"","Button 0 clicked") EndSwitch WEnd I want to know how to do something when other buttons are clicked ?? I hope now its easy to understand what I'm trying to say.
  10. Try this: Case $submit $sSelection = GUICtrlRead($extensions) MsgBox(0,"","You selected " & $sSelection & " extention...") ExitLoop ; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Instead of: Case $extensions $sSelection = GUICtrlRead($extensions) ExitLoop ; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  11. Hey everyone I hope you will be doin fine... I am trying to make a GUI which will be working as a forum interface but I'm stuck at working with some controls. Here is my work: #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GuiStatusBar.au3> #include <TabConstants.au3> #include <TreeViewConstants.au3> #include <WindowsConstants.au3> #include <String.au3> #region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 550, 437, 192, 124) $Tab1 = GUICtrlCreateTab(0, 0, 550, 417) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT) $file = FileOpen("forum.htm", 0) ; Check if file opened for reading OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf ; Read in lines of text until the EOF is reached While 1 Local $line = FileReadLine($file) If @error = -1 Then ExitLoop If StringInStr($line, '<a href="forumdisplay.php?f=') Then ; means line contains needed data $Array = _StringBetween($line, '<a href="forumdisplay.php?f=', '>') $aArray = _StringBetween($line, '<a href="forumdisplay.php?f=' & $Array[0] & '>', '</a>') If StringInStr($aArray[0], "Section ", 1) Then ;this line contains section info $TabSheet = GUICtrlCreateTabItem(Validate($aArray[0], 1)) $treeview = GUICtrlCreateTreeView(8, 40, 193, 369, BitOR($TVS_HASBUTTONS, $TVS_HASLINES, $TVS_LINESATROOT, $TVS_DISABLEDRAGDROP, $TVS_SHOWSELALWAYS), $WS_EX_CLIENTEDGE) $Label = GUICtrlCreateLabel("Description:", 248, 48, 200, 21) GUICtrlSetFont(-1, 9, 400, 0, "Segoe UI") $Input = GUICtrlCreateEdit("", 248, 80, 281, 117, BitOR($ES_CENTER,$ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_HSCROLL,$WS_VSCROLL)) GUICtrlSetFont(-1, 8, 400, 0, "Segoe UI") ElseIf StringInStr($aArray[0], "<strong>", 1) Then ;contains section forums $line = Validate($line, 2) $value = _StringBetween($aArray[0], '>', '</') $item = GUICtrlCreateTreeViewItem(Validate($aArray[0], 1), $treeview) GUICtrlSetColor(-1, 0x0000C0) Else ;contains sub forums GUICtrlCreateTreeViewItem(Validate($aArray[0], 1), $item) EndIf EndIf If StringInStr($line, '<div class="smallfont">') Then ;its description of the forums $aArray = _StringBetween($line, '<div class="smallfont">', '<') $value = Validate($aArray[0], 1) GUICtrlSetData($Input, $value) EndIf WEnd FileClose($file) $StatusBar1 = _GUICtrlStatusBar_Create($Form1) GUISetState(@SW_SHOW) #endregion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $item ;IDK How to display description infromation of the clicked item??? EndSwitch WEnd Func Validate($text, $func) If $func = 1 Then $text = StringRegExpReplace($text, '<([^%]*?)>', '') $text = StringReplace($text, "&amp;", "&") Return $text ElseIf $func = 2 Then $text = StringReplace($text, @CRLF, "") Return $text EndIf EndFunc ;==>Validate I want that when we click on an item then it should display its description text in EditBox but don't know how to do it, any help would be appericiated... forum.htm
  12. I need old version because size of compile script is very small in that version than new one.
  13. Thanks but where i can download old beta versions?
  14. I used the same code: >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "F:\WinHttp\Example.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams +>12:28:11 Starting AutoIt3Wrapper v.2.0.1.24 Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 3 CPU:X86 OS:X86) >Running AU3Check (1.54.19.0) from:C:\Program Files\AutoIt3 +>12:28:11 AU3Check ended.rc:0 >Running:(3.3.6.1):C:\Program Files\AutoIt3\autoit3.exe "F:\WinHttp\Example.au3" +>12:28:16 AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 6.740
  15. How to upload a file as asked in this thread :
  16. I also tried that but it don't seems to work, someone can help?
  17. Try again by re-installing..
  18. Use the following function! RunWait()
  19. I don't know how to use the HTTP protocol to send an image to a own web space..
  20. Easy way of sending a file to a web host is using FTP.. If you are having problems in sending files using FTP, then post your code here.
×
×
  • Create New...