1024programmer Blog Comprehensive Application of Easy Language Multi-threaded API Module_Easy Language Multi-threaded Concurrent Web Access_511Meet’s Blog

Comprehensive Application of Easy Language Multi-threaded API Module_Easy Language Multi-threaded Concurrent Web Access_511Meet’s Blog

The power of any language is inseparable from the encapsulation of API calls. In Easy Language, we encapsulate the API into modules to realize the acquisition of window handles, class names, and titles, and then use the Easy Language super list box (advanced form ) will be displayed, which is convenient for our management and control.

1. Error correction process_ID to take the window handle

Change window_handle fetch thread ID to window_handle fetch process ID

Lesson 9: Lesson 9 511 Meets Easy Language Desert Module Making API Process_ID Takes Window Handle (http://v.youku.com/v_show/id_XMjcwMjMwNDk3Ng==.html)
2. API The return value of IsWindowVisible is changed from integer type to logical type

Example of multi-threaded API comprehensive application

1. Process_get ID array
2. Process_ID get window handle
3. Window_get title >
4. Window_Category Name
5. Super List Box
6. Advanced Form

Super list box source code

.Version 2
 .support library iext

 .subroutine_button1_is clicked, , , superlistbox
 .local variable process ID array, integer type, , "0"
 .local variable i, integer type
 .local variable index, integer type
 .local variable window handle, integer type
 .local variable window title, text type
 .local variable window class name, text type

 Super list box 1. Delete all ()
 process_ID array ("gamefree.exe", process ID array, )
 .Counting loop first (take the number of array members (process ID array), i)
 Index = super list box 1. insert table item (, , , , , )
 Window handle = process_ID to get the window handle (process ID array [i], , , )
 window_title = window_get_title(window_handle)
 window class name = window_get class name (window handle)
 superlistbox1.settitle(index, 0, totext(i))
 Super list box 1. Set title (index, 1, window class name)
 Super list box 1. Set title (index, 2, window title)
 superlistbox1.settitle(index, 3, totext(windowhandle))
 superlistbox1.settitle(index, 4, totext(ProcessIDArray[i]))
 .counting loop tail ()

Advanced form source code

.Version 2
 .Support Library eGrid

 .subroutine_button2_clicked, , , advanced form
 .local variable process ID array, integer type, , "0"
 .local variable i, integer type
 .local variable window handle, integer type
 .local variable window title, text type
 .Local variable bureau_window class name, text type

 Advanced Form 1. RowNumber = 1
 Advanced Form 1.Columns = 1
 .count loop first (4, )
 Advanced Table 1. Insert Column (, )
 Advanced Form 1. Set Data (0, 0, 1, "Sequence")
 Advanced Table 1. Set Column Width (1, 80)
 Advanced Form 1. Set Data (0, 1, 1, "ClassName")
 Advanced Form 1. Set Column Width (2, 120)
 Advanced Form 1. Set Data (0, 2, 1, "Title")
 Advanced Table 1. Set Column Width (3, 80)
 Advanced form 1. Set data (0, 3, 1, "window handle")
 Advanced Table 1. Set Column Width (4, 80)
 Advanced Form 1. Set Data (0, 4, 1, "Process ID")
 Advanced Table 1. Set Column Width (5, 80)
 .count loop tail ()
 process_ID array ("gamefree.exe", process ID array, )
 .Counting loop first (take the number of array members (process ID array), i)
 Advanced Form 1. Insert row (, )
 Window handle = process_ID to get the window handle (process ID array [i], , , )
 window_title = window_get_title(window_handle)
 bureau_window class name = window_get class name (window handle)
 Advanced Form 1. Set data(i, 0, 1, to text(i))
 Advanced form 1. Setting data (i, 1, 1, station_window class name)
 Advanced Form 1. Set data (i, 2, 1, window title)
 Advanced form 1. Set data (i, 3, 1, window handle)
 Advanced form 1. set data (i, 4, 1, process ID array [i])
 .counting loop tail ()

Reference: Easy language module API production series video tutorial

Easy language multi-threaded API comprehensive application practice

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/comprehensive-application-of-easy-language-multi-threaded-api-module_easy-language-multi-threaded-concurrent-web-access_511meets-blog/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索