Jump to content

cueclub

Active Members
  • Posts

    144
  • Joined

  • Last visited

cueclub's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. I had followed the instructions setforth in this post. however it will not let me save the au3.properties.. Any suggestions?
  2. Ok will give that a try. thx CC
  3. Well I suppose I could do that, However when it gets to a company name for example. What would be the best way to write the different phone numbers to the name "Section" ? Array perhaps?
  4. I seem to have forgotten that part of it Sorry bout that. The 1st ini is lastname.ini [lastname1] [lastname2] [lastname3] [lastname4] [lastname5] [lastname6] [lastname7] [lastname8] [lastname9] [lastname10] The 2nd ini is phonenums.ini [555-555-5555] [222-222-2222] and so on..... What I need to do is get the Phne number when I click on the last name in the treeview area. Hope this explains it a bit more. CC
  5. I am trying to pull information from different files. They will all be grouped together by name. In treeview I would have Last Name << This labels would be the actual name. -First Name -Address -Phone Number I currently have the above information saved into 4 different ini files. I am writting the values as Section Keys. Like so: IniWriteSection(@ScriptDir & "\First Name.ini", GUICtrlRead($Name),"") Then read it into an array such as Local $Name2 = IniReadSectionNames(@ScriptDir & "\First Name.ini") For $I = 1 To $Name2[0] GUICtrlSetData(-1, $Name2[$I] & "|") Next The problem is I can not get the separate values into the TreeView based on what last name is selected. Here is what I have so far: Onlastnamesearch("CueClub") Func Onlastnamesearch($LastName) GUICreate("Notes for " & $LastName, 300, 250, -1, -1, "", $WS_EX_TOPMOST) GUICtrlCreateLabel("LAST NAME", 5, 10, 60, 40) Local $Tmp = IniReadSectionNames(@ScriptDir & "\Last Name.ini") Local $Tmp2 = GUICtrlCreateTreeView(5, 50, 170, 100) For $I = 1 To $tmp[0] $tmp3 = GUICtrlCreateTreeViewItem($tmp[$i], $Tmp2) $FirstName = GUICtrlCreateTreeViewItem("First Name", $Tmp3) $Address = GUICtrlCreateTreeViewItem("Address", $Tmp3) $PhoneNumber = GUICtrlCreateTreeViewItem("Phone Number", $Tmp3) Next Local $exit = GUICtrlCreateButton("Exit", 5, 160, 50, 20) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $exit Or $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete() EndFunc ;==>Example As you can see above, I can get the treeview to populate, and even the tree items, However I am stumped as to how to pull the data from the separate ini files and display them based on what is clicked on the treeview. I have read the help file, and searched here a bit, but it is a bit confusing for me. Any help would be appreciated. CC
  6. Okay so here it is, I am trying to update the combo box with the Section names of a ini. What I am needing is the Lastname written as a section name, and then add itself to the combo box. I will be using the combo box to look up informationb by lastname when it is selected. Any thoughts on this? notes() Func notes() Local $File = @ScriptDir & "Notes.ini" GUICreate("Notes", 500, 450) ; will create a dialog box that when displayed is centered GUICtrlCreateLabel("Name", 5, 10, 100, 20) GUICtrlCreateLabel("Last Name", 110, 10, 100, 20) GUICtrlCreateLabel("Location", 215, 10, 100, 20) GUICtrlCreateLabel("Misc", 320, 10, 100, 20) Local $FirstName = GUICtrlCreateCombo("", 5, 30, 100, 20);Input("", 5, 30, 100, 20) Local $lastname = GUICtrlCreateInput("", 110, 30, 100, 20) Local $Location = GUICtrlCreateInput("", 215, 30, 100, 20) Local $Misc1 = GUICtrlCreateInput("", 320, 30, 100, 20) Local $Misc2 = GUICtrlCreateInput("", 320, 50, 100, 20) Local $Misc3 = GUICtrlCreateInput("", 320, 70, 100, 20) Local $Misc4 = GUICtrlCreateInput("", 320, 90, 100, 20) Local $Misc5 = GUICtrlCreateInput("", 320, 110, 100, 20) Local $Misc6 = GUICtrlCreateInput("", 320, 130, 100, 20) Local $Misc7 = GUICtrlCreateInput("", 320, 150, 100, 20) Local $Misc8 = GUICtrlCreateInput("", 320, 170, 100, 20) Local $Misc9 = GUICtrlCreateInput("", 320, 190, 100, 20) Local $Misc10 = GUICtrlCreateInput("", 320, 210, 100, 20) Local $Save = GUICtrlCreateButton("Save", 5, 100, 50, 20) GUISetState(@SW_SHOW) ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $Save Then Local $Name = GUICtrlRead($LasttName) IniWrite($File, $Name, "Name", GUICtrlRead($FirstName)) IniWrite($File, $Name, "Location", GUICtrlRead($Location)) IniWrite($File, $Name, "Misc1", GUICtrlRead($Misc1)) IniWrite($File, $Name, "Misc2", GUICtrlRead($Misc2)) IniWrite($File, $Name, "Misc3", GUICtrlRead($Misc3)) IniWrite($File, $Name, "Misc4", GUICtrlRead($Misc4)) IniWrite($File, $Name, "Misc5", GUICtrlRead($Misc5)) IniWrite($File, $Name, "Misc6", GUICtrlRead($Misc6)) IniWrite($File, $Name, "Misc7", GUICtrlRead($Misc7)) IniWrite($File, $Name, "Misc8", GUICtrlRead($Misc8)) IniWrite($File, $Name, "Misc9", GUICtrlRead($Misc9)) IniWrite($File, $Name, "Misc10", GUICtrlRead($Misc10)) ExitLoop EndIf WEnd GUIDelete() EndFunc ;==>notes
  7. Has anyone noticed that the trial version doesn't count down the days. If you set it at 7, it still says 6 even 7 days later. Any thoughts on this?
  8. I KNEW IT!okay = me .. That goes without saying. I am not new here, the fact I had forgotten to post the code of problem is an automatic reason to be virtually kicked in the rear by every member of this forum. I will post the code as soon as I get home from work. On a side note, I thought that everyone had gotten a new crystal ball with their 5000th post. CC
  9. Anyone ever have a problem where Pressing the tab key will not move to the next input? Everything was fine till I added the Opt("GUIOnEventMode", 1). Its like it disabled it. Any ideas?
  10. I am trying to find out how to refresh a web address that is tab specific. I am trying to do this by pressing a button. I have 3 tabs all with the same web address loaded into them. Inside the tabs are _IEEmbedded(), _IENavigate() If 1 fails I would like to refresh it. I have tried _IEAction(Byref $Tab, "Refresh") But I am getting the following error Not asking for someone to work it for me, Just a point in the right direction. Thanks C
  11. I have a silly and noobish question. I have a website, with a DB on it. Now I have tried several things but still can not connect using _MySQLConnect("sa","sa","mydb","mywebsite.com") It keeps telling me it doesnt exist or cant connect. How do I get this to work if I cant get it to connect?
  12. okay after a few hours with it I had figured it out. needed to change $GUIActiveX2 = GUICtrlCreateObj($oIE, 35, 45, $x1 - 61, $y1 - 126) _IENavigate ($oIE2, "www.yahoo.com") to $GUIActiveX2 = GUICtrlCreateObj($oIE2, 35, 45, $x1 - 61, $y1 - 126) _IENavigate ($oIE2, "www.yahoo.com") ah every once in a while my deaf eye gives me trouble. and I am pretty sure I didnt post this in the right place so my apologies C
  13. I am trying to have all my emails loaded into 1 autoit program I am creating. Not sure if this can be done but here is what I have so far. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> _IEErrorHandlerRegister () local $exit $oIE = _IECreateEmbedded () $oIE2 = _IECreateEmbedded () $x1 = 900 $x2 = (@DesktopWidth - $x1) / 2 $y1 = 650 $y2 = (@DesktopHeight - $y1) / 2 GUICreate("Emails", $x1, $y1, $x2 ,$y2, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) $file = guictrlcreatemenu("File") $exit = guictrlcreatemenuitem("Exit", $file) GUICtrlCreateTab(20, 20, $x1 - 30, $y1- 95) GUICtrlCreateTabItem("MSN") GUICtrlSetState(-1, $GUI_SHOW) $GUIActiveX = GUICtrlCreateObj($oIE, 35, 45, $x1 - 60, $y1 - 125) _IENavigate ($oIE, "www.msn.com") GUICtrlCreateTabItem("Yahoo") $GUIActiveX2 = GUICtrlCreateObj($oIE, 35, 45, $x1 - 61, $y1 - 126) _IENavigate ($oIE2, "www.yahoo.com") guictrlcreatetabitem("") GUISetState() ;Show GUI ; Waiting for user to close the window While 1 $msg = GUIGetMsg() select case $msg = $exit exit EndSelect WEnd GUIDelete() Exit The problem is, MSN loads in the Yahoo tab. And of course I would like it to be yahoo. I am also receiving a com error of I do not get the error when I do it with 1 tab. Any ideas? Mr. C
  14. I am also trying to connect to a mysql database to look for a subscribed user for my autoit script. I have played around with Mysql UDF, and have had no success with it. Is there anyone around who could point m in the right direction? It seems I can not get it to connect. =| any and all ideas appreciated. thx Cue
  15. AHHHHH M23 saves me again. ty ty and now that I see it, it makes sense.
×
×
  • Create New...