Jump to content

jamesstp20

Active Members
  • Posts

    61
  • Joined

  • Last visited

jamesstp20's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Lol that was what I was saying in my head btw Lol at least now I came back with more information and I also improved my english Here is what I need to do AMDeviceCopyValue(AM_Device device, "UniqueChipID") ; This is how it is used in C# and Obj-c and yes the second parameter is a String Hmm I don't think it is possible to do anything with that dll in Autoit right ?
  2. Thanks but is there any way to turn screen off after the mouse is not moving for exemple 2 minutes and turning the screen on by moving the mouse ?
  3. Hello All! I made a GUI but I would like to change the mouse cursor ONLY for the GUI. The thing is that I found that which work perfectly but for everywhere in the screen and in any application Global Const $OCR_APPSTARTING = 32650 Global Const $OCR_NORMAL = 32512 Global Const $OCR_CROSS = 32515 Global Const $OCR_HAND = 32649 Global Const $OCR_IBEAM = 32513 Global Const $OCR_NO = 32648 Global Const $OCR_SIZEALL = 32646 Global Const $OCR_SIZENESW = 32643 Global Const $OCR_SIZENS = 32645 Global Const $OCR_SIZENWSE = 32642 Global Const $OCR_SIZEWE = 32644 Global Const $OCR_UP = 32516 Global Const $OCR_WAIT = 32514 _SetCursor("Project11.cur", $OCR_NORMAL) ;================================================================== ; $s_file - file to load cursor from ; $i_cursor - system cursor to change ;================================================================== Func _SetCursor($s_file, $i_cursor) Local $newhcurs, $lResult $newhcurs = DllCall("user32.dll", "int", "LoadCursorFromFile", "str", $s_file) If Not @error Then $lResult = DllCall("user32.dll", "int", "SetSystemCursor", "int", $newhcurs[0], "int", $i_cursor) If Not @error Then $lResult = DllCall("user32.dll", "int", "DestroyCursor", "int", $newhcurs[0]) Else MsgBox(0, "Error", "Failed SetSystemCursor") EndIf Else MsgBox(0, "Error", "Failed LoadCursorFromFile") EndIf EndFunc ;==>_SetCursor Cursor File : http://www.mediafire.com/?x8xf92a7u9n1rx6 Thanks !
  4. Hello, I would like to know if it's possible to: Detect wich Keydboard's key is pressed and save it on a text file. But I want to detect my keydboard pressed button everywhere.. I mean on Games, MSN, Internet..... and then at each minute save it on a text file. Thanks you !
  5. Thanls you it work !!!!! 2h 30 for only a number XD I can't believe it Thanks you !
  6. Hello, I have a big problem but I can't find why I have a FTP which have a txt file: jamesst20.megabyet.net/Commande.txt I am trying to make something that look what is the text and if the text = Update then the script update, if it = Exit then it Exit.... My problem is that when I change the text, the script is supose to know that the text has changed but it doesn't Ok I will explain better: On My script While 1 $FileName = "Commande.txt" InetGet("http://jamesst20.megabyet.net/Commande.txt", @TempDir &"/Commande.txt") $FileOpened = FileOpen(@TempDir &"/" &$FileName, 0) $FileContent = FileRead($FileOpened) FileClose($FileOpened) Sleep(20) MsgBox(0,"", $FileContent) Wend Everything works but if WHILE the script is running I change the text from my FTP, the MsgBox doesn't change and If I exit the script and reopen it, the Msgbox has changed.... Why ? I tried with _FTP_Connect and same thing --' Thanks you
  7. I would like to make something just like unlocker. That can remove any file but in autoit Edit: Everything work but I can't remove file from System32 dir because they are protected by "TrustedInstaller" but Unlocker works... How plz ?
  8. Hello, I would like to know how to remove or Move a protected file from WindowsDir. Like C:\Windows\System32\hal.dll Thanks you
  9. Hello, I would like to do a timer wich count in Hour:Minute:Second how much time my script is working. I know it's with Timer_Init and Timer_Diff but how :S Thanks you !
  10. Fine I found $sString = "AABABDSB" ConsoleWrite("Using StringSplit" & @CRLF) $aString = StringSplit($sString, "") For $i = 1 To $aString[0] If $aString[$i] = "S" Then MsgBox(0,"", $aString[$i +1]) Next
  11. Ok well now it's a little more complicated... I want to do the same thing if $Letter = "s" then If the next letter is "A" than.. Else If the next letter is B..... Thanks..
  12. Thanks to both of you !!! All those 3 methods are working fine I will take the one of UEZ because it's cleaner ^^ Thanks !
  13. Or he's having 5 IE open than he can also For $i = 1 to 5 ProcessClose("iexplore.exe") Next
  14. Hello, I would like to do something like this but I don't know how: $String = "AABABD" For Each $letter in $String : If $letter =A then.. elseif $letter = B then .... And I would like to do that with each letter of my string. Thanks
×
×
  • Create New...