Hi,
Can you please give me a snippet to drag and drop a message from Inbox Supergrid to Outline Item Personal folder or ‘Sent Item’ folder for OL2k3/OL2k7?
As well as I need to drag a document form Local drive (for e.g C) to Outlook New message.
We use our monitor resolution as 1280*1024.
Please provide a small snippet to perform these operations.
Thanks,
Sachin
How to drag & drop a mail item from Inbox to Personal folder
Re: How to drag & drop a mail item from Inbox to Personal folder
1st, you need to find the location of the from and to positions. I.E. get a pointer to the object you are going to move and to the object where you are going to move it.
2nd, Move the mouse to the from object:
3rd, Click the object:
4th, Move the mouse to the new location:
Finally, release the mouse button:
In the above example code, HDTableCell and HDTableCellEND are my from and to objects. You will need to replace those objects with your own.
2nd, Move the mouse to the from object:
Code: Select all
HDTableCell.MoveTo();
Code: Select all
Mouse.ButtonDown(MouseButtons.Left);
Code: Select all
Mouse.MoveTo(HDTableCellEND, Location.UpperCenter);
Code: Select all
Mouse.ButtonUp(MouseButtons.Left);
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to drag & drop a mail item from Inbox to Personal folder
Ciege got it perfectly right - as always 
BTW, the Ranorex Recorder should generate the same code for you if you record the drag & drop operation once and let the recorder generate code for it.
Regards,
Alex
Ranorex Support Team

BTW, the Ranorex Recorder should generate the same code for you if you record the drag & drop operation once and let the recorder generate code for it.
Regards,
Alex
Ranorex Support Team
Re: How to drag & drop a mail item from Inbox to Personal folder
Not sure I would say "as always" but I have a pretty good percentage going so far! 

If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: How to drag & drop a mail item from Inbox to Personal folder
Hi,
I am still not able to drag and drop an item from inbox to personal folder.My screen resolution is 1280*1024.I am using Outlook default settings.
It selects the supergrid ,but doesn't perform drag and drop.
Please provide a small snippets.
Thanks,
Sachin
I am still not able to drag and drop an item from inbox to personal folder.My screen resolution is 1280*1024.I am using Outlook default settings.
It selects the supergrid ,but doesn't perform drag and drop.
Please provide a small snippets.
Thanks,
Sachin
Re: How to drag & drop a mail item from Inbox to Personal folder
Please show the code you have written for the select, drag, drop so we can see if something stands out.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...