dialog query.....

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply

Dialog query

dialog query
0
No votes
1,2
0
No votes
 
Total votes: 0

dcr_help!
Newbie
Posts: 2
Joined: Sat Jan 15, 2005 12:03 pm

dialog query.....

Post by dcr_help! » Sat Jan 15, 2005 12:18 pm

Hi
Dialog problems...

Based on an example that comes with MS - I want to paste from the clipboard text that can be verified or editted by the user and then submitted to a program....

Dialog>MyDialog
...
Label=verify below - edit if necessary:,5,5

Edit=MyEdit,5,22,230,Type Something Here and Press 'Display'
***instead of the above line Type Something.... I want text from the clipboard to appear here.

Is that possible???

...
EndDialog>MyDialog

many thanks

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sat Jan 15, 2005 12:35 pm

Hi,

Yes:


Dialog>MyDialog
Caption=This is My Dialog
Top=212
Width=252
Left=143
Height=106
Label=Verify below - edit if necessary:,5,5
Edit=MyEdit,5,22,230,%edit%
Button=OK,5,50,52,20,1
EndDialog>MyDialog

GetClipBoard>edit
MidStr>edit,1,100,edit
Show>MyDialog,r


Use GetClipBoard to set the value of the edit box prior to each Show command. I have used MidStr also to limit the amount of data assigned to the edit box (there could be problems in trying to overwhelm it - suppose you had several Mbs of data in the clipboard).
MJT Net Support
[email protected]

dcr_help!
Newbie
Posts: 2
Joined: Sat Jan 15, 2005 12:03 pm

thanks

Post by dcr_help! » Mon Jan 17, 2005 3:21 pm

nice one!

i get ya and i'll try that.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts