I'm trying to write a script that opens a .txt file For Input, scans it for occupied lines, then returns the line numbers for each newline..........or maybe even counts the number of existing newlines.
Got any suggestions on an elegant way to pull this off?
This should be easy. I just couldn't find a reference for the syntax anywhere...
How do you "default" something to the user's desktop in Attachmate?
I've created a script that scrapes several screens, then pastes the data to a .txt file on the desktop........but I can't share my script with...
I'm trying to make a form with a listbox control that outputs strings based on information typed into a textbox control------however, the way I WANT to do it is have it incrementally list the words (from an array) as the user is entering the data. For example - If the user enters the letters...
There are two rooms. In the first, there are three switches. In the second - there are three light bulbs. The door between them is closed. You are only allowed to go into the second room once.
If you start in the first room, how do you find out which switch operates which bulb?
I guess if...
This question is one of those "probably not, but I thought I'd ask anyway" questions:
I was wondering if it was possible to use the "escape" or "control" keys in sendkeys statements?
For example "<Home><BackTab><Escapekey?><Controlkey?><Enter>"
A second question --- is it possible to use...
By the way.........before I ask this question, I could have sworn there was a thread somewhere that already covered this, but I can not for the life of me find it. At any rate, here goes:
How do you write to a .txt or .doc file that is already open on the desktop? When I say "open", what I...
This should be a relatively simple question (I think). Here goes:
I currently have an application that scrapes a bunch of Screen.Area objects, and pastes them into a .txt file on my desktop. At the end of the script, I would like for it to open the .txt file in a new window (maximized). How do...
I am in the process of creating a script that opens a dialog box for password entry. I need my dialog to be able to handle errors, and open itself back up again when they happen. Is there a way to do this?
Here is one example:
In this script, the user is attempting to enter and reenter the new...
I have one more question about textbox controls in dialog boxes.
Is it possible to place a default line of text in a textbox control?
One example of this would be a password box that retains the last user's name (and possibly password). When the user executes the macro a second time, the...
Thanks for the tip :)
Here is one example
Dim op1 As String
op1 = "This is my output"
Open "C:\Documents and Settings\myuserprofile\Desktop\scrape.txt" For Append As #1
Write #1, op1
close 1
I want it to write: This is my output instead of "This is my output" (no quotation marks...
I'm trying to make a script that writes to a txt file on my desktop. I've figured out the script for opening/closing and writing to the txt document, but I'm needing it to do a couple of other things:
1. write each new expression to a new line (next line down) instead of overwriting the...
I was wondering if it was possible to create a dialog box that creates controls based on a variable?
I am trying to write a macro that
1. Reads data from an Area Object
2. Generates multiple checkboxes based on the data
In this example, I've made a script that reads the screen vertically to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.