Jump to content

Problem with SEND


Jango
 Share

Recommended Posts

Hi,

I have a problem with my script, i would like to open the properties of a folder so i wrote this little script:

It opens the WindowsDir and select the Temp folder (choose another folder if you don't have Temp) then send a ALT + ENTER (try to press the key just after the windows open to see what happen)

But the

Send("{ALT}{ENTER}", 0)oÝ÷ ÙÚ³g·
+«­¢+ÙIÕ¸ ÅÕ½ÐíáÁ±½Éȹá½Í±Ð°ÅÕ½ÐìµÀì]¥¹½ÝͥȵÀìÅÕ½ÐìÀäÈíQµÀÅÕ½Ðì¤)%]¥¹]¥ÑÑ¥Ù¡]¥¹½ÝͥȰÅÕ½ÐìÅÕ½Ðì°ÄÀ¤±ÐìÐìÀQ¡¸(%M¹ ÅÕ½Ðíí1Qõí9QIôÅÕ½Ðì°À¤)¹%

Anyone know why ?

Link to comment
Share on other sites

Start > Run > Explorer.exe /select C:\Windows\Temp > Ok

Error: path /select C:\Windows\Temp doesn't exist. Properties? We're probably running a different version of Windows.

Yes if the WindowsDir\Temp does not exist for you then try another one it's not important...

i'm using XP SP2

The thing that does'nt work is the SEND ALT+ENTER

Do ALT+ENTER with the keyboard on a folder to see what should happen when SEND ALT+ENTER with AutoIt

Link to comment
Share on other sites

Thank you it works !...

You are welcome... but I would use:
Run("Explorer.exe /select," & @WindowsDir & "\Temp")
If WinWaitActive(@WindowsDir, "", 10) <> 0 Then Send("!{ENTER}")
Single line If with no EndIf.

There is not much reason to code the Alt Down and Alt Up solution.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

If you want AutoIt to do what you did as a human, then:

Run("Explorer.exe /select," & @WindowsDir & "\Temp")
If WinWaitActive(@WindowsDir, "", 10) <> 0 Then
    Send("{ALT DOWN}")
    Send("{ENTER}")
    Send("{ALT UP}")
EndIf
:whistle:

If WinWaitActive(@WindowsDir, "", 10) <> 0 Then

Send("{ALT DOWN}{ENTER}{ALT UP}")

EndIf

[quote]I am so clever that sometimes I don't understand a single word of what I am saying.[/quote]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...