Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scrolling
#2
Use toolbar with hook function.

Toolbar TB_ShowVariable:
Code:
Copy      Help
;/hook TB_ShowVariable2

Hook function TB_ShowVariable2:
Code:
Copy      Help
;/
function# hWnd message wParam lParam

sel message
,case WM_CREATE
,_s=g_var
,CreateControl 0 "Static" _s 0 0 0 50 20 hWnd 111
,SetTimer hWnd 21990 1000 0
,
,case WM_TIMER
,sel wParam
,,case 21990
,,_s=g_var; _s.setwintext(id(111 hWnd))

Test macro:
Code:
Copy      Help
int+ g_var
mac "TB_ShowVariable"
rep 10
,g_var+1
,1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)