Jump to content

CompWiz

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by CompWiz

  1. This is nice.. I have been working on something similar to this myself but it wasn't this user friendly... I like how you allow the option to change the visiblity of a window because I never even thought about adding an option like that. Nice work.
  2. If you want to add an Input Box or any other command that will only show up on one tab its simple. All you need to do is place the code under the GUICtrlCreateTabItem for the tab you want it on. I added an Input Box on the URLs tab in the code below but I took out your list that was there becase two controls over lapping is not a good thing and I didn't know where you wanted it to show up so just add it back in where ever you need it. CODE#include <GUIConstants.au3> ;=================================GUI========================================= $Form1 = GUICreate("PoXee", 358, 444, 201, 125) $menu = GUICtrlCreateMenu("&File") $eMenu = GUICtrlCreateMenuitem("Exit",$menu) $hMenu = GUICtrlCreateMenu("&Help") $aMenu = GUICtrlCreateMenuitem("About", $hMenu) $tab = GUICtrlCreateTab(0, 48, 100, 17) GUICtrlSetFont(-1, 8, 400, 0, "Tahoma") $progress = GUICtrlCreateProgress(0, 0, 353, 9) GUICtrlSetData(-1, 25) ;$pList = GUICtrlCreateList("", 0, 64, 353, 357) $pLabel = GUICtrlCreateLabel("", 0, 424, 187, 17) GUICtrlSetFont(-1, 8, 400, 0, "Tahoma") $nLabel = GUICtrlCreateLabel("", 192, 424, 163, 17) GUICtrlSetFont(-1, 8, 400, 0, "Tahoma") $save = GUICtrlCreateButton("Save", 296, 16, 57, 17, 0) $exit = GUICtrlCreateButton("Exit", 296, 40, 57, 17, 0) $load = GUICtrlCreateButton("Load", 216, 16, 57, 17, 0) $clear = GUICtrlCreateButton("Clear", 216, 40, 57, 17, 0) $leech = GUICtrlCreateButton("Leech", 144, 24, 57, 17, 0) $tab1 = GUICtrlCreateTabItem("Leeched") ;add any code here you want and it will only show up on the Leeched tab $tab2 = GUICtrlCreateTabItem("URLS") $input = GUICtrlCreateInput("Text Here", 15, 100, 200, 17) ;add any code here and it will only show up on the URLs tab GUICtrlCreateTabitem ("") ;============================================================================== GUISetState(@sw_show) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $exit ExitLoop Case $msg = $tab if guictrlread($tab) = 1 then WinSetTitle("URLS","","") if guictrlread($tab) = 2 Then WinSetTitle("LEECHED", "","") Case Else ;;; EndSelect WEnd
  3. Thanks! That did it.. I was using the wrong return type in my code as well. I work with Autoit a lot but I'm new to DllCall.
  4. I tried something almost identical to that before and I even used your exact function just a few mins ago and it returns a zero and leaves the handle open.
  5. The way I read it though is that using just a single GUI not child windows and tabs there is no other way. The post was asking about a way to hide all controls at once and I know there has been several times I needed to do this and tabs and child windows just won't work. They will hide it but sometimes you just can't incorpate them and in that case there is no other way of doing so without hiding them all individually.
  6. Are you trying to create an image with text under it inside an Autoit GUI? If so have you tried just creating an image and then placing a label just underneath it and insider your While loop caught the msg for either the icon or the label being pressed.
  7. I don't think there is any way to hide an entire group at once
  8. I was working on a script that needs to be able to access the CD-Rom tray and tell if it is open or closed and I found a good post on that here on the 8th post and it works great but the only problem is that it is opening a handle to the drive every time it runs. Does anyone know of any way to close this handle so that I won't end up with hunderds of handles.
  9. What my goal is with this file is to be able to sort through a script and pull out all variables. I think its useful because right now I'm working on a large script for some things at my job and when I'm done I have to put together a list of variables so that everyone who needs to change it can follow it. I mean I have comments all throughout the code but to me when I read through some elses code the hardest part is trying to learn the way they name all their variables. It may not be useful to some people but if your like me and you have several scripts that are exceding a 2000+ lines of code its a big help. The script runs pretty fast as it is but I'm mainly looking for a way that you can read a file into memory and then work on the file that way. Basicly the same way you can do in C++ and C#. If I can find a way to do this I maybe able to speed it up so that it could run in 5 sec or less. I've seen it done in C# and they read through over 2000 lines in about 2sec.
  10. I thought this might be useful to some people so I'm posting it out here but I'm looking for any suggestions on how to make it faster. Currently it can go through one of my scripts that is about 2300 lines of code in about 34 sec. Does anyone know of a way to read a txt file into memory and then read it directly from memory insteaded of going line by line from file to file. Variable_list.au3
×
×
  • Create New...