| ZennoLab.Emulation Assembly > ZennoLab.Emulation Namespace > Emulator Class : DragAndDrop Method |
Type: System.Int32
The handle of the window.
Type: System.Int32
The x coordinate in the window for drag event.
Type: System.Int32
The y coordinate in the window for drag event.
Type: System.Int32
The x coordinate in the window for drop event.
Type: System.Int32
The y coordinate in the window for drop event.
Type: System.Int32
The handle of the window.
Type: System.Int32
The x coordinate in the window for drag event.
Type: System.Int32
The y coordinate in the window for drag event.
Type: System.Int32
The x coordinate in the window for drop event.
Type: System.Int32
The y coordinate in the window for drop event.
Type: System.String
The answer with information about the success of the current command's execution. If current command was successful then this answer is "ok"; otherwise message describing the error.
// go to page with drag and drop element if (instance.ActiveTab.IsNull || instance.ActiveTab.IsVoid) return "Fail"; instance.ActiveTab.Navigate("dragdroppage.com"); // wait downloading if (instance.ActiveTab.IsBusy) instance.ActiveTab.WaitDownloading(); // do drag and drop event return Emulator.DragAndDrop(instance.ActiveTab.Handle, 100, 100, 200);
// go to page with drag and drop element if ($instance->ActiveTab->IsNull || $instance->ActiveTab->IsVoid) return "Fail"; $instance->ActiveTab->Navigate("dragdroppage.com"); // wait downloading if ($instance->ActiveTab->IsBusy) $instance->ActiveTab->WaitDownloading(); // do drag and drop event return ZennoLab\Emulation\Emulator::DragAndDrop($instance->ActiveTab->Handle, 100, 100, 200);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.