Jump to content

Controlsend in a minimized window


Recommended Posts

hello,

is there a way to controlsend to a minimized window a directory path without replacing ":" to "." and "\" to "ß" ?

in this script the "Window 1" is minimized:

$path = "C:\WINDOWS\Temp\"

Controlsend("Window 1","","[CLASS:Internet Explorer_Server; INSTANCE:1]",$path,0)

the Controlsend sends only : "c.ßwindowsßtempß"

but when the "Window 1" is maximized and activated the Controlsend sends: "C:\WINDOWS\Temp\"

Link to comment
Share on other sites

It seems to work in this script...

Run ("notepad")
Sleep (2000)
WinSetState ("Untitled - Notepad", "", @SW_MINIMIZE)
Sleep (2000)
$path = "C:\WINDOWS\Temp\"
Controlsend("Untitled - Notepad","","Edit1",$path)
MsgBox (0, "", "Done!")oÝ÷ ÙhZµªÞÊ­¯(§Ú¢Øb±ú+1¬zØ^­íý±¦Þ¶×«Á¬GºÚ"µÍÚ[^XÝ]H
    ][ÝÚY^ÜK^I][ÝË ][ÝÐÎÌLÕÚ[ÝÜÉÌLÕ[    ][ÝÊ
Edited by exodius
Link to comment
Share on other sites

hello,

is there a way to controlsend to a minimized window a directory path without replacing ":" to "." and "\" to "ß" ?

in this script the "Window 1" is minimized:

the Controlsend sends only : "c.ßwindowsßtempß"

but when the "Window 1" is maximized and activated the Controlsend sends: "C:\WINDOWS\Temp\"

Use the _IE* functions of the IE.au3 UDF to get a reference to the element you want to set the value on, then use _IEFormElementSetValue(). See the help file for an example script (which will run just as well minimized or hidden as not).

:D

Edited by PsaltyDS
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
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...