dir sir
my code like ...
$oUpdate = _IEGetObjById ($_oIE, "ctl00_ContentPlaceHolder1_lbtnRefresh")
_IEAction($oUpdate,"click")
;_IELoadWait ($_oIE);; not work ! because she is an ajax btn
how do i know the time when callback function done !?
thank u
dear sir
how could i set the BKcolor of the ListView's column's header ?
thanks
;...
GUICreate("my-mate", 300, 500,@DesktopWidth - 300, 0)
;...
$oMyList = GUICtrlCreateListView("", 10, 280, 280, 200)
_GUICtrlListView_AddColumn($oMyList, "stats", 200); i need a indicated width
GUICtrlSetBkColor(-1, 0xffffee); i want a bkcolor of header , not all the listviewctrl (like now) !
Dear Sir
there is a line in my script showed below
$myChildAPP = Run("SMS_1.exe", @WorkingDir, @SW_HIDE, $STDIN_CHILD + $STDOUT_CHILD)
she works well now , but
my question is :
1)
suppose there are 2 .exe file in user's PC with the same name "SMS_1" then
which .exe file would be run ?
2)
the parameter @WorkingDir could be any path i want , am i right ?
thanks
..................................................................................$oMyError = ObjEvent("AutoIt.Error","MyErrFunc") is lined for the global $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") and local $oTranslate = ObjCreate("adodb.stream") .................................................................................... the help file said that is needed when some COM object in your code . what should i do ? remove all them ? ------------------------------------------------------------ sorry @someone , for misunderstanding your meaning !
Dear Sir
my script looks like ..
...
_IEErrorHandlerRegister ()
$oMyError = ObjEvent("AutoIt.Error","MyErrFunc")
...
but i always got a warnning like ...
-----------------------------------------------------------
--> COM Error Encountered in xxxxx.au3
----> $IEComErrorScriptline = 20
----> $IEComErrorNumberHex = 00000002
----> $IEComErrorNumber = 2
----> $IEComErrorWinDescription = Can't install a new Errorhandler when one is still active.
----> $IEComErrorDescription =
----> $IEComErrorSource =
----> $IEComErrorHelpFile =
----> $IEComErrorHelpContext =
----> $IEComErrorLastDllError = 0
-------------------------------------------------------------
and
when i removed the line
_IEErrorHandlerRegister ()
i got the com error always when running any _IE prefix function
what should i do ?
thanks
Dear Sir
my script look like ...
:-----------------------------------------
;
;
sub1()
sub2()
;....
sub()100()
:...
;
;
;
;----------------------------------------
suppose these subs are all independent !
how could i let them run at the same time ?
for improving performance
Dear sir 1) Thanks 2) how do i understanding the knowledge about "Windows Message Codes" and it"s meaning deeply ? 3) the 'GUIRegisterMsg(0x000F,"MY_PAINT")' seem could place any where ? so which $hWnd will be sent to MY_PAINT when the WM_PAINT be fired ? (suppose there are many GUI Windows ..) 4) is there any example would return some thing not "$GUI_RUNDEFMSG" ?
Dear sir below is a sample code from autoit help file . she will draw a line at gui . #include <GuiConstantsEx.au3>
#include <GDIPlus.au3>
Opt('MustDeclareVars', 1)
_Main()
Func _Main()
Local $hGUI, $hWnd, $hGraphic, $hPen
; Create GUI
$hGUI = GUICreate("GDI+", 400, 300)
$hWnd = WinGetHandle("GDI+")
GUISetState()
; Draw line
_GDIPlus_Startup ()
$hGraphic = _GDIPlus_GraphicsCreateFromHWND ($hWnd)
$hPen = _GDIPlus_PenCreate ()
_GDIPlus_GraphicsDrawLine ($hGraphic, 10, 150, 390, 150, $hPen)
; Loop until user exits
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
; Clean up resources
_GDIPlus_PenDispose ($hPen)
_GDIPlus_GraphicsDispose ($hGraphic)
_GDIPlus_Shutdown ()
EndFunc ;==>_Main my question is : when i drag the gui window and move it , the line show constant like other controls at gui . while i minimize the gui and then reshow the gui window . the graphic disappear !!! she would disappear too when some window cross like a [rubber] cross . how to make the drawn graphic show constantly ?
oh , 1 more questions please . is that meaning : i could set the $sOccurenceName all like "my1234768secret" in mycode1.au3 , mycode2.au3 and so on then then i could let mycode1.au3 and mycode2.au2 .... COULD NOT be executed at the same time ?!!