Jump to content

Sn0opy

Active Members
  • Posts

    61
  • Joined

  • Last visited

About Sn0opy

  • Birthday 01/04/1990

Sn0opy's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Melba23, that's EXACLTY wat I was looking for. Thank you
  2. Hey, I'm trying to create a searchable listview. I've got an input field where you can enter a keyword and the listview will show only matching results. The clue: i want a live search. Everytime you enter / remove a letter in that input box the listiew should update. Any idea?
  3. Umm, something is missing in my AutoIt Installation i think. When I try to start an au3irrlicht Demo, the programm returns CreateDevice( $EDT_DIRECT3D8, 800, 600, 32, 0, 0, 0 ) ^ ERROR Error: Unknown function name. Any ideas?
  4. Recieving XP very fast. Nothing more.
  5. What about using this small snippet to find the embedded Farmville window? Func findMyFarm() $searchFor = 0x43A143 ;green color beside your farm. Even in the top left corner $coords = PixelSearch(0,0, @DesktopWidth, @DesktopHeight, $searchFor) if $coords <> 0 Then MsgBox(0, "gefunden!", $coords[0] & "," & $coords[1]) EndIf EndFunc That would fix the resolution problem, because the Farmville window will even have the same size -> 757x594px (except in fullscreen)
  6. You can't. But you can search for different pixels on that button.
  7. Hm, this won't work everytime, because ther're steam IDs looking like this too: STEAM_1:1:1234567 STEAM_0:1:1234567 And you can't calculate the first two numbers.
  8. But it would be awesome, like in the movie "Home Alone" (Kevin allein zu Haus in Gemany), if someone knocks on your door and a cruel voice screams at him, while you sitting in the garden to see the guy running out of your house Think i'll have a look at it later. Maybe i can find an easyer way to detect it.
  9. I modified Saunders version #Include <GDIPlus.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> Global Const $AC_SRC_ALPHA = 1 Global Const $ULW_ALPHA = 2 _GDIPlus_Startup() $sImg = @ScriptDir & '\Navi.png' $hImage = _GDIPlus_ImageLoadFromFile($sImg) $iWidth = _GDIPlus_ImageGetWidth ($hImage) $iHeight = _GDIPlus_ImageGetHeight($hImage) $iCount = 0 $gui = GUICreate('Navi', $iWidth, $iHeight, Default, Default, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOOLWINDOW, $WS_EX_TOPMOST)) _SetBitMap($GUI, $hImage, 255) GUISetState() Dim $aText[2] = [ '\hey.mp3', '\listen.mp3' ] Global $iTimer = TimerInit() Global $iTextRand = Random(0, 1, 1) Global $iTextTime = Random(3, 5, 1) * 1000 While 1 If GUIGetMsg() = -3 Then Exit $aMouse = MouseGetPos() $iCount += 1 $iX = $aMouse[0] + $iWidth + Cos($iCount / 30) * 40 $iY = $aMouse[1] - ($iHeight * 2) + Sin($iCount / 15) * 20 If TimerDiff($iTimer) > $iTextTime Then SoundPlay(@ScriptDir & $aText[$iTextRand]) ;ToolTip($aText[$iTextRand], $iX + $iWidth, $iY + $iHeight, '', 0, 0) If TimerDiff($iTimer) > $iTextTime + 1000 Then $iTextRand = Random(0, 1, 1) $iTextTime = Random(3, 5, 1) * 1000 $iTimer = TimerInit() ;ToolTip('') EndIf EndIf WinMove($gui, '', $iX, $iY) Sleep(10) WEnd Func _SetBitMap($hGUI, $hImage, $iOpacity) Local $hScrDC, $hMemDC, $hBitmap, $hOld, $pSize, $tSize, $pSource, $tSource, $pBlend, $tBlend $hScrDC = _WinAPI_GetDC(0) $hMemDC = _WinAPI_CreateCompatibleDC($hScrDC) $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) $hOld = _WinAPI_SelectObject($hMemDC, $hBitmap) $tSize = DllStructCreate($tagSIZE) $pSize = DllStructGetPtr($tSize ) DllStructSetData($tSize, "X", _GDIPlus_ImageGetWidth ($hImage)) DllStructSetData($tSize, "Y", _GDIPlus_ImageGetHeight($hImage)) $tSource = DllStructCreate($tagPOINT) $pSource = DllStructGetPtr($tSource) $tBlend = DllStructCreate($tagBLENDFUNCTION) $pBlend = DllStructGetPtr($tBlend) DllStructSetData($tBlend, "Alpha" , $iOpacity ) DllStructSetData($tBlend, "Format", $AC_SRC_ALPHA) _WinAPI_UpdateLayeredWindow($hGUI, $hScrDC, 0, $pSize, $hMemDC, $pSource, 0, $pBlend, $ULW_ALPHA) _WinAPI_ReleaseDC (0, $hScrDC) _WinAPI_SelectObject($hMemDC, $hOld) _WinAPI_DeleteObject($hBitmap) _WinAPI_DeleteDC ($hMemDC) EndFunc Download these files: http://sascha.kiloswiss.ch/uploads/files/sounds/hey.mp3 http://sascha.kiloswiss.ch/uploads/files/sounds/listen.mp3
  10. it's totally useless. navi is just a small elfe which helpes zelda to find thinks or give him tips. @Saunders: Could you upload the GDIPlus.au3 pls?
  11. Umm, but i don't want to open a homepage i want to connect to a IRC-Server.
  12. Hey there, it was easy for me, to connect to IRC with Autoit. But that's not my problem. Is it possible to connect to IRC through a proxy? I tried to use the HTTPSetProxy() function, but failed. It's still connecting with my normal IP. Any ideas?
  13. The design looks like a Theme of Reinlendar
  14. Bug: When i click on "Start" and then on open, it opens both programs
  15. Lol, i can't close it and I don't know why, because I can't read the error msg. Why don't you code programs directly in english before releasing them? -.-
×
×
  • Create New...