mary Posted April 9, 2009 Share Posted April 9, 2009 (edited) hi!my project need to use a planning. so, is there a way to do same thing with autoit like this ? :Planning vistaor like this Edited April 9, 2009 by mary Link to comment Share on other sites More sharing options...
picaxe Posted April 9, 2009 Share Posted April 9, 2009 This and this maybe helpful. Link to comment Share on other sites More sharing options...
martin Posted April 9, 2009 Share Posted April 9, 2009 (edited) This and this maybe helpful. You could also do somewthing like this expandcollapse popup#include <GUIConstantsEx.au3> #include <staticconstants.au3> $gui = GUICreate("label over gradient", 440, 500) $vertlabs = StringSplit("Jan|Feb|mar|April|May|June|July|", "|") For $n = 1 To 8 GUICtrlCreateLabel("", 10, 50 + $n * 22, 400, 1) GUICtrlSetBkColor(-1, 0x555555) GUICtrlCreateLabel("", 10, 51 + $n * 22, 400, 1) GUICtrlSetBkColor(-1, 0xffffff) GUICtrlCreateLabel($vertlabs[$n], 12, 54 + $n * 22) Next For $n = 0 To 10 GUICtrlCreateLabel("", 10 + $n * 40, 73, 1, 7 * 22) GUICtrlSetBkColor(-1, 0) Next Dim $lab[64] $index = 1 For $n = 1 To 7 For $p = 1 To 9 $lab[$index] = GUICtrlCreateLabel("", 12 + $p * 40, 52 + $n * 22, 37, 19, $SS_NOTIFY) $index += 1; GUICtrlSetBkColor(-1, 0xffffff) Next Next GUISetState() For $n = 1 To 17 GUICtrlSetBkColor($lab[Random(0, 63, 1)], 0x0000ff) Next While 1 $Msg = GUIGetMsg() If $Msg = -3 Then Exit ;if $Msg = $lab[9] then ConsoleWrite("tNo 1" & @CRLF) Switch $Msg Case $lab[1] To $lab[63] $labNo = 0 For $n = 1 To 63 If $Msg = $lab[$n] Then $labNo = $n ExitLoop EndIf Next If $labNo <> 0 Then $row = Int(($labNo - 1) / 9) ConsoleWrite($row & @CRLF) MsgBox(262144, "you clicked", "Row " & $vertlabs[$row + 1] & ' No. ' & $labNo - ($row) * 9) GUICtrlSetBkColor($Msg, 0x00FF00) EndIf EndSwitch WEnd EDIT: added msgboix when box clicked. Edited April 9, 2009 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
mary Posted April 9, 2009 Author Share Posted April 9, 2009 Super !! Thanks a lot !! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now