Anyone:
I'm sure this is basic, but I'm just getting started..
I can't fill the text at the 'blinking' cursor of a text field (Load a file) .
//Load PreScan: 4x8x.bin Channel setting file
SetFocus>Setup Channel
Let>WF_TYPE=1
SetFocus>Setup Channel
PutClipBoard>BIS_Prescan_4x8x.bin
PushButton>Setup Channel,Load
Press CTRL
Press v
Release CTR
The above doesn't work because the Load Dialog needs to have the text field filled before closing , but it won't proceed to the CTRL-v function.
I've also tried to type the letters one by one to the field:
//Load PreScan: 4x8x.bin Channel setting with 'text'
SetFocus>Setup Channel
Let>WF_TYPE=1
SetFocus>Setup Channel
//Can't use 'PushButton for Load, PushButton>Setup Channel,Load
Let>TextString=BIS_Prescan_4x8x.bin
Length>TextString,len
Let>counter=0
Repeat>counter
add>counter,1
MidStr>TextString,counter,1,char
Send>char
Wait>0.1
Until>counter=len
I'm sure there's a better way.
Appreciate help.
Rick
Need to load specific file name into 'blinking' text field
Moderators: Dorian (MJT support), JRL
Well I'm not sure what is your problem, so here are a few thoughts:
1.)
Most "load a file" dialogs I've encountered, have a button to click in order to browse the file system to find the file. It's usually on this dialog where you can simply type in the file you want to load.
2.)
Many times "PushButton" won't work. It is then time to try
the following:
SetFocus>window caption goes here
Wait>0.5
MouseMoveRel>x,y (fill this in with x,y of button to click)
LClick
3.)
Your sample code had a syntax issue
Press CTRL
Press v
Release CTR
should be changed to:
Press CTRL
Press v
Release CTRL (missing the L here)
4.)
It is vastly better to just use the system variable in combination
with send, instead of either pasting the text, or the loop you used
Let>SK_DELAY=XX
Send>what ever string you want to send
By setting the delay you can slow down the sending of characters
to any rate you want.
1.)
Most "load a file" dialogs I've encountered, have a button to click in order to browse the file system to find the file. It's usually on this dialog where you can simply type in the file you want to load.
2.)
Many times "PushButton" won't work. It is then time to try
the following:
SetFocus>window caption goes here
Wait>0.5
MouseMoveRel>x,y (fill this in with x,y of button to click)
LClick
3.)
Your sample code had a syntax issue
Press CTRL
Press v
Release CTR
should be changed to:
Press CTRL
Press v
Release CTRL (missing the L here)
4.)
It is vastly better to just use the system variable in combination
with send, instead of either pasting the text, or the loop you used
Let>SK_DELAY=XX
Send>what ever string you want to send
By setting the delay you can slow down the sending of characters
to any rate you want.