| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Jan 11, 2003 6:44 am Post subject: help with auto type |
|
|
hello all
i have made a program that auto types a file name when it saves BUT i can't get it to work.also to the curser is right there in the txt box that is there to enter the file name in..but it don't auto type what i'am doing wrong?
here is part of the code that SHOULD do the typing:
| Code: |
window send,%W,@CR()
rem wait 1
window settext,%A,test.txt
rem WINDOW SETTEXT,@winatpoint(82,31),test.txt
wait 1
window send,%W,@TAB()
wait 1 |
notice i even tried winatpoint still no go
thanks |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Sat Jan 11, 2003 9:48 am Post subject: Re: help with auto type |
|
|
| tim6389 wrote: | hello all
i have made a program that auto types a file name when it saves BUT i can't get it to work.also to the curser is right there in the txt box that is there to enter the file name in..but it don't auto type what i'am doing wrong?
here is part of the code that SHOULD do the typing:
| Code: |
window send,%W,@CR()
rem wait 1
window settext,%A,test.txt
rem WINDOW SETTEXT,@winatpoint(82,31),test.txt
wait 1
window send,%W,@TAB()
wait 1 |
notice i even tried winatpoint still no go
thanks |
I think I know what the problem is. Instead of @winatpoint(82,31), use:
| Code: | | @WINATPOINT(@SUM(@WINPOS(<window>,L),82),@SUM(@WINPOS(<window>,T),31)) |
That is, when your EDIT is on position 82,31 of the dialog.
Another question: Why do you use WINDOW SETTEXT? If you want "test.txt" to be in your EDIT, just use DIALOG SET,<name>,test.txt. That would also remove your problem with @WINATPOINT()  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Jan 11, 2003 11:18 am Post subject: |
|
|
| Can you tell us to which window you want to send the textstring? And also give the values of the variables that you've used... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sun Jan 12, 2003 12:06 am Post subject: i feel so dumb |
|
|
hello all
well after spend many hours on this come to find out I DIDN'T have the window name spelled right sorry all |
|
| 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
|
|