Jump to content

hornet

Active Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by hornet

  1. Thank you so much for the fast replies guys. Enaiman, you hit the nail right on the head. I just changed that one little thing and the issue was resolved. Thanks again. -hornet
  2. Hey guys, I have created a simple GUI here and now I want to be able to use the two browse buttons and have the data that they return save in the .ini file. Any information that I manually put in the .ini file will be read correctly with the iniread() function but when I click the save button the info is not saving into the .ini file using the iniwrite() function. I have included the code below and I would appreciate some direction with this issue. Thanks. #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> HotKeySet("{PAUSE}", "Terminate") $settings = "Settings.ini" $section = "User Settings" $inputvalue1 = IniRead($settings, $section, "Input1", "") $inputvalue2 = IniRead($settings, $section, "Input2", "") Func Terminate() Exit EndFunc ;==>Terminate $Form1_1 = GUICreate("Test", 494, 392, 232, 145) $input1 = GUICtrlCreateInput($inputvalue1, 108, 100, 273, 21) $input2 = GUICtrlCreateInput($inputvalue2, 108, 132, 273, 21) $Button5 = GUICtrlCreateButton("Browse", 388, 132, 81, 20, $WS_GROUP) $Button6 = GUICtrlCreateButton("Browse", 388, 100, 81, 20, $WS_GROUP) $Button2 = GUICtrlCreateButton("Save", 216, 336, 89, 49, BitOR($BS_MULTILINE, $WS_GROUP)) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button2 IniWrite($settings, $section, "Input1", $location1) IniWrite($settings, $section, "Input2", $location2) Case $Button6 $location1 = FileOpenDialog("Choose Location", "", "Exe files (*.exe)") GUICtrlSetData($input1, $location1, "") Case $Button5 $location2 = FileOpenDialog("Choose Location", "", "Text files (*.txt)") GUICtrlSetData($input2, $location2, "") EndSwitch WEnd
  3. Thank you Yashied for a sensible response instead of a smart ass one, I appreciate it. -hornet
  4. Hey guys, I am trying to get my script to activate a window. The only problem is that the window does not have a title and it also doesn't have any text that AutoIT can find. Does anyone have any suggestions? -hornet
  5. Alright so if this function doesn't work that way...is there one that does. Phenom and myself have been asking a very basic question that I feel should have been answered quite a bit ago. All the answers we get seem to beat around the bush. We ask,"Can we do it with "X" function?" and the responder says,"Nope, don't work that way". We ask,"Can we do it with "Y" function?" and the responder says,"Nope, don't work that way". So is there anyone in this forum that can tell us,"Nope, don't work that way BUT you can use function "XYZ" to do what you're asking."???? -hornet
  6. Number 1, I have never spoke to Phenom before seeing his post...it just appears that he and I are looking for the same type of information. Number 2, just because it's a "Lobby" does not mean it's a poker lobby. And besides that, just like Phenom said in his post Zynga is not for real money, they don't consider bots cheating, and if I wanted a Zynga bot I would just download the one that is already available. So I would really like to find the information I am looking for just as Phenom probably is as well. Is this something that is too complicated for the massive volume of users in this forum? -hornet
  7. I am looking for the same type of thing Phenom is...any help would be greatly appreciated. -hornet
  8. Hey M23, this is what the info tool shows me. I have tried to run _GUICtrlListBox_GetText and it returns "0". I have also tried _GUICtrlListBox_FindInText and _GUICtrlListBox_FindString with no luck. I have tried various _GUICtrlListView_ functions as well. Any further help or direction is greatly appreciated. >>>> Window <<<< Title: Lobby Class: #32770 Position: 112, 317 Size: 825, 608 Style: 0x94CF0004 ExStyle: 0x00010100 Handle: 0x01020550 >>>> Control <<<< Class: ListClass Instance: 1 ClassnameNN: ListClass1 Name: Advanced (Class): [CLASS:ListClass; INSTANCE:1] ID: Text: Position: 9, 201 Size: 554, 227 ControlClick Coords: 269, 70 Style: 0x54210000 ExStyle: 0x00000000 Handle: 0x01E70520 >>>> Mouse <<<< Position: 394, 638 Cursor ID: 0 Color: 0xF7F7F7 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<<
  9. Thanks JohnOne, I'll check into those further. I was under the impression that those functions only worked with GUI's that you actually created and not ones on other applications...I take it this is not the case? -hornet
  10. What about a non flash list box? Any suggestions for that? -hornet
  11. What other functions could I use to read text from a list box? When using the window info tool there is no visible or hidden text that is found.
  12. Will this script work if I use Tesseract to capture an image and then search for specific text in the image then have the mouse click at that location? -hornet
  13. So what is the function to use in order to have our mouse click on specific text within a list control? -hornet
  14. So I think the question that Phenom and I both have is after we run this portion of the code and we have our screen shot, how can we tell our script to click at a certain point within that screen shot? When the return value only gives one number which indicates the character position, it will be hard to use mouseclick, or any other clicking command, to click at that location. To be specific, in my case anyway, I have a control that is a listbox that changes every 5 seconds or so...I need my script to search through the text within this list box and click on a certain line. The problem with this is that the specific line I need to click could be in position number 1 at one moment and then 5 seconds later could be at position number 5. Does any of that make sense? I appreciate any info regarding this. -hornet
  15. Awesome, thanks a lot. After I use _TesseractControlFind() to get the character location of what I'm looking for, how can I tell me script to click at that location? Edit: After reading through this thread again, it appears that the original poster was asking this same questions... -hornet
  16. Umm, so I searched for that UDF and even looked through the pages under the download section and was unable to find the Tesseract UDF... can someone direct me to the appropriate place? -hornet
  17. Hey guys, I checked the User Defined Functions Reference portion of the help file and was unable to find _TesseractScreenFind()...can someone direct me to right place to find it? -hornet
  18. Yeah, thats pretty much what I want to do except the place that I am moving the folders to is not exactly a directory...its actually the iTunes playlist...does this help at all? -hornet
  19. I have searched the forum for what I'm looking for as well as read over the link you gave me UEZ. I think all of that is way too complicated for what I'm really needing to do. I basically would like to create a script that will move folder after folder to a 2nd window on the screen. So just to clarify, both windows will be up. There are 1000+ windows in the left window and (at this point), zero in the right. I would like to create a script that will select the first folder in the left window, drag and drop it into the right window, go back to the left window, pick up the 2nd folder in the list, drag and drop it into the right folder, and continue to do this all the way through each and every folder in the left window. Does this make sense? This isn't really anything very important, it's actually just a learning script for me to get the hang of autoit but the problem is I'm not sure of which command to use. Thanks in advance for any help or tips. -hornet
  20. Hey guys, can someone kindly direct me to the appropriate function or command that will tell autoit to select a certain folder within a folder. For example, I want autoit to make a window active, inside this window are multiple folders and I would like autoit to search through these folders until it finds a specific folder and stop on that one. Thanks in advance. -hornet
  21. Oh okay, that makes sense. Thanks so much. -hornet
  22. When you have items such as the following, is the first character in the "GUICtrlSetLimit" always -1? I have looked in the help file and this is all I see: The control identifier (controlID) as returned by a GUICtrlCreate... function. But that link doesn't seem to be much help. $slider1 = GUICtrlCreateSlider (10,10,200,20) GUICtrlSetLimit(-1,200,0) Any help would be greatly appreciated. -hornet
  23. Thanks M23!! That was a lightning fast response. I have read over those particular items in the help file and I feel I have the basics down. Thanks for the links, I will definitely check them out. -hornet
  24. Hello all, I am completely new to AutoIT and I am trying to learn how to use this program. Can someone direct me to some good lessons or tutorials? -hornet
×
×
  • Create New...