我试过[DllImport("user32.dll")]静态extern bool SetCursorPos(int X,int Y);
并且它可以很好地将光标移动到所需的点.我从来没有尝试过这种类型的DLL导入,但它的工作原理:).但是我想要更多我还能提取什么?主要是我想双击,点击或使用滚轮选项而无需任何鼠标输入,只是代码我该怎么做?以及如何查看user32dll中还包含哪些内容?
感谢名单
大家好我在entityframework中有这样的代码(我想在同一时间更改很多项目我不知道我们是否可以使用这样的循环,但它会抛出这样的异常:
LINQ to Entities无法识别方法'Int32 get_Item(Int32)'方法,并且此方法无法转换为存储表达式.
码:
try
{
for (int j = 0; j < ids.Count; j++)
{
using (OzgorenEntities2 context = new OzgorenEntities2())
{
Stock st = context.Stocks.First(i => i.id == ids[j]);
st.stockAmount = amounts[j];
context.SaveChanges();
}
}
return true;
}
catch (Exception ex)
{
return false;
}
Run Code Online (Sandbox Code Playgroud)
说实话,我搜索过,只发现转换不能在服务器端工作,但我没有将它转换成可能对我有用的解决方案?
谢谢
Byte[] result = (Byte[])new ImageConverter().ConvertTo(img1, typeof(Byte[]));
//I cant use Image Converter add Image Class ? Drawing dll
MemoryStream ms = new MemoryStream();
img1.Save(ms, System.Drawing.Imaging.ImageFormat.Gif);
return ms.ToArray();
//Cannot see System.Drawing dll and there is no sth like Drawing.Imaging...
Run Code Online (Sandbox Code Playgroud)
有没有其他选项,而不是从外部源添加DLL(我的意思是我将它复制,然后将其添加为外部DLL)?我的项目是在Windows 7手机应用程序中,无法看到Drwaing.dll stj
谢谢