Jump to content
Sign in to follow this  
ddeerr

controlsend + @SW_HIDE

Recommended Posts

ddeerr

Hi,

I'm asking myself a question that i can't reponse, it is is it possible to make a control send with the option @SW_HIDE include ?

I mean like when you run for, example like :

$processID_regedit = Run("regedit.exe", "", @SW_HIDE)
oÝ÷ Ø-êÞ²¶§Ú"­)à)¶¬jëh×6
ControlSend($handle_regedit, "", 2, "^f", @SW_HIDE)      ; ^^
oÝ÷ Ùhbë^²Ø§+ljeÊÇËajÔÄv¬mÂä¢{j·!­è"²ÚòÂ)Ý£®¶­s`£·FW7B6öFP ¥'VâgV÷C·&VvVFBæWRgV÷C²¥våvBgV÷Cµ´4Ä53¥&VtVFEõ&VtVFEÒgV÷C²ÂgV÷C²gV÷C²ÂR¢b33c¶æFÆU÷&VvVFBÒvävWDæFÆRgV÷Cµ´4Ä53¥&VtVFEõ&VtVFEÒgV÷C²ÂgV÷C²gV÷C²¤6öçG&öÅ6VæBb33c¶æFÆU÷&VvVFBÂgV÷C²gV÷C²Â"ÂgV÷CµæbgV÷C²¢b33c¶æFÆU÷&VvVFC"ÒvävWDæFÆRgV÷Cµ´4Ä53¢33#ssÒgV÷C²ÂgV÷C²gV÷C²¥vå6WE7FFRb33c¶æFÆU÷&VvVFC"ÂgV÷C²gV÷C²Â5uôDR

Do you know why ?


MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

Share this post


Link to post
Share on other sites
ddeerr

I test the code on Windows2000 (my first step was on XP) and it works ?

Probably i have a problem with my XP (strange but...:))


MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

Share this post


Link to post
Share on other sites
ddeerr

Ok, If it can help someone i found the solution

With Windows 2000 you can use the class name as displayed with Au3info "[CLASS:#32770]" with the #

Run("regedit.exe")
WinWait("[CLASS:RegEdit_RegEdit]", "", 5)
$handle_regedit = WinGetHandle("[CLASS:RegEdit_RegEdit]", "")
ControlSend($handle_regedit, "", 2, "^f")
$handle_regedit2 = WinGetHandle("[CLASS:#32770]", "")      ; 2K
WinSetState($handle_regedit2, "", @SW_HIDE)
oÝ÷ Ùh­sò¢èZ½ëh­é¨½ëay«­¢+Ø)mÕѽ¥Ñt)IÕ¸ ÅÕ½ÐíɥйáÅÕ½Ðì¤)]¥¹]¥Ð ÅÕ½Ðím
1MLéI¥Ñ}I¥ÑtÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°Ô¤(ÀÌØí¡¹±}É¥Ðô]¥¹Ñ!¹± ÅÕ½Ðím
1MLéI¥Ñ}I¥ÑtÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤)
½¹Ñɽ±M¹ ÀÌØí¡¹±}ɥаÅÕ½ÐìÅÕ½Ðì°È°ÅÕ½ÐíyÅÕ½Ðì¤(ÀÌØí¡¹±}É¥ÐÈô]¥¹Ñ!¹± ÅÕ½Ðím
1MLèÌÈÜÜÁtÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤ìa@)]¥¹MÑMÑÑ ÀÌØí¡¹±}É¥ÐÈ°ÅÕ½ÐìÅÕ½Ðì°M]}!%¤

MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

Share this post


Link to post
Share on other sites
PsaltyDS

I ran the below script both with and without the pound sign (#), and it worked both ways on XP Pro SP2.

Run("regedit.exe")
WinWait("[CLASS:RegEdit_RegEdit]", "", 5)
$handle_regedit = WinGetHandle("[CLASS:RegEdit_RegEdit]", "")
ControlSend($handle_regedit, "", 2, "^f")
$handle_regedit2 = WinGetHandle("[CLASS:#32770]", "")
WinSetState($handle_regedit2, "", @SW_HIDE)

What's the point of hiding the child window though?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×