AutoHotkey Community

It is currently May 27th, 2012, 12:44 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: March 19th, 2010, 3:31 am 
If you right-click the file, is print an option?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 3:33 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Related: http://www.autohotkey.com/forum/viewtop ... ight=print

joey3002 wrote:
say the program that i use is called, xyz.exe

Code:
Run, full_EXE_path_here.exe file_here.extension

:?: :?: :?: :?:

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 1:49 pm 
Offline

Joined: March 18th, 2010, 7:09 pm
Posts: 36
wow, thanks.. here is where I am
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

^l::
  WinGetClass explorerClass, A
  ControlGetText currentPath, Edit1, ahk_class %explorerClass%
  ControlGet, selectedFiles, List, Selected Col1, SysListView321,ahk_class %explorerClass%
  Loop, Parse, selectedFiles, `n  ; Rows are delimited by linefeeds (`n).
  {
msgbox <filename> %file%
RunWait, "full_EXE_path_here.exe" "%currentPath%\%file%"
          Send, ^p
          Sleep, 1000
;Run print %A_LoopField%
}
return


Everything works, except the %file% its not giving me the filename. I tried selectedFiles and that works but only when I select 1 file. The %file% I need since I am selecting 10+ and this should run through each one print, then do next 1...

thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2010, 6:57 pm 
Offline

Joined: March 18th, 2010, 7:09 pm
Posts: 36
please help...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2010, 7:20 pm 
u never declare what is %file%
A_LoopField ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2010, 7:27 pm 
Offline

Joined: March 18th, 2010, 7:09 pm
Posts: 36
looking to see how I can implement what you just mentioned..

thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2010, 8:31 pm 
Offline

Joined: March 18th, 2010, 7:09 pm
Posts: 36
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

^l::
  WinGetClass explorerClass, A
  ControlGetText currentPath, Edit1, ahk_class %explorerClass%
  ControlGet, selectedFiles, List, Selected Col1, SysListView321,ahk_class %explorerClass%
  Loop, Parse, selectedFiles, `n  ; Rows are delimited by linefeeds (`n).
  {
file := A_LoopField
msgbox <filename> %file%
RunWait, "full_EXE_path_here.exe" "%currentPath%\%file%"
          Send, ^p
          Sleep, 1000
;Run print %A_LoopField%
}
return


ok, got it to now do each file, but its not sending the ^p command, it just opens the file and sits there.. then if i close the program, it opens the 2nd file... etc.. it does not print or close the program..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2010, 8:59 pm 
Offline

Joined: March 18th, 2010, 7:09 pm
Posts: 36
It WORKS!!

How can I get a msgbox to pop up with # of files they are about to print with and ok or cancel?


Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

^l::
  WinGetClass explorerClass, A
  ControlGetText currentPath, Edit1, ahk_class %explorerClass%
  ControlGet, selectedFiles, List, Selected Col1, SysListView321,ahk_class %explorerClass%
  Loop, Parse, selectedFiles, `n  ; Rows are delimited by linefeeds (`n).
  {
file := A_LoopField
;msgbox <filename> %file%
RunWait, "full_EXE_path_here.exe" "%currentPath%\%file%"
          Sleep, 5000
          Send, ^p
   send,   {enter}
          Sleep, 3000
   send, !{F4}
          Sleep, 1000
}
return


Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2010, 9:05 pm 
you could just do a loop of the selected files and count how many times the loop runs, then display that variable and have the script ask, yes/no to keep going, and if they select yes, then it would goto the loop with the printing functions...


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: chaosad, jrav, MSN [Bot] and 24 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