| View previous topic :: View next topic |
| Author |
Message |
jleslie Newbie
Joined: 24 Jun 2010 Posts: 5
|
Posted: Fri Jun 25, 2010 6:48 pm Post subject: [re-]beginners help. basic file open and save button pushes |
|
|
hi all,
I'm working with vds 2.2, but will be upgrading to the latest very shortly but while I'm testing I'm having trouble with what should be a simple thing, but the functionality is escaping me.
I have an open Notepad session and with @winatpos I got the window identifier.
I am able to write using the window send, <<the indentifer>>, bla, bla, bla.
I can even write to the end of the file using window send,<<the identifier>>,@ctrl(@key(end)) now I'm writing the last line.@cr()
However what I'm having trouble doing is USING MOUSE CONTROLS to click on the word "file" on the blue bar and then click on the word "save" from the drop down list. question 1) how can I do this?
I also tried to program <ALT-F>S, but that didn't work either. question 2) how can I do this?
I'm not sure but I'm pretty sure I couldn't even get <ctrl>-S to work question 3) how can I do this?
I used SPY.EXE to locate the x,y coordinates if that helps.
I imagine things might be different in VDS6 vs VDS2.2 any help sample code would be aprreciated. I realize that I've asked for 3 different ways to solve the same problem, but this is a learning situation and I'll need to be able to program all three situations going forward.
Also going forward, to expand this to "file--> save as" and then typing in the "save as" dialog, quesition 4) how is that done?
Cut and paste sample code using notepad would be great.
TIA,
Jleslie |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Jun 26, 2010 4:35 am Post subject: |
|
|
Personal VDS 4
This freeware version is intended for students and home PC users. The package includes a short tutorial and full online help which includes many example scripts. The software is not licensable for commercial use.
http://www.dialogscript.com/index.php?option=com_remository&Itemid=75&func=fileinfo&id=5
The above version will have at least much more than your older 2.2 version and hold you over until you get the latest version. I believe the restriction is that it can't compile, but I could be wrong. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
jleslie Newbie
Joined: 24 Jun 2010 Posts: 5
|
Posted: Sat Jun 26, 2010 1:49 pm Post subject: |
|
|
| Garrett wrote: | Personal VDS 4
This freeware version is intended for students and home PC users. The package includes a short tutorial and full online help which includes many example scripts. The software is not licensable for commercial use.
http://www.dialogscript.com/index.php?option=com_remository&Itemid=75&func=fileinfo&id=5
The above version will have at least much more than your older 2.2 version and hold you over until you get the latest version. I believe the restriction is that it can't compile, but I could be wrong. |
are you saying that the examples will in VDS4 will answer my questions?? |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Jun 26, 2010 5:24 pm Post subject: |
|
|
No, I'm saying that if VDS 2.2 is holding you back, get this free version of VDS 4 which has much more to offer than the old VDS 2.2 that you currently have.
BTW, have you scanned the examples section of VDS World yet? There might be some code already available for what you are looking for. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sun Jun 27, 2010 12:41 pm Post subject: |
|
|
Things have changed a lot since VDS 2, and most of us here probably don't remember most of the syntax.
Moving to the most recent demo version will be your best starting point.
Then you will need time to get a grasp on the new syntax. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 766 Location: Eastman, GA
|
Posted: Sun Jul 04, 2010 8:34 pm Post subject: |
|
|
@winatpos is bad syntax.
@winatpoint is correct, but vds is forgiving.
Window click is based on the window position specified as a parameter.
If Notepad resides T = 40 and L = 40 on screen then
| Code: | | window click,#notepad,1,1 |
will click on notepad at 1,1, or screen position 41 41.
| Code: |
window send,@winactive(),@alt(f)s
window send,@winactive(),@ctrl(s)
|
| Code: |
window send,@winactive(),@alt(f)a
window send,Save As,FILENAME.EXT
|
PS - UPGRADE. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|