
alexischeng
Active Members-
Posts
31 -
Joined
-
Last visited
Everything posted by alexischeng
-
Is there any way using autoit to split files ? I saw there is binary r/w support for autoit, suppose there should be a way to use it in file split.
-
Hi, Is there any way to read pop3 emil headers using AutoIt?
-
Hi, As I know the mouse wheel scroll up and down function is detect by Window itelf (i.e. done by the mouse driver) and what yu can get is the result of the scroll , like up/down arrow key. So I use a hidden slider window to detect it. See if anyone could have other ideas.
-
Try This one! And pls comment! #include <GUIConstants.au3> $test=100 $test2=100 GUICreate("Test_Mouse_Wheel",220,100, 100,200) GUISetBkColor (0x00E0FFFF) ; will change background color $slider1 = GUICtrlCreateSlider (10,10,200,20) GUICtrlSetLimit(-1,200,0) ; change min/max value $button = GUICtrlCreateButton ("Stop",75,70,70,20) GUISetState() GUICtrlSetData($slider1,100) ; set cursor Do $test=GUICtrlRead($slider1) if $test>$test2 then $test1=GUICtrlSetData ($button,"Down") endif if $test<$test2 then $test1=GUICtrlSetData ($button,"Up") endif sleep (100) $test1=GUICtrlSetData ($button,"Stopped") ;$test1=GUICtrlSetData ($button,$test) GUICtrlSetState($slider1,$GUI_FOCUS+$GUI_HIDE) $test2=$test sleep (100) $n = GUIGetMsg () until $n = $GUI_EVENT_CLOSE
-
Internet Explorer Automation UDF library
alexischeng replied to DaleHohm's topic in AutoIt Example Scripts
Thanks a lot! I think I need to have more example on how to use those function, actually where can I find examples for those functions? And Is there a list of all the object that I can use? -
Internet Explorer Automation UDF library
alexischeng replied to DaleHohm's topic in AutoIt Example Scripts
Can anyone teach me how to get the current weather from the following site? http://pda.hko.gov.hk/wxreporte.htm <HTML> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title> Current Weather </title> </head> <body bgcolor="#d7f0ff" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="220" border="0" cellspacing="0" cellpadding="5"><tr><td valign="top"> <p align="center"><img src="/img/logo_dblue.jpg" alt="Hong Kong Observatory Logo" width="220"></p> <p>Bulletin updated at 09:02 HKT <br>10/ Sep /2005</p> <p></p> <p align="center"><b><u>Current Weather</u></b></p> AT 9 A.M. AT THE HONG KONG OBSERVATORY :<br> AIR TEMPERATURE : 28 DEGREES CELSIUS<br> RELATIVE HUMIDITY : 78 PER CENT <p></p>DURING THE PAST HOUR THE MEAN UV INDEX RECORDED AT KING'S PARK : 2<br> INTENSITY OF UV RADIATION : LOW<br><font color="red"></font><p>THE AIR TEMPERATURES AT OTHER PLACES WERE:</p> <table width="220" border="0" cellspacing="0" cellpadding="5"> <tr> <td>KING'S PARK</td> <td>28 DEGREES ;<br> </td> </tr> <tr> <td>WONG CHUK HANG</td> <td>28 DEGREES ;<br> </td> </tr> <tr> <td>TA KWU LING</td> <td>27 DEGREES ;<br> </td> </tr> <tr> <td>LAU FAU SHAN</td> <td>26 DEGREES ;<br> </td> </tr> <tr> <td>TAI PO</td> <td>27 DEGREES ;<br> </td> </tr> <tr> <td>SHA TIN</td> <td>28 DEGREES ;<br> </td> </tr> <tr> <td>TUEN MUN</td> <td>28 DEGREES ;<br> </td> </tr> <tr> <td>TSEUNG KWAN O</td> <td>28 DEGREES ;<br> </td> </tr> <tr> <td>SAI KUNG</td> <td>28 DEGREES ;<br> </td> </tr> <tr> <td>CHEUNG CHAU</td> <td>27 DEGREES ;<br> </td> </tr> <tr> <td>CHEK LAP KOK</td> <td>28 DEGREES ;<br> </td> </tr> <tr> <td>TSING YI</td> <td>28 DEGREES ;<br> </td> </tr> <tr> <td>SHEK KONG</td> <td>28 DEGREES .<br> </td> </tr> </table> <p></p>BETWEEN MIDNIGHT AND 9 A.M. THE MINIMUM TEMPERATURE WAS 26.8 DEGREES CELSIUS AT THE HONG KONG OBSERVATORY.<br> </td></tr></table> <a href="maine.htm"><img src="img/home.gif" alt="home" border="0"></a><a href="maine.htm#report"><img src="img/back.gif" alt="back" border="0"></a> </body> </HTML> -
I know if yu open task manager and check the status bar, yu can get the cpu %. Is there an example to doing that? Is there any other method rather than using task manager?
-
If yu are using Norton Antivirus, Yu will properly know that Norton liveupdate will normally update once a week on Wednesday, but sometimes it's not enough, as virus spent rapidly and Norton tell yu that yu can update the pattern manually, but its quit tedious as yu need to click,click,. everyday. Here comes the script to automatically update the pattern using manual update. Norton_Patten_AutoManual_Update.au3
-
I modify this code but I can't see any memory usage reduced. Is there anything wrong? Func _ReduceMemory1($iPID = -1) Local $aHandle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1F0FFF, 'int', False, 'int', $iPID), $aReturn = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', $aHandle[0]) DllCall('kernel32.dll', 'int', 'CloseHandle', 'int', $aHandle[0]) Return $aReturn[0] EndFunc ;==>_ReduceMemory() Func _ReduceMemory2($i_PID = -1) If $i_PID <> -1 Then Local $ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $i_PID) Local $ai_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', $ai_Handle[0]) DllCall('kernel32.dll', 'int', 'CloseHandle', 'int', $ai_Handle[0]) Else Local $ai_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', -1) EndIf Return $ai_Return[0] EndFunc;==> _ReduceMemory() Local $newlist,$oldlist while 1 $list = ProcessList() $newlist=$list[0][0] If $oldlist<>$newlist Then for $i = 1 to $list[0][0] $pid=$list[$i][1] _reducememory1($pid) _reducememory2($pid) next $oldlist=$newlist EndIf sleep (5000) WEnd
-
Hi, Just use Outlook security patch which can fix the problem! http://www.slipstick.com/outlook/esecup/getexe.htm
-
Thanks a lot!!
-
Hi, I want to know how to create a script in order to drag a file onto it and then the script will execute and open the file?
-
Hi, The script will shutdown the machine only when the mouse button pressed in right sequence (i.e. left then middle then right) and it will not function for (right then left then middle etc) 3 button mouse need Pls comment.. shutdown_m.au3
-
Hi, I saw BCX have peek & poke function, RetStr$ = PEEK$(Address%, Count%) POKE(Destination%, Source$, Count%) Can it be done to gen dll & use dllcall in Au3? I still can't under what the gamedll.dll do! Can anyone explain it?
-
I got a problem everytime I install some SQL server onto notebooks, the pagefile will not 'enlarge' automatically as expected, thats why I need to change the pagefile manually or the computer can't be boot up. Alexis Cheng
-
Is this the proper way to set pagefile? Script Function: ; Change pagefile size ; $init = init size ; $max = maximum size (4095 max) ; Remark : Reboot to take effect ; ---------------------------------------------------------------------------- $init="3000" $max="4095" $par1="c:\pagefile.sys "&$init&" "&$max $keyname="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" $valuename="PagingFiles" RegWrite($keyname, $valuename, "REG_MULTI_SZ", $par1) Change_Pagefile_size.au3
-
Larry May I know how to use this in dllcall? Private Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef _ lpSFlags As Long, ByVal dwReserved As Long) As Long Const INTERNET_CONNECTION_MODEM = 1 Const INTERNET_CONNECTION_LAN = 2 Const INTERNET_CONNECTION_PROXY = 4 Const INTERNET_CONNECTION_MODEM_BUSY = 8 ' return True if there is an active Internect connection ' ' optionally returns the connection mode through ' its argument (see INTERNET_CONNECTION_* constants) ' 1=modem, 2=Lan, 4=proxy ' 8=modem busy with a non-internet connection
-
Larry, Just an idea for the DLLCALL, since yu can wait until all the functions added into the Au3 before yu can be lunch a release version. Why not just update a list for the dllcall so that yu can enrich the functions Au3 later after the offical release. Just an example: For the functions in Au3 like FileCopy it can use the api function: Private Declare Function CopyFile Lib "kernel32.dll" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long ;Copy a file called test.bat to test1.bat it can be DLLCALL ("kernel32.dll","int","CopyFile","str","test.bat","str",test1.bat") So now, yu can delete the function for FileCopy, and add the file copy in Appendix saying that user can use dllcall to have filecopy. The adventage is the menu is getting smaller, and people can enrich the function without alter the offical release. It's just an idea, pls commend in advance Alexis Cheng,
-
Change the Beep frequency Duration is produce a simple simple piano program ;$freq is the frequency ;$dur is the duration $freq = 2000 $dur = 1000 DLLCall("kernel32.dll","int","Beep","long",$freq,"long",$dur); Alexis Cheng, Beep.au3
-
I am not sure but I just try some examples in VB, this function works. What I want is to apply some examples for VB in AU3 so that we can expand the usage of AU3. Alexis Cheng
-
Just like the function below: Private Declare Function SetGraphicsMode Lib "gdi32.dll" (ByVal hdc As Long, ByVal iMode As Long) As Long How to apply it in DLLCALL?
-
; 1 means alive ; 0 means disconnect $x =DLLCall("SENSAPI.dll","int","IsNetworkAlive") msgbox (4096,"TEST",$x[0]) is_network_alive.au3
-
Is there any way to get more details on how to use dllcall function? I just found some windows api function and some works on dllcall but some not! Swapmouse buttons 1 to swap left button with right button 0 to restore DLLCall("user32.dll","int","SwapMouseButton","int",1); Swap Button DLLCall("user32.dll","int","SwapMouseButton","int",0);Swap Back swapmouse.au3
-
I want to make something like Sony "Jog" and I can call up the program but I can't get forcus back to my script afterwards. Script attached & this is the prog.ini file [prog_id] 0=CMD 1=MS Word 2=MS Excel 3=MS Outlook 4=MS PowerPoint 5=Blank 6=Blank 7=Blank 8=Blank 9=Blank [Prog_path] 0=cmd 1=c:\program files\Microsoft Office\Office11\WinWord.exe 2=c:\program files\Microsoft Office\Office11\Excel.exe 3=c:\program files\Microsoft Office\Office11\Outlook.exe 4=c:\program files\Microsoft Office\Office11\PowerPNT.exe 5= 6= 7= 8= 9= [Prog_proc] 0=cmd.exe 1=winword.exe 2=excel.exe 3=outlook.exe 4=powerpnt.exe 5= 6= 7= 8= 9= Jog.au3
-
Can I read mousewheel when the mouse wheel move (Up & Down)?