AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FireFox Save AS, Running Script when pc is locked

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
swapnesh_sharma



Joined: 29 Aug 2009
Posts: 14

PostPosted: Sat Sep 19, 2009 9:17 am    Post subject: FireFox Save AS, Running Script when pc is locked Reply with quote

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
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Sat Sep 19, 2009 11:08 am    Post subject: Reply with quote

2. You probably don't. While the OS is in locked state, not much can be scripted.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
swapnesh_sharma



Joined: 29 Aug 2009
Posts: 14

PostPosted: Sat Sep 19, 2009 11:14 am    Post subject: Reply with quote

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
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Sat Sep 19, 2009 11:25 am    Post subject: Reply with 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.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
swapnesh_sharma



Joined: 29 Aug 2009
Posts: 14

PostPosted: Sat Sep 19, 2009 12:14 pm    Post subject: Reply with quote

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. Exclamation


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
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Sat Sep 19, 2009 12:37 pm    Post subject: Reply with quote

Have you tried setting SetTitleMatchMode and only using part of the WinTitle?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Guest






PostPosted: Sat Sep 19, 2009 4:00 pm    Post subject: Reply with quote

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

PostPosted: Mon Sep 21, 2009 12:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group