Jump to content

yclee99

Active Members
  • Posts

    34
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

yclee99's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks for all your replies. I manage to use above tool to get the information.
  2. Sorry. I missed your earlier post. I am not able to find the suggested tool (faq 31) online
  3. I tried _GuiCtrlListBox_SetCurSel() and unable to select the row.
  4. It shows the following List3&Register&Change&Delete&ExitProjects Above result is the same as what I got from using AutoIt Windows Info.
  5. My current codes perform _Excel_RangeWrite when matching is found and skip _Excel_RangeWrite when there is NO matching. I will try to modify my codes as per your suggestion above. The problem is I don't know who to write 2D array from certain cell (i.e. from B2). I was not able to find the sample in the forum.
  6. Thanks guys. I manage to develop the function that I am looking for. Special thanks to BigDaddyO as I am using the XPDF_gettext function to archive the functionality. My next task it to improve the tool performance (speed). Personally, I think Line 3 should be take out from the loop and just do 1 time _Excel_rangeWrite the whole range but I am struggle to find the way. Any advise? For $i = 1 To UBound($aDatasheet) - 1 $readPDF = _XPDF_GetText($sDatasheetDir & $aDatasheet[$i]) _Excel_RangeWrite($oNewWorkbook, "Sheet1", $sDatasheetDir & $aDatasheet[$i], "A" & $i + 1) For $j = 1 To UBound($aEquipment) - 1 $readPDFoutput = StringReplace($readPDF, $aEquipment[$j], $aEquipment[$j]) $iReplacedCount = @Extended If $iReplacedCount Then $iCol = $j + 1 $sLetter = _Excel_ColumnToLetter($iCol) _Excel_RangeWrite($oNewWorkbook, "Sheet1", $iReplacedCount, $sLetter & $i + 1) EndIf Next _Excel_BookSave($oNewWorkbook) Next
  7. Thanks for your reply.
  8. I am still unable to get it work with ControlListView. Anyway, thanks.
  9. Dear All, I have large number PDF files which I need to checked each of them whether containing certain string (equipment tag name). Example: I have 500 PDF files and I want to know which PDF files contains the specific equipment tag name. There are 100 equipment tag name in total. In the past, we did this process manually by opening PDF file and search for the equipment tag name. We don't really care the equipment tag name is located at which page. What is important to use is the PDF files contains which equipment tag name. This process is really time consuming. I wonder it there a way to do it automatically. My original idea is to convert the PDF to text file (XPDF - pdftotext) and search for for the equipment tag name. Is there any better way to deal with this? p/s: I just found out that pdftotext is not free as I am using it for commercial purpose. I am trying to avoid using pdftotext.
  10. Thanks for the information. I tried but I still cannot get the Project Name information. Below is the results using the above script. Func=[GetAllWindowsControls]: ControlCounter=[ 1] ControlID=[46071] Handle=[0x001302E0] ClassNN=[ Button1] XPos=[ 86] YPos=[ 255] Width=[ 105] Height=[ 23] IsVisible=[1] Text=[&Register]. Func=[GetAllWindowsControls]: ControlCounter=[ 2] ControlID=[46072] Handle=[0x0011025C] ClassNN=[ Button2] XPos=[ 201] YPos=[ 255] Width=[ 98] Height=[ 23] IsVisible=[1] Text=[&Change]. Func=[GetAllWindowsControls]: ControlCounter=[ 3] ControlID=[46073] Handle=[0x001B04E0] ClassNN=[ Button3] XPos=[ 312] YPos=[ 255] Width=[ 86] Height=[ 23] IsVisible=[1] Text=[&Delete]. Func=[GetAllWindowsControls]: ControlCounter=[ 4] ControlID=[ 1] Handle=[0x004C044A] ClassNN=[ Button4] XPos=[ 410] YPos=[ 254] Width=[ 79] Height=[ 23] IsVisible=[1] Text=[&Exit]. Func=[GetAllWindowsControls]: ControlCounter=[ 5] ControlID=[ -1] Handle=[0x001C02D2] ClassNN=[ Button5] XPos=[ 9] YPos=[ 12] Width=[ 476] Height=[ 228] IsVisible=[1] Text=[Projects]. Func=[GetAllWindowsControls]: ControlCounter=[ 6] ControlID=[ 0] Handle=[0x0019047A] ClassNN=[ SysHeader321] XPos=[ 21] YPos=[ 32] Width=[ 449] Height=[ 16] IsVisible=[1] Text=[]. Func=[GetAllWindowsControls]: ControlCounter=[ 7] ControlID=[46065] Handle=[0x000B02D4] ClassNN=[ SysListView321] XPos=[ 18] YPos=[ 29] Width=[ 453] Height=[ 197] IsVisible=[1] Text=[List3].
  11. Hi. I would like to know how to get the text (refer to attached image, "Project Name" column)? The Window Info is shown below. >>>> Window <<<< Title: Utility To Change Project's Attribute Class: #32770 Position: 550, 268 Size: 501, 324 Style: 0x94C800C4 ExStyle: 0x00050101 Handle: 0x0010035C >>>> Control <<<< Class: Button Instance: 5 ClassnameNN: Button5 Name: Advanced (Class): [CLASS:Button; INSTANCE:5] ID: Text: Projects Position: 9, 12 Size: 476, 228 ControlClick Coords: 191, 100 Style: 0x50000007 ExStyle: 0x00000004 Handle: 0x000D0280 >>>> Mouse <<<< Position: 753, 405 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< List3 &Register &Change &Delete &Exit Projects >>>> Hidden Text <<<<
  12. Thanks dude... After applied the script to my main script, I am facing another 2 issues. I will tried to solve first before seek for help.... p/s:basically your scirpt doesn't have any problem...
×
×
  • Create New...