TNguyen 0 Posted October 24, 2007 $nick = "hoangtuera"; yahoo id $text = "Hello AutoIt"; status ym $convert = StringToBinary($text) RegWrite("HKEY_CURRENT_USER\Software\yahoo\pager\profiles\"&$nick&"\Custom Msgs", "1", "REG_SZ", $text) RegWrite("HKEY_CURRENT_USER\Software\yahoo\pager\profiles\"&$nick&"\Custom Msgs", "1_bin", "REG_BINARY", $convert) RegWrite("HKEY_CURRENT_USER\Software\yahoo\pager\profiles\"&$nick&"\Custom Msgs", "1_DND", "REG_DWORD", 0x00000000) #CS If you busy RegWrite("HKEY_CURRENT_USER\Software\yahoo\pager\profiles\"&$nick&"\Custom Msgs", "1_DND", "REG_DWORD", 0x00000001) #CE I want to show status when done. F1, Bro ! Share this post Link to post Share on other sites
Kreatorul 0 Posted October 24, 2007 Here it's from a script of mine just change the variables to whatever you want Func SetStatus() $read=RegRead("HKEY_CURRENT_USER\SOFTWARE\Yahoo\pager\profiles\" & $user & "\Custom Msgs", "1") $status = GuiCtrlRead($sts) & $send $hex=_StringToHex($status) RegWrite("HKEY_CURRENT_USER\SOFTWARE\Yahoo\pager\profiles\" & $user & "\Custom Msgs", "5_bin", "REG_BINARY", $hex & "00") RegWrite("HKEY_CURRENT_USER\SOFTWARE\Yahoo\pager\profiles\" & $user & "\Custom Msgs", "5", "REG_SZ", $status) RegWrite("HKEY_CURRENT_USER\SOFTWARE\Yahoo\pager\profiles\" & $user & "\Custom Msgs", "5_DND", "REG_DWORD", $bizi) $handle = WinGetHandle("Yahoo! Messenger","") PostMessage($handle, "0x111", "0x188", "0") EndFunc Share this post Link to post Share on other sites
TNguyen 0 Posted October 25, 2007 (edited) $handle = WinGetHandle("Yahoo! Messenger","") PostMessage($handle, "0x111", "0x188", "0") What is PostMessage() ? Error: Unknown function PostMessage() Edited October 25, 2007 by TNguyen Share this post Link to post Share on other sites
TNguyen 0 Posted October 26, 2007 $handle = WinGetHandle("Yahoo! Messenger","")PostMessage($handle, "0x111", "0x188", "0")I don't known: 0x111? 0x188?Can u help me? Share this post Link to post Share on other sites
Kreatorul 0 Posted October 26, 2007 (edited) sorry here is the function Func PostMessage($hWnd, $msg, $wParm, $lParm) Return DllCall("user32.dll", "int", "PostMessage","hwnd", $hWnd, "int", $msg, "int", $wParm, "int", $lParm) EndFunc Edited October 26, 2007 by Kreatorul Share this post Link to post Share on other sites