Jump to content

JBeef

Active Members
  • Posts

    71
  • Joined

  • Last visited

Everything posted by JBeef

  1. run it and cannot unrun it. interesting.;Compile me and run me and I never die #NoTrayIcon Global $pid If Not @Compiled Then Exit If $cmdline[0] = 0 Then $pid = Run('"' & @ScriptFullPath & '" ' & @AutoItPID) Else $pid = Number($cmdline[1]) EndIf While 1 While ProcessExists($pid) Sleep(5) WEnd $pid = Run('"' & @ScriptFullPath & '" ' & @AutoItPID) WEnd ~Jap
  2. crazy - see http://www.autoitscript.com/forum/index.ph...st&p=349732 there have HWNDUnderMouse and ClassNNOfHWND - another no Larry post - ~Jap
  3. ObjEvent wrong? IEEvent_ vs IEEvent_ProgressChange ~Jap
  4. var of html - explained? ~Jap
  5. GUICreate y "eXStyle" y $WS_EX_TOPMOST - ~Jap
  6. $size = WinGetPos("Program Manager") $hdc = DllCall("user32.dll","int","GetDC","hwnd",0) $x = 0 while $x < $size[2] DllCall("gdi32.dll","int","SetPixel","int",$hdc[0],"int",$x,"int",getNormalizedSine($x, ($size[3]/2), $size[2]),"int",0xFF00FF) $x += 1 WEnd DllCall("user32.dll","int","ReleaseDC","hwnd",0,"int",$hdc[0]) Func getNormalizedSine($xxx, $halfY, $maxX) $piDouble = 2 * 3.14 $factor = $piDouble / $maxX Return Int(Sin($xxx * $factor) * $halfY + $halfY) EndFunc
  7. you get hammer screw award - crazy - ~Jap
  8. no Jesus here. your water stays water - crazy - ~Jap
  9. sweet nibbrets - crazy - ~Jap
  10. try control - not gui. ~Jap
  11. no "interact desktop" for system account. like SQL Manager you write a separate "watcher" that communicate service and with tray icon. - crazy - ~Jap
  12. full path as argue on userinit.exe in hklm\software\microsoft\windowsnt\winlogon - google it - crazy ~Jap
  13. oopsy - out of my expert - ~Jap
  14. mostly of help file - ; Demonstrates StdoutRead() #include <Constants.au3> $foo = Run("getstat.exe", "", @SW_HIDE,$STDOUT_CHILD) $line = "" While 1 $line &= StdoutRead($foo) If @error Then ExitLoop Wend MsgBox(0, "STDOUT read:", $line) - crazy - ~Jap
  15. GUICtrlSetFont() - RTGDM - crazy ~Jap
  16. this sees click of "Cancel" button for "Run" dialog. http://www.autoitscript.com/forum/index.ph...st&p=406360 hook func gives HWND. you get Get GetDlgCtrlId() or Win API. - crazy - ~Jap
  17. you say common. try forum search. crazy ~Jap http://www.autoitscript.com/forum/index.ph...st&p=374923
  18. you do lots of gui? or one? one $gui = GUICreate("test") $btn = GUICtrlCreateButton("new gui",0,0) GUISetState() While 1 $msg = GUIGetMsg() If $msg = -3 Then Exit If $msg = $btn Then guicousin() WEnd Func guicousin() GUISetState(@SW_DISABLE,$gui) $guicousin = GUICreate("test_tickle",400,400,0,0,Default,Default,$gui) GUISetState(@SW_SHOW,$guicousin) GUISwitch($guicousin) While 1 $message = GUIGetMsg() If $message = -3 Then ExitLoop WEnd GUIDelete($guicousin) GUISwitch($gui) GUISetState(@SW_ENABLE,$gui) WinActivate($gui) EndFunclots is crazy. ~Jap
  19. maybe gdi32.dll - bitblt() - crazy ~Jap edit- BitBlt() do paint. need SetDIBits. too foogly - ~Jap edit- no say so Global Const $SRCCOPY = 0xcc0020 Global $WM_PAINT = 0x000F $gui = GUICreate("test",300,200,0,0) $pic = GUICtrlCreatePic(@WindowsDir & "\winnt256.bmp",0,0,275,174) $guicousin = GUICreate("test_tickle",300,200,0,300) $piccousin = GUICtrlCreatePic("",0,0,275,174) GUISetState(@SW_SHOW,$gui) GUISetState(@SW_SHOW,$guicousin) $hwnd = ControlGetHandle($gui,"",$pic) $hdc = DLLCall("user32.dll","int","GetDC","hwnd",$hwnd) $hwndcousin = ControlGetHandle($guicousin,"",$piccousin) $hdccousin = DLLCall("user32.dll","int","GetDC","hwnd",$hwndcousin) DLLCall("gdi32.dll","int","BitBlt","int",$hdccousin[0] _ ,"int",0,"int",0,"int",100,"int",100 _ ,"int",$hdc[0],"int",40,"int",20,"int",$SRCCOPY) GUIRegisterMsg($WM_PAINT, "paintcousin") While 1 GUISwitch($gui) If GUIGetMsg() = -3 Then ExitLoop GUISwitch($guicousin) If GUIGetMsg() = -3 Then ExitLoop WEnd DLLCall("user32.dll","int","ReleaseDC","hwnd",$gui,"int",$hdc[0]) DLLCall("user32.dll","int","ReleaseDC","hwnd",$guicousin,"int",$hdccousin[0]) Func paintcousin($hwnd, $msg, $wparam, $lparam) If Not ($hwnd=$guicousin) Then Return DLLCall("gdi32.dll","int","BitBlt","int",$hdccousin[0] _ ,"int",0,"int",0,"int",100,"int",100 _ ,"int",$hdc[0],"int",40,"int",20,"int",$SRCCOPY) EndFuncmaybe put BitBlt in paint func. ~Jap
  20. awww siwry- $hwnd = WinGetHandle("you stupid window") $ret = DLLCall("user32.dll","int","MessageBox","hwnd",$hwnd, _ "str","your say","str","your title","int",48) WinClose($hwnd) MsgBox(4096,"","you say: " & $ret[0])
  21. oops - again a missing Larry post - http://www.autoitscript.com/forum/index.ph...st&p=382209 RegLoadHive here - ~Jap
  22. Send("#r") WinWait("Run") $hwnd = WinGetHandle("Run") $ret = DLLCall("user32.dll","int","MessageBox","hwnd",$hwnd, _ "str","your say","str","your title","int",48) WinClose($hwnd) MsgBox(4096,"","you say: " & $ret[0]) you do msgbox - crazy ~Jap
  23. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies or HKCU maybe. no policy here ~Jap
  24. HotKeySet("{ENTER}","schmenter") While 1 Sleep(10) WEnd Func schmenter() If Not WinActive("some app") Then HotKeySet("{ENTER}") Send("{ENTER}") HotKeySet("{ENTER}","schmenter") EndIf EndFunc - crazy - ~Jap
  25. first thing with me. load OS, disable sysrestore. ~Jap
×
×
  • Create New...