腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(1490)
视频
沙龙
1
回答
同步使用
GetWindowText
windows
、
winapi
我不太明白
GetWindowText
如何在与调用者处于同一线程的窗口上工作。如果
GetWindowText
阻塞,直到消息被处理,线程如何调用DispatchMessage?它在
GetWindowText
内部被屏蔽了。这是否意味着必须始终从操作消息循环的线程中调用
GetWindowText
?
浏览 5
提问于2012-02-19
得票数 2
回答已采纳
2
回答
如何在powershell中使用
GetWindowText
API函数?
powershell
、
powershell-2.0
、
powershell-3.0
、
powershell-4.0
如何在powershell中使用
GetWindowText
API函数?System.Runtime.InteropServices; [DllImport("user32.dll")]$stringbuilder.Capacity =256$WindowTitless = $Impor
浏览 1
提问于2016-11-01
得票数 1
回答已采纳
1
回答
C++新手,将字符串放入结构中
c++
、
winapi
、
struct
int gwtstat = 0; /* Get Window Status from "
getwindowtext
" function*/gwtstat =
GetWindowText
(secondName, &submit.secondName[0], 30); //gwtstat =
GetWi
浏览 16
提问于2017-03-03
得票数 0
回答已采纳
2
回答
AfxMessageBox -访问违规
c++
、
visual-c++
、
mfc
、
lptstr
从AfxMessageBox内部启动CDialog的代码mainPassword.
GetWindowText
((LPTSTR)temp,100); CString cstr;
浏览 8
提问于2016-11-23
得票数 2
回答已采纳
2
回答
为什么
GetWindowText
挂起的是一个“关闭”的句柄,而不是随机句柄
c#
、
winapi
、
api
、
handle
使用以下代码 private static extern int
GetWindowText
(IntPtr hWnd, StringBuilder lpWindowText, int nMaxCount); public static String
浏览 2
提问于2011-03-26
得票数 5
回答已采纳
1
回答
输入"10“输出1.0从字符串到浮点型版本2
winapi
textfield = GetDlgItem(hwnd,(WM_USER+1001));
GetWindowText
浏览 1
提问于2011-11-29
得票数 0
回答已采纳
1
回答
std::Win32 API的字符串/std::wstring模板包装器
c++
、
template
、
windows
、
winapi
我的问题是:取消定义Windows宏(例如#undef
GetWindowText
)是否可以接受?除了更改名称方案(例如,
getWindowText
或GetWindowString相对于
GetWindowText
)之外,是否还有更好的方法来做到这一点?我不想改名字。template<> int GetWindowTextLength<char>(HWND hWnd) { return ::GetWindowTextLengthA(hWnd); } #undef
GetWindowText<
浏览 0
提问于2013-04-28
得票数 3
回答已采纳
2
回答
GetWindowText
()抛出错误且未被try/catch捕获
c#
、
exception-handling
、
try-catch
、
user32
当我为
GetWindowText
运行下面的代码时,我会得到以下作为内部异常引发的错误: internal static extern int
GetWindowText
(IntPt
浏览 10
提问于2012-06-01
得票数 4
回答已采纳
1
回答
从CRichEdit获取文本的最好方法?
c++
、
mfc
、
crichedit
我有一个CRichEdit,我需要从它获取文本。做到这一点的最好方法是什么?GETTEXTEX( StreamOut(如果我采用StreamOut方法,我的回调会是什么样子?
浏览 1
提问于2010-06-03
得票数 0
回答已采纳
1
回答
同一进程中窗口的GetWindowTextLength挂起
c#
、
winforms
、
winapi
问题是询问
GetWindowText
(长度)何时可以挂起的一些起点。public static string
GetWindowText
(IntPtr hWnd) //get hang here
GetWindowText
也将在这一点上悬着。很有可能是因为,即当监视器被打开/关闭时,某些系统窗口会被关闭,而监视器在事件发生之前被枚举,在事件之后使用。
浏览 5
提问于2020-11-30
得票数 0
7
回答
函数返回std::wstring = NULL;
c++
、
exception-handling
、
error-handling
我尝试为winapi函数
GetWindowText
制作包装器。函数返回std::wstring,但我不知道如何处理发生错误的位置。我返回NULL,但我知道这是错误的。std::wstring
GetWindowText
(HWND handle) const int size = 1024; wnd_text, size); if(SUCCEEDED
浏览 1
提问于2011-05-01
得票数 4
回答已采纳
5
回答
TCHAR[]、LPWSTR、LPTSTR和GetWindow文本函数
c++
、
string
、
winapi
、
tchar
因此,
GetWindowText
在MSDN上声明如下: HWND hWnd, int nMaxCount);TCHAR[255] WTitle; 然后调用函数
GetWindowText
(hWnd,Wtitle,255);,因为LPTSTR是指向tchar当使用TCHAR[]时,程序返回有效的
GetWindowText
结果(它是一个整数,等于标题中的符号数)。问题
浏览 0
提问于2010-02-10
得票数 0
回答已采纳
2
回答
Python类型:带有LPCSTR [out]参数的原型
python
、
winapi
、
prototype
、
ctypes
、
user32
不过,这一次我想进一步处理,使用函数原型,而不是用ctypes.windll.user32.
GetWindowText
调用函数。尽管我在将lpString争论声明为输出参数时遇到了问题。我的第一次尝试是这样的: ("hWnd",HWNDnMaxCount",c_int,1)(cfunc是一个小包装器,我找到了) 这
浏览 0
提问于2012-06-05
得票数 2
回答已采纳
1
回答
如何正确获取窗口标题
c++
、
windows
、
winapi
我可以执行以下操作以获得另一个应用程序的窗口标题LRESULT lResult = SendMessageA(pMouseHook->hwnd, WM_GETTEXT, sizeof(window_text) / sizeof(*window_text), (LPARAM)window_text);或者我应该首先分配全局内存并使用它而不是本地char数组?
浏览 1
提问于2015-08-07
得票数 0
回答已采纳
3
回答
托管C++方法命名
.net
、
windows
、
c++-cli
我使用以下签名在我的头文件中声明了该方法:但是,当我在C#中使用这个方法时,签名是:如何去掉方法名末尾多余的
浏览 3
提问于2008-09-19
得票数 2
回答已采纳
3
回答
在GetDlgItem()之后修剪GetDlgItem()
c++
、
mfc
、
trim
、
c-strings
(height); pWnd->
GetWindowText
(weight); pWnd->
GetWindowText
(age); pWnd->
GetWindowText
(haircolor); pWnd->
GetWindowText
(eyeco
浏览 4
提问于2015-10-26
得票数 1
回答已采纳
2
回答
如何获得不属于我的应用程序的活动窗口?
c#
、
.net
、
pinvoke
如何获得用户当前关注的窗口标题?我正在制作一个与另一个窗口一起运行的程序,如果用户不关注该窗口,我发现我的程序没有理由继续更新。我确实试着去调查static extern IntPtr GetActiveWindow();
浏览 4
提问于2015-10-06
得票数 6
回答已采纳
1
回答
c#中的
GetWindowText
返回矩形而不是文本
c#
、
winapi
、
pinvoke
GetWindowTextLength(windows[0]);int a =
GetWindowText
Windows中有我可以在Spy++中看到的文本,但是
GetWindowText
方法返回的是outText矩形,而不是这个文本。我得到{慬潹瑵潃瑮潲ㅬ} (在可视化和记事本中,此中文符号显示为矩形。
浏览 0
提问于2012-03-03
得票数 6
回答已采纳
1
回答
如何使用python获取窗口标题并每隔100ms扫描一次?
python
、
win32gui
nouse): titles.add(
GetWindowText
浏览 1
提问于2012-04-18
得票数 7
回答已采纳
1
回答
检测到FatalExecutionEngineError
.net
在我的.net应用程序中使用非托管动态链接库时,遇到异常“运行库遇到致命错误。错误的地址是线程0xbb4上的0x79e71bd7。错误代码是0xc0000005。此错误可能是CLR中的错误,也可能是用户代码的不安全或不可验证部分的错误。此错误的常见来源包括COM-interop或PInvoke的用户封送错误,这可能会损坏堆栈。”[DllImport("ITMSDLL.dll")] internal static extern int get_month_mask(ref String theMask,ref String theByt, int theS
浏览 1
提问于2010-03-19
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
解惑:关于Unicode字符串的一些名词解释
一键复制Win10对话框窗口中的文字符
借助API实现黑盒自动化测试工具的编写
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券