Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Amenintat cu moartea de un numar ...

La multi ani @AndReW99!

Alegere masina £15000 uk

TVR vrea sa lanseze o platforma d...
 Strategie investie pe termen lung...

Modulator FM ptr auto alimentat p...

orange cablu f.o. - internet fara...

Robinet care comuta traseul
 A fost lansata Fedora 40

Samsung S24 plus

Imi iau un Dell? (Vostro vs others)

Abonati Qobuz?
 transport -tren

Platforma electronica de eviden&#...

Cot cu talpa montat stramb in per...

Sfat achizitie sistem audio pentr...
 

yahoo status change

- - - - -
  • Please log in to reply
1 reply to this topic

#1
dragosh_F

dragosh_F

    Junior Member

  • Grup: Members
  • Posts: 33
  • Înscris: 23.09.2005
salutare. de ceva zile incerc sa fac un programel in vb care sa schimbe statusul la yahoo. am gasit un cod cu care pot sa schimb statusul doar 1 data. arata cam asa:

	
On Error Resume Next
	
   Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long


Private Declare Function SendMessageLong& Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long)
	Private Const WM_COMMAND = &H111
	
	Set ws = CreateObject("wscript.shell")
	cyid = ws.RegRead("HKEY_CURRENT_USER\Software\yahoo\pager\Yahoo! User ID")
	nysm = WebBrowser1.document.Body.innerHTML
	ws.RegWrite "HKEY_CURRENT_USER\Software\yahoo\pager\profiles\" & cyid & "\custom msgs\1", nysm, "REG_SZ"
	'ws.RegDelete "HKEY_CURRENT_USER\Software\yahoo\pager\profiles\" & cyid & "\custom msgs\1_bin"
	'if u want to show busy icon
	'ws.RegWrite "HKEY_CURRENT_USER\Software
	'	 \yahoo\pager\profiles\" & cyid & "\custo
	'	 m msgs\1_dnd", 1, "REG_DWORD"
	' if u dont want then
	ws.RegWrite "HKEY_CURRENT_USER\Software\yahoo\pager\profiles\" & cyid & "\custom msgs\1_dnd", 0, "REG_DWORD"
	yhwnd = FindWindow("YahooBuddyMain", vbNullString)


	If yhwnd = 0 Then
		End
	Else
		SendMessageLong yhwnd, WM_COMMAND, 388, 1&
		ydhwnd = FindWindow("#32770", vbNullString)


		If ydhwnd <> 0 Then
		   SendKeys ("{enter}")
		End If

	End If

... cam asa arata, a suferit cateva modificari (il am de pe planet source code).

sper sa ma poata ajuta cineva. nu imi reomandati programe gen hyperim pt ca incerc sa fac ceva practic si in acelasi timp sa si invat. multzam :coolspeak:

#2
viper27

viper27

    Junior Member

  • Grup: Members
  • Posts: 53
  • Înscris: 09.05.2006
da-mi mai multe detalii !!! despre cum si in ce fel vrei sa ti se schimbe statusu !!!

Anunturi

Bun venit pe Forumul Softpedia!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate