Sign in to follow this  
Followers 0
semiono

What is the *.CPL windows?

4 posts in this topic

Posted Image

ShellExecute("rundll32.exe", "shell32.dll,Control_RunDLL desk.cpl,,-1", @SystemDir)

Posted Image

ControlClick("Display Properties","","[CLASS:Button; TEXT:OK; INSTANCE:4]")

Where is the button? :(

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I think its :

ControlClick("Display Properties", "", "Button3"); The OK button!
Edited 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]

Share this post


Link to post
Share on other sites

OK! Problem found is here - Sleep(500)

ShellExecute("rundll32.exe", "shell32.dll,Control_RunDLL desk.cpl,,-1", @SystemDir)

Sleep(500)

ControlClick("Display Properties", "", "Button3")

Share this post


Link to post
Share on other sites

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

:(

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0