| View previous topic :: View next topic |
| Author |
Message |
swapnesh_sharma
Joined: 29 Aug 2009 Posts: 14
|
Posted: Sat Sep 19, 2009 9:17 am Post subject: FireFox Save AS, Running Script when pc is locked |
|
|
1. How to detect Save As option from Firefox ?
| Code: | WinWaitActive ,Report To File - Mozilla Firefox
Sleep 5000
SendInput {tab 2}{enter}
WinWaitActive ,Opening Report.csv
Sleep 1000
SendInput {enter}
;WinWaitActive ,Save As - This dont gets detected
Sleep 5000
Send {alt down}{tab}{alt up}
SendInput {tab}{tab}{enter}
Sleep 5000
SendInput {alt down}{f4}{alt up} ;For the download window
|
2. How can i run my script when my pc is locked. The script has mouse clicks in it??? |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Sat Sep 19, 2009 11:08 am Post subject: |
|
|
| 2. You probably don't. While the OS is in locked state, not much can be scripted. |
|
| Back to top |
|
 |
swapnesh_sharma
Joined: 29 Aug 2009 Posts: 14
|
Posted: Sat Sep 19, 2009 11:14 am Post subject: |
|
|
Using ms shedular i can run the commands but when the script comes to steps where mousemove or keyboard input is involed it halts.
There should be a way??????? Any One |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Sat Sep 19, 2009 11:25 am Post subject: |
|
|
| I agree, there definitely SHOULD be a way, that would make my life easier in certain places. But as far as I know, it isn't possible. |
|
| Back to top |
|
 |
swapnesh_sharma
Joined: 29 Aug 2009 Posts: 14
|
Posted: Sat Sep 19, 2009 12:14 pm Post subject: |
|
|
| Quote: |
I agree, there definitely SHOULD be a way, that would make my life easier in certain places. But as far as I know, it isn't possible. |
I hope not to know the same.
For my Second Question . Here is the content of the Save as window which i get from firefox. I have already tried this titile but it did'nt worked
| Code: | >>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Enter name of file to save to…
ahk_class #32770
>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<
On Screen: 393, 265 (less often used)
In Active Window: 320, 167
>>>>>>>>>( Now Under Mouse Cursor )<<<<<<<<
ClassNN: SysListView321
Text: FolderView
Color: 0xFFFFFF (Blue=FF Green=FF Red=FF)
>>>>>>>>>>( Active Window Position )<<<<<<<<<<
left: 73 top: 98 width: 563 height: 419
>>>>>>>>>>>( Status Bar Text )<<<<<<<<<<
>>>>>>>>>>>( Visible Window Text )<<<<<<<<<<<
Save &in:
FolderView
File &name:
Save as &type:
&Save
Cancel
>>>>>>>>>>>( Hidden Window Text )<<<<<<<<<<<
Open as &read-only
&Help | [/quote] |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Sat Sep 19, 2009 12:37 pm Post subject: |
|
|
| Have you tried setting SetTitleMatchMode and only using part of the WinTitle? |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Sep 19, 2009 4:00 pm Post subject: |
|
|
not yet .. but i think that is what i should have thought..
thanx a lot will test that tomorrow and i think it will surely work |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Mon Sep 21, 2009 12:44 pm Post subject: |
|
|
use controlsend instead of send and sendinput _________________
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed; |
|
| Back to top |
|
 |
|