Jump to content

netegg

Active Members
  • Posts

    148
  • Joined

  • Last visited

Everything posted by netegg

  1. Would you like to improve this with the motion,like rotating
  2. maybe not yet, i got the code on autoit.de, it's suitable for running.
  3. why can‘t run? windows 8.1
  4. Hi, Yahied, I find that I can not change display resolution from 800x600 to 1376x768(max resolution) by using function_winapi_changescreenresex. How could I do?
  5. _Quotient(64,7) return 0?
  6. thanks, but not resize a column this time. that is how to disable click a item? for example, there is some listviewitem with multi column 'item|subitem|subitem....', then item cannot be clicked while the subitem can
  7. who can give some ideas to create a listview with disable the item(the first column) click but subitem(others) can?
  8. Removing 'continuecase' is not the same as the first code. And, Yes, I know that it can use 'if..then' to do this. I was just puzzled if the sequence causes the difference, and why.
  9. Today, I encountered a strange problem when i use the select. . .case statement. I really do not understand where there is an error.The following code is simplified, just to describe what the problem is. Select Case ProcessExists('explorer.exe') MsgBox(64, 0, 1) ContinueCase Case ProcessExists('sys.su') ;this is not a real process. but.... MsgBox(64, 0, 2) ContinueCase Case ProcessExists('winlogon.exe') MsgBox(64, 0, 3) EndSelect That's why?Does the ContinueCase cause?Or the condition of 'case 0' is True? But the below is different. Select Case ProcessExists('sys.su') ;this is not a real process. and the msgbox will not show MsgBox(64, 0, 2) ContinueCase Case ProcessExists('explorer.exe') MsgBox(64, 0, 1) ContinueCase Case ProcessExists('winlogon.exe') MsgBox(64, 0, 3) EndSelect
  10. this will disable all columns, is it possible to disable just one column (for example, the first column)?
  11. I've tried this function,but the word and icon in the part can't be moved the proper position. Could it do?
  12. As the title, how to use a button or a message to change parts' number of a statuse bar, such as from 3 to 4?
  13. Hi, Yashied, the Standard Access Rights consts are in SecurityConstants.au3 file, should it be marked comment?
  14. Thanks, uez, This is my question. I've tried it two days, but can't I get a better solution. a checkbox followed by group of radios, when unchecked checkbox, disable the radios,and enable when checked. Here is my code. #include <GUIConstantsEx.au3> Example() Func Example() Local $msg, $checkbox[3], $radio[5] GUICreate("My GUI Checkbox") $checkbox[0] = GUICtrlCreateCheckbox("CHECKBOX 1", 10, 10, 120, 20) For $i = 0 To 4 $radio[$i] = GUICtrlCreateRadio('radio', 10, ($i + 2) * 20, 130.20) GUICtrlSetState(-1, $gui_disable) Next GUISetState() While 1 $msg = GUIGetMsg() If $msg = $checkbox[0] Then For $i = 0 To 4 ; GUICtrlSetState($radio[$i], BitShift(GUICtrlRead($checkbox[0]), -5) * (BitAND(GUICtrlRead($checkbox[0]), 1) + 1)) ; GUICtrlSetState($radio[$i], BitShift(BitShift(GUICtrlRead($checkbox[0]), -5), - BitAND(GUICtrlRead($checkbox[0]), 1))) GUICtrlSetState($radio[$i], BitShift(GUICtrlRead($checkbox[0]), -5-BitAND(GUICtrlRead($checkbox[0]), 1))) Next EndIf If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd EndFunc ;==>Example Pls have a look! I know there're some mistakes, but I can't get it!
  15. first, how to convert a negative int to binary, like -3, -5? second, how to do subtract or add using bit* , as above -3-5 or -3 + (-5)?
  16. ProgAndy, Thanks you for your answer! Ok, i will continue to try! And thank you for your other two functions(_crypt*)! More: Thanks again! I got it. You are quitely right!
  17. maybe this link
  18. Hi ProgAndy, Another question. Which one is exactly or more correct between with crypt api and with _des*(callwindowproc function)? I think that the answer will decide the trans- method! Thanks!
  19. well, good job! but, now, i have a puzzle. i try to use the _crypt* udf with some algorithm that marked in msdn but i cannot get the same result between them? #include'des.au3' #include<crypt.au3> local $CALG_DES = 0x00006601 ; http://msdn.microsoft.com/en-us/library/ms937014.aspx Dim $hKey=_Crypt_DeriveKey("The Key", $CALG_DES) Dim $Encrypt = _Crypt_EncryptData("The quick brown fox jumped over the lazy dog", $hKey, $CALG_USERKEY) & @crlf $Encrypt &= _DesEncrypt("The Key", "The quick brown fox jumped over the lazy dog") MsgBox(0, 'Encrypt String by DES Algorithm', $Encrypt) anybody would like to help?
  20. Sorry! I remember!
  21. i got it! Func _Console_ReadConsoleOutputCharacter($hConsoleOutput, $nNumberOfCharsToRead, $iX, $iY, $fUnicode = Default, $hDll = -1) Local $tCoord, $tBuffer, $aResult, If $fUnicode = Default Then $fUnicode = $__gfUnicode If $hDll = -1 Then $hDll = DllOpen("kernel32.dll") If $hConsoleOutput = -1 Then $hConsoleOutput = _Console_GetStdHandle($STD_OUTPUT_HANDLE, $hDll) $tCoord = BitShift($iY, -16) + $iX If $fUnicode Then $tBuffer = DllStructCreate("wchar[" & ($nNumberOfCharsToRead + 1) & "]") $aResult = DllCall($hDll, "bool", "ReadConsoleOutputCharacterW", _ "handle", $hConsoleOutput, _ "ptr", DllStructGetPtr($tBuffer), _ "dword", $nNumberOfCharsToRead, _ "dword", $tCoord, _ "dword*", 0) Else $tBuffer = DllStructCreate("char[" & ($nNumberOfCharsToRead + 1) & "]") $aResult = DllCall($hDll, "bool", "ReadConsoleOutputCharacterA", _ "handle", $hConsoleOutput, _ "ptr", DllStructGetPtr($tBuffer), _ "dword", $nNumberOfCharsToRead, _ "dword", $tCoord, _ "dword*", 0) EndIf If @error Or (Not $aResult[0]) Then Return SetError(@error, @extended, "") Return SetExtended($aResult[4], DllStructGetData($tBuffer, 1)) EndFunc ;==>_Console_ReadConsoleOutputCharacter
  22. how can I get the progress in console ----- the number of the points ? sorry for title
×
×
  • Create New...