Jump to content
Sign in to follow this  
iloveautoitv3

Controlsend in a minimized window

Recommended Posts

iloveautoitv3

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\"

Share this post


Link to post
Share on other sites
exodius

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

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
iloveautoitv3

then use _IEFormElementSetValue().

the _IEFormElementSetValue() works on the website megaupload.com with the description-field. the file-field can only be setted with the "Send"-commands.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.