semiono Posted March 23, 2010 Posted March 23, 2010 ShellExecute("rundll32.exe", "shell32.dll,Control_RunDLL desk.cpl,,-1", @SystemDir)ControlClick("Display Properties","","[CLASS:Button; TEXT:OK; INSTANCE:4]")Where is the button?
goldenix Posted March 23, 2010 Posted March 23, 2010 (edited) I think its : ControlClick("Display Properties", "", "Button3"); The OK button! Edited March 23, 2010 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
semiono Posted March 24, 2010 Author Posted March 24, 2010 OK! Problem found is here - Sleep(500)ShellExecute("rundll32.exe", "shell32.dll,Control_RunDLL desk.cpl,,-1", @SystemDir)Sleep(500)ControlClick("Display Properties", "", "Button3")
semiono Posted March 24, 2010 Author Posted March 24, 2010 Who is know api across asm? Why it not works? include '%fasm%\win32ax.inc' start: invoke ShellExecute,NULL,NULL,'desk.cpl',',-1',NULL,SW_SHOW invoke Sleep,100 invoke FindWindow,"#32770",NULL mov [hWnd],eax invoke FindWindowEx,[hWnd],NULL,NULL,button mov [cWnd],eax invoke SendMessage,[cWnd],BM_CLICK,NULL,NULL exit: invoke ExitProcess,NULL section '.idata' import data readable writeable library kernel32,'KERNEL32.DLL',\ shell32,'SHELL32.DLL',user32,'USER32.DLL' include '%fasm%\api\kernel32.inc' include '%fasm%\api\shell32.inc' include '%fasm%\api\user32.inc' cWnd dd ? hWnd dd ? button db '1', 0
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