
JBeef
Active Members-
Posts
71 -
Joined
-
Last visited
Everything posted by JBeef
-
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
-
Progress with While - not working
JBeef replied to JohnBailey's topic in AutoIt General Help and Support
ObjEvent wrong? IEEvent_ vs IEEvent_ProgressChange ~Jap -
read_out (I'm incapable of titling my topics)
JBeef replied to Flockes's topic in AutoIt General Help and Support
var of html - explained? ~Jap -
How to create a "always visible" windows?
JBeef replied to aclandor's topic in AutoIt GUI Help and Support
GUICreate y "eXStyle" y $WS_EX_TOPMOST - ~Jap -
$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
-
you get hammer screw award - crazy - ~Jap
-
no Jesus here. your water stays water - crazy - ~Jap
-
Can't get files dropped onto gui to be accepted.
JBeef replied to momar33's topic in AutoIt GUI Help and Support
sweet nibbrets - crazy - ~Jap -
Can't get files dropped onto gui to be accepted.
JBeef replied to momar33's topic in AutoIt GUI Help and Support
try control - not gui. ~Jap -
Tray Icon Visible Went Run as Service
JBeef replied to TempTrees's topic in AutoIt General Help and Support
no "interact desktop" for system account. like SQL Manager you write a separate "watcher" that communicate service and with tray icon. - crazy - ~Jap -
full path as argue on userinit.exe in hklm\software\microsoft\windowsnt\winlogon - google it - crazy ~Jap
-
oopsy - out of my expert - ~Jap
-
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
-
GUICtrlSetFont() - RTGDM - crazy ~Jap
-
Checking which controls were clicked...
JBeef replied to Nimrod667's topic in AutoIt General Help and Support
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 -
Deleting files from a directory depending on the date.
JBeef replied to Stunt's topic in AutoIt General Help and Support
you say common. try forum search. crazy ~Jap http://www.autoitscript.com/forum/index.ph...st&p=374923 -
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
-
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
-
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])
-
oops - again a missing Larry post - http://www.autoitscript.com/forum/index.ph...st&p=382209 RegLoadHive here - ~Jap
-
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
-
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies or HKCU maybe. no policy here ~Jap
-
Disable the enter key for only one app or window
JBeef replied to zasxes's topic in AutoIt General Help and Support
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 -
first thing with me. load OS, disable sysrestore. ~Jap