Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/15/2014 in all areas

  1. The third problem you have is they don't allow game automation discussion on here.
    1 point
  2. I know if you go into Scite, type the word selfdelete and hit space you get a self delete function.
    1 point
  3. #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <GuiTab.au3> ; #include <MsgBoxConstants.au3> #include <Array.au3> Opt('GUIResizeMode', 802) ; see GUICtrlSetResizing Global $hTab Global $hCoverLabel Example() Func Example() Local $aRect, $sRect, $hTab ; Create GUI GUICreate("Tab Control Get Display Rect", 400, 300, -1, -1, $WS_OVERLAPPEDWINDOW + $WS_POPUP) $hTab = GUICtrlCreateTab(10, 10, 380, 280) GUICtrlSetResizing(-1, 2+4+32+64) GUISetState(@SW_SHOW) ; Add tabs GUICtrlCreateTabItem("Tab 0") GUICtrlCreateTabItem("Tab 1") GUICtrlCreateTabItem("Tab 2") GUICtrlCreateTabItem("") ; Get empty tab display rectangle Local $aRect1 = _GUICtrlTab_GetItemRect($hTab, 2); xul, yul, xlr, ylr Local $aRect2 = _GUICtrlTab_GetDisplayRect(GUICtrlGetHandle($hTab)); xul, yul, xlr, ylr ;_ArrayDisplay($aRect1) ;_ArrayDisplay($aRect2) $hCoverLabel = GUICtrlCreateLabel('', $aRect1[2] + 10, 10, ($aRect2[0] + $aRect2[2]) - $aRect1[2], $aRect2[1]) GUICtrlSetResizing(-1, 2+4+32+512) GUICtrlSetBkColor(-1, 0xff0000) ; Loop until the user exits. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example
    1 point
  4. Solved my own problem, it´s debatable if its the best solution but certainly good enough for me: GUICtrlSendMsg($RunCommands[11][2],$BM_CLICK,0,0) This simulates a button click on button $RunCommands[11][2]
    1 point
×
×
  • Create New...