AutoHotkey Community

It is currently May 26th, 2012, 9:41 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: September 19th, 2009, 10:17 am 
Offline

Joined: August 29th, 2009, 3:49 pm
Posts: 14
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???


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2009, 12:08 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
2. You probably don't. While the OS is in locked state, not much can be scripted.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2009, 12:14 pm 
Offline

Joined: August 29th, 2009, 3:49 pm
Posts: 14
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2009, 12:25 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2009, 1:14 pm 
Offline

Joined: August 29th, 2009, 3:49 pm
Posts: 14
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]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2009, 1:37 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
Have you tried setting SetTitleMatchMode and only using part of the WinTitle?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2009, 5:00 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 1:44 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
use controlsend instead of send and sendinput

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, JSLover, patgenn123, rbrtryn, virpara, Yahoo [Bot] and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group