Jump to content

ian.b

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by ian.b

  1. @AZJIO I am using your Script (a few ButtonBars) - it is very handy indeed. I have desktop of 3 monitors (two with positive X coordinates, the third with negative X). I can place a ButtonBar anywhere moving manually or by Winmove command, but the position outside the workarea of 1st monitor is not remembered. This would not be a problem (script to position ButtonBars at the right place), but sometimes I have unexpected shuts down of my comp . Could it be caused by a ButtonBars placed outside workarea of 1st monitor? (this is my suspicion) If so - any suggestion to fix it? TIA ian EDIT: Update - Problems solved.
  2. @AZJIO Very useful and handy - thank you. I have two suggestions - enhancement (I am not sure if possible to implement them an easy way). 1. A context menu for each button to have a possibility to change the icon, if there is a problem with loading the new icon, the default one would be displayed. 2. Possibility to change the order (sequence) of a button in the ButtonBar. ian
  3. Yes, it works just fine for me - I would like to thank pingpong24 for sharing. The critical thing is to build the proper definition for used font/size, some string manipulation may be needed to remove extra dots. ian
  4. Hi As a long time AutoIt end user for my own needs, i can script many routines, but unfortunately i am not able to handle more advanced tasks - i mean DDE Server for Excel I know that there is DDEML UDF created by doudou http://www.autoitscript.com/forum/index.ph...hl=dde&st=0 There are a few forum topics dealing with DDE, especially MsCreatoR's handling urls, but i still can not create the server. I assume, that i do not have to worry about client side - Excel has the client/server build-in, and the formula: =DdemlSrv|Topic!Ithem in a cell makes the DDE connection with the DdemlSrv Server. To build the DdemlSrv to work with Excel (or any other client supporting DdemlSrv|Topic!Ithem format) i have found an kb article from Microsoft right to the point, but it is written in Visual C++, i am not able to implemment the code: http://support.microsoft.com/kb/238133 For testing purpose, i have created a simple script, where the label caption is changed randomly and it is supposed to be the Item for the DDE conversation with Excel - i have not put my "dde effort" in the code, only a few lines from doudou server example. CODE#include <ButtonConstants.au3>#include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <DDEML.au3> #include <DDEMLServer.au3> #include <DDEMLClient.au3> Opt("OnExitFunc", "CleanExit") Global $hszSrvService = 0 If $DMLERR_NO_ERROR = _DdeInitialize("OnDDE_", $APPCLASS_STANDARD) Then $hszSrvService = _DdeCreateStringHandle("DdemlSvr") ; If Not _DdeNameService($hszSrvService, $DNS_REGISTER) Then MsgBox(0, "DdemlSvr", "Failed to register service") Else MsgBox(0, "DdemlSvr", "Failed to initialize service") EndIf #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("DdemlSvr", 212, 88, 193, 115) $Label1 = GUICtrlCreateLabel("Number:", 32, 16, 44, 17) $lblNumber = GUICtrlCreateLabel("0", 112, 16, 90, 17) $btnStart = GUICtrlCreateButton("Start", 16, 48, 81, 25, 0) $btnStop = GUICtrlCreateButton("Stop", 120, 48, 73, 25, 0) GUICtrlSetTip (-1,"Sometimes it has to be pressed many times to work ?") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $btnStart _fRandomNumber (500) EndSwitch WEnd Func _fRandomNumber ($Delay) Do $No = Round (Random (-10,10),4) GUICtrlSetData ($lblNumber,$No) Sleep ($Delay) $nMsg = GUIGetMsg() Until $nMsg = $btnStop MsgBox(0,0,0,1) ;Loop is broked EndFunc ;DDE functions Func CleanExit() If 0 <> $hszSrvService Then _DdeNameService($hszSrvService, $DNS_UNREGISTER) _DdeFreeStringHandle($hszSrvService) EndIf _DdeUninitialize() ConsoleWrite("CleanExit" & @CRLF) EndFunc Could someone help me to create this server? TIA ian
  5. @doudou - thank you for this I have tried to make a simple Gui (with a label having data from a file) to work as a DDE Server for the Excel (client) - without success. Is it possible at all? - if yes, i would appreciate some advice. Best Regards ian
  6. Achilles I was unable to edit my previous post. Just in case you would like to enhance your scrip i would suggest to add: "Double click" possibility - it could speed it up - especially when score is high - my last was 43 - i wanted to "verify" my previous result option for different "direction" of the game - from right to left, top-down, down-top TIA ian PS. I hope it does not sound too childish
  7. AutoIt community. This is my first post here, so let me THANK ALL who have made this great script language possible. Achilles, thank you for this script, I use it to verify my progress in concentration and visualization - i am not a kid anymore - i do not treat this as a competition. When i reached the score 40 yesterday, I received the error : "Array variable has incorrect number of subscripts..." to wiew the screen shot of this error message go here! I checked your code and it was caused by setting the dimensions of some arrays to 41, so it was fixed easily. I would appreciate if you could add an option [i.e.. ini file?] or inside the script to select/increase the max number of created squares. This would be helpful. TIA, Best Regards ian PS. To run it with the newest version - 3.2.12.0, two new include lines must be added: #include <WindowsConstants.au3> #include <StaticConstants.au3>
×
×
  • Create New...