Jump to content

jchambers4

Members
  • Posts

    11
  • Joined

  • Last visited

jchambers4's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. OK, I tried both methods outlined with the: FILEAPPEND command and both methods outlined above failed for me. ALT-NUM-160 produces a strange character and The # method puts a # in the output datastream to the file. I think what Larry was saying is good luck. There is no way to do this. Jack
  2. I simply want to add white space at the beginning of a file with the following command: FileAppend, This is the output to the file.....,Filename.DAT However, what happens is the white space at the beginning of the line get stripted. How can I fix this?
  3. Can anyone out there tell me how to center windows on the screen? I do not see a way to get the current resolution of the screen in AutoIt. If I did, I would use this data plus the size of the current window and a little math with a WinMove and I would be done. But I do not see the starting point. Any suggestions on how to accomplish this? I would like it to work for any resolution and hence the reason that I want to use a call to get the current screen resolution. Thanks to any help I may get.
  4. Larry, Thanks again for the help. With this direction I figured it out. There was a little problem with the example code and I sent my test AutoIt script in a endless loop which force me to shutdown and reboot my system. So I figured I would post the fixed code with a little more explination for others. As Larry orginally stated. This needs to be compiled in order to run. ; This line can be a little confusing if you do not know that %1% %2% %3% are ; command line parameters to AutoIt. Therefore, the following line is determining ; if you call this AutoIt script with a parameter specified. If you did then it will ; skip to the Main body of the code(Main). IfEqual,0,1,Goto,Main ; If you did not start with a parameter it will run the script again with a parameter ; specified and then wait for the File Select window to appear, activate it, and then ; exit the original script call that you ran. Run,%A_SCRIPTFULLPATH% Main WinWait,Select File WinActivate,Select File Exit Main: FileSelectFile, FaxFile, 1, X:\\
  5. Larry, Thanks.... I understand that AutoIt in this case counts like a computer starting at 0. But this does not explain the problem at hand. The routine does not return the correct value at all. It point to the middle of the string were this is clearly no "\". Let me know what you think. Thanks for your help.
  6. Larry, Thanks for the solution(workaround). However, it does not explain why the original code does not work when according to the specification(documentation) it should. Thanks again, I will use the code you provided to continue on my way.
  7. I have written the following test to attempt to isolate the FILENAME from a drive, directories, and filename combined string. My code is as follows: SETENV,TEST,C:\\JACK\\WAS\\HERE\\JACK.XLS NotJustFile: MsgBox,0,Test,%Test% StringGetPos,FoundIt,Test,\\ MsgBox,0,FoundIt,%FoundIt% IfEqual,FoundIt,1,Goto,HaveJustFile ENVADD,FoundIt,1 StringTrimLeft,NewTest,Test,%FoundIt% SETENV,Test,%NewTest% MsgBox, 0,Test,%Test% Goto,NotJustFile HaveJustFile: MsgBox, 0,Done,%Test% However, after it isolates "JACK.XLS" it does not terminate as I would expect. With StringGetPost returning a 1 because it did not find the string and my program exiting with the string I need. Instead it returns a 5 and continues into a endless loop. Do anyone have any suggestions on what is going on here? Thanks in advance,
  8. I use a windows utility BLAT to accomplish email functions it is very powerful. Just search for it on the internet it is very easy to find.
  9. OK, Thanks you solved half of my problem. The other half is when the File Selection Dialog box is displayed it is not put in the foreground with fucus. It is placed in the background without focus and you need to shutdown windows until you find it and then click on it to give it focus. I looked at the documentation for this option and a simular feature is not available for this command. I know I could spawn off another AutoIt script looking for this dialog and the give it focus but this does not seam logical as I do not understand why it is not given focus to start with. Thanks again for the help......
  10. I have written an AutoIT Script: MsgBox,0,SendFax Utility:,Next a file selection dialog will be displayed. Select either the Text File, Word Document, or Excel Spreadsheet that you want to fax out..... FileSelectFile, FaxFile, 1, Q:\\ MsgBox,0,FaxFile:,FaxFile:%FaxFile% Exit However, when I compile this script and run it in XP, by copying the ICON to the "Quick Lanuch" bar and running it from there it does not maintain focus. In other words, what happens when its lanuched and there is already a program like Word displayed, the AutoIt Icon is displayed in the System Tray, and the first dialog is not displayed at all. In order to see it you must click on it in the Start Bar, and then the first dialog is displayed. Then in order to see the File Selection Dialog you need to, double click the SysTray Icon Twice, then click on the AutoIT icon in the StartBar. And then the File Selection Dialog box comes to the foreground. How do I get all of this to be in the foreground from the beginning? Please help.... Thanks in advance for any and all help.....
×
×
  • Create New...