Jump to content

Recommended Posts

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

@Zompy,

So - if I have summed up your request - please post the name of the DOS accounting program and maybe Jos (ad others) can get you started with your script.

If I got it wrong - please correct the order that you manually do things between the spreadsheet and the DOS app so that those helping can know the order that the script should be in.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Posted (edited)

herewasplato, what do you meant by the word "youngster"? Small amount of posts? :D

When the OP said:

Willk do, got kicked off my computer by my dad, lol =/

I gathered that the OP is in the younger stages of life (and uses the term lol). While there are a few scenarios that I can think of where one's father could kick a child off "his?" computer - the most likely scenario is that the OP is much younger than me.

Now - having rambled thru all of that - if you were just looking for a definition for the word - in context: it just means a young person - a child. It has little to do with actual age, because as I get older the age of youngsters goes up.

Youngsters can be old enough to have kids of their own. When you call a person that is that old a "youngster", you are making more of a statement about your own elderly age that the true youthfulness of the other person.

But I don't want to high jack this thread to much...

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Posted

When the OP said:

Willk do, got kicked off my computer by my dad, lol =/

I gathered that the OP is in the younger stages of life (and uses the term lol). While there are a few scenarios that I can think of where one's father could kick a child off "his?" computer - the most likely scenario is that the OP is much younger than me.

Now - having rambled thru all of that - if you were just looking for a definition for the word - in context: it just means a young person - a child. It has little to do with actual age, because as I get older the age of youngsters go up.

Youngsters can be old enough to have kids of their own. When you call a person that is that old a "youngster", you are making more of a statement about your own elderly age that the true youthfulness of the other person.

But I don't want to high jack this thread to much...

OK.

:D

Posted

well, it seems that zompy has some trouble with his english (not that i am the best in it :o), but because your question are so vaque try to type your qeustion in dutch and maybe i can help you or translate for you :D

Posted

I think that is the problem here is not in the language. It depends on how much a person needs help which he requested. I recognise that I was too rough in my post. I am sorry, Zompy. :D

Zompy, write at least the name of the program.

Posted

The program is called AR it's an old, and actually unique program...

Ill explain for i want for the last time.

I got an excel file,

i want the bot to read the excel info from A1, then type it into the program and send enter, then read A2 etc etc

till A5, then start with B1 till B5 etc

It depends each time how far the letter is going.

Posted

Send doesn't even work when i set sleep 10 secondas, i type something (to etst if it works) and i remove it, then the send command gos active but doesnt do anything.

Posted

If you still have it the way we discussed

You have to have

#Include <Clipboard.au3> at the top

then have in your for loop after the excelreadcell

_ClipBoard_SetData($cell[$f][$i])

If I remember correctly.

Giggity

Posted

The program is called AR it's an old, and actually unique program...

Ill explain for i want for the last time.

I got an excel file,

i want the bot to read the excel info from A1, then type it into the program and send enter, then read A2 etc etc

till A5, then start with B1 till B5 etc

It depends each time how far the letter is going.

Zompy, I really want to help you, but (without resentment) your answers give rise to further questions. Indeed, what is "AR"? "AR" is not the name of the program, this is abbreviation. If I tell you that I'm using a program of "AB" or "WR", then you will understand what programs are we talking about? Here, even Google will not help. Maybe this is not the name of the program, it can be a file name - "AR.EXE"? If you can, give a screenshot of its program ("AR").

Let us now to your topic. I understand from your answer following. You want to get data from Microsoft Excel and then paste them into some input field in the DOS-program ("AR"). So? Then you will actually use the Send(). But the fact that Send("Hello") does not send a word "Hello", it "emulates" consecutive pressing of keys - "H", "e", "l", "l", and "o". In any case, you first need to set the focus (cursor) to the input field (within the program "AR") in which you want to insert the data. Guess as it to make. Using the same Send () function. Most DOS-programs can be used for switch cursor the following keys "Tab" and "Up", "Down", "Left", and "Right" arrows. It is not difficult to understand the need by using the Send() function send the right amount of pressing, such as "Tab". It will look like as Send({TAB n}). Here "n" - quantity of pressing. Once the cursor is in the appropriate input field you can send the data, Send("Hello"). Etc.

local $Data
...
WinActivate("C:\WINDOWS\system32\cmd.exe")
Send("{TAB n}")
Send($Data)
...

If I did not understand you correctly, there is no need a peeve. Just explain in more detail about what you ask, those who want to help you. Indeed, in this case you need help, not me. And more. I understand for many in this forum English is not their native language (for me too), therefore, Zompy, please carefully at the phrases, so that later there was no puns as in this topic. If you are using Google Translate, I recommend that you check the result (sometimes get the translation with the opposite meaning).

Good luck.

:o

P.S.

I would like to ask that so special about this program ("AR"), that you can not refuse it, or find a worthy replacement? Say?

:D

Posted

You must wait until window is active and then send keys

local $Data
...
WinActivate("C:\WINDOWS\system32\cmd.exe")
WinWaitActive ( "C:\WINDOWS\system32\cmd.exe" )
Send("{TAB n}")
Send($Data)
...

edited

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...