Jump to content

celestialspring

Active Members
  • Posts

    38
  • Joined

  • Last visited

celestialspring's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. A very good morning to you too sir. Thank you very much. The script works perfectly
  2. Thanks, mate. I'll give it a shot.
  3. Hi Guys, The script I am trying to write it simple: Read a CSV file, say Test.CSV Split it per line then save each line to a file by the name of Test1.csv, Test2.csv and so on... I have been able to write only until this point (see below) any ideas what I should be doing next? =======BEGIN============ #Include <file.au3> $fileorg = "c:\test.csv" FileOpen($fileorg) Dim $aRecords $linenumbercount = _FileCountLines($fileorg) $fileread = _FileReadToArray($fileorg,$aRecords) For $x = 1 to $aRecords _FileWriteFromArray(????) ============END==================== Thanks. CS
  4. Hi Guys, here is the relevant code: Func XYZClick() $invoicenumber = GUICtrlRead($Invoice_Number) $prog = "c:\pdf\pdftk.exe" ; paths with spaces must be enclosed in " quotes " $orgfile = "c:\report.pdf" $stampfile = "c:\pdf\xyz.pdf" $outputfile = FileSaveDialog('"XYZ File Saver"','"\\my server\Emailed Invoices"',".pdf","",$invoicenumber,"") RunWait("cmd.exe /c" & $prog & " " & $orgfile & " stamp " & $stampfile & " output " & $outputfile, "", @SW_SHOW) EndFunc ;==>XYZClick I can't get the file save dialog to work, what am I doing wrong? Thanks. CS
  5. Absolutely, some progs are real bad. I use one at work. The problem with child windows in these programs is very relevant. On closer look you'll be able to see a pattern in the child windows and their control IDs. If you are only going to use the prog on one machine, you could do with mouseclick and "send". cs
  6. What you need to do is to make a loop which checks if CTRLDOWN is pressed. The logic is like this: while _ispressed(Ctrldown) = true 'do something' wend
  7. Would you mind sharing the name of the language because I'll be interested in knowing that. Thanks
  8. Ya, mouse click is so much monitor and resolution dependent. Its not a good way of doing things. I have tried experimenting with the Keyboard shortcuts also but you have to add a pause in between them and have outlook open and infront all the time. Really sucks mate. cs
  9. Not to my knowledge. I have also scoured the forum for answers, I couldn't find anything.
  10. Look at the Winclose command and process close command in conjunction. for example $windowtitle = "MyWindow" $processname = "Myprocess" if WinExists ( $windowtitle) Then processclose($processname) endif
  11. This is how I do it: $windowname = "Save As" ; put the title of your window here $control = "ControlID" ; enter control ID of the box where the text goes $initialdirectory = @programsdir/ & "{Enter}" ; your initial path here $flag = 0 winwait($windowname) ControlSend($windowname,"",$control,$initialdirectory,$flag) Hope this helps cs
  12. Thank you, Manadar and Mobius. Now I understand the concept. Regards,cs
  13. This one works, Mate. Thanks a lot. You have saved me a lot of grief. Thanks. cs PS: I do read the help files but I am a finance professional, I don't understand a lot of coding
×
×
  • Create New...