TNguyen Posted October 24, 2007 Share 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 ! Link to comment Share on other sites More sharing options...
Kreatorul Posted October 24, 2007 Share 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 Link to comment Share on other sites More sharing options...
TNguyen Posted October 25, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
TNguyen Posted October 26, 2007 Author Share Posted October 26, 2007 $handle = WinGetHandle("Yahoo! Messenger","")PostMessage($handle, "0x111", "0x188", "0")I don't known: 0x111? 0x188?Can u help me? Link to comment Share on other sites More sharing options...
Kreatorul Posted October 26, 2007 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now