phpzzz Posted September 3, 2008 Share Posted September 3, 2008 (edited) Hi all, i am new here, i am also new at programing, and i know we can do this little task with autoit, but i have no idea how to code it, can any one help me code this little script I need a script run this task: - at 9:00 EST , it auto hit the printscreen key - at 11:00 EST, it auto hit the printscreen key again - this script may able to run on background. the reason i need this task, because im using a screen recording software but it doesn't support recurring recording, so i set printscreen as recording hot key, so this script can help me auto record by sending printscreen key on background at specific time.. i would be really appreciated for your help.. thanks Edited September 3, 2008 by phpzzz Link to comment Share on other sites More sharing options...
TehWhale Posted September 3, 2008 Share Posted September 3, 2008 9, 11? AM/PM? Link to comment Share on other sites More sharing options...
phpzzz Posted September 4, 2008 Author Share Posted September 4, 2008 Hi Alienware, it is 9:00 am est - 11:00 am estthanks alot..9, 11? AM/PM? Link to comment Share on other sites More sharing options...
BrettF Posted September 4, 2008 Share Posted September 4, 2008 Take a look at @HOUR. Set up a While loop, and your set! Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
phpzzz Posted September 5, 2008 Author Share Posted September 5, 2008 Hi BrettF, can you code it for me, i have no idea what to start.. thans Link to comment Share on other sites More sharing options...
ReaImDown Posted September 5, 2008 Share Posted September 5, 2008 Hi BrettF, can you code it for me, i have no idea what to start..thanswhich is why we have a helpfile, try b4 you ask While 1 sleep(10) ;your coding herewend [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 5, 2008 Share Posted September 5, 2008 Not many people on the forums will code something for you. If you want that go to rentacoder.com but this script is extremely simple. Just look in the helpfile for while loops, the @hour macro, and the Send() function. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
TehWhale Posted September 5, 2008 Share Posted September 5, 2008 (edited) I'll write it for, but thats all, just for learning. While 1 If @Hour = 9 Then Send("{PRINTSCREEN}") If @Hour = 11 Then Send("{PRINTSCREEN}") Sleep(60000) WEnd Now was that to hard? Edited September 5, 2008 by Alienware Link to comment Share on other sites More sharing options...
ReaImDown Posted September 5, 2008 Share Posted September 5, 2008 I'll write it for, but thats all, just for learning. While 1 If @Hour = 9 Then Send("{PRINTSCREEN}") If @Hour = 11 Then Send("{PRINTSCREEN}") Sleep(1000) WEnd Now was that to hard?yes actually...your script will press print screen hundreds of times at 9 and same at 11 lol [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
TehWhale Posted September 5, 2008 Share Posted September 5, 2008 That is true, didn't think of it! Link to comment Share on other sites More sharing options...
ReaImDown Posted September 5, 2008 Share Posted September 5, 2008 (edited) $0 = 0 $11 = 0 While 1 if $9 = 0 then If @Hour = 9 Then Send("{PRINTSCREEN}") $11 = 0 $9 = 1 endif endif if $11 = 0 then If @Hour = 11 Then Send("{PRINTSCREEN}") $9 = 0 $11 = 1 endif endif Sleep(1000) WEnd Edited September 5, 2008 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
TehWhale Posted September 5, 2008 Share Posted September 5, 2008 $0 = 0$11 = 0While 1if $9 = 0 thenIf @Hour = 9 Then Send("{PRINTSCREEN}")$11 = 0$9 = 1endifif $11 = 0 thenIf @Hour = 11 Then Send("{PRINTSCREEN}")$9 = 0$11 = 1endifSleep(1000)WEndMines better, and shorter Damnit! I just edited my post Link to comment Share on other sites More sharing options...
ReaImDown Posted September 5, 2008 Share Posted September 5, 2008 Mines better, and shorter Damnit! I just edited my post nvm, I lied...but...now your script will press print screen 60 times at nine and 60 times at 11 lol [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
TehWhale Posted September 5, 2008 Share Posted September 5, 2008 One last edit! Link to comment Share on other sites More sharing options...
ReaImDown Posted September 5, 2008 Share Posted September 5, 2008 One last edit! yes, but the program could lag...and then u get nothing... [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 5, 2008 Moderators Share Posted September 5, 2008 (edited) yes, but the program could lag...and then u get nothing...Local $i_dummy = 0 While 1 If @Hour = 9 and @Min = 0 Then $i_dummy = Send("{PRINTSCREEN}") + Sleep(60000) If @Hour = 11 and @min = 0 Then $i_dummy = Send("{PRINTSCREEN}") + Sleep(60000) Sleep(1000) WEndThere, that\'ll solve your issues. Edit: Or if you want to get really silly:While 1 If @Hour = 9 and @Min = 0 Then Sleep(600000 + Send("{PRINTSCREEN}")) If @Hour = 11 and @min = 0 Then Sleep(600000 + Send("{PRINTSCREEN}")) Sleep(1000) WEnd Edited September 5, 2008 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
ReaImDown Posted September 5, 2008 Share Posted September 5, 2008 (edited) One last edit! easy as it gets $check = 0 While 1 if $check <> 1 then If @Hour = 9 Then Send("{PRINTSCREEN}") $check = 1 endif endif if $check <> 2 then If @Hour = 11 Then Send("{PRINTSCREEN}") $check = 2 endif endif Sleep(1000) WEnd Edited September 5, 2008 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
jmHoekst Posted September 5, 2008 Share Posted September 5, 2008 I think it would be easiest to just put Send("{PRINTSCREEN}") into an autoIt script, compile it to an .exe, then have Windows Scheduler run that .exe at 9 and 11. Problem solved! This way there isn't and infinite autoIt loop running in the background, hosing up the system. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 5, 2008 Moderators Share Posted September 5, 2008 I think it would be easiest to just put Send("{PRINTSCREEN}") into an autoIt script, compile it to an .exe, then have Windows Scheduler run that .exe at 9 and 11. Problem solved! This way there isn't and infinite autoIt loop running in the background, hosing up the system. ... what / how does a loop "hose" a system? There's no CPU usage at all, and it's not doing anything but twice a day. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
ReaImDown Posted September 5, 2008 Share Posted September 5, 2008 I think it would be easiest to just put Send("{PRINTSCREEN}") into an autoIt script, compile it to an .exe, then have Windows Scheduler run that .exe at 9 and 11. Problem solved! This way there isn't and infinite autoIt loop running in the background, hosing up the system.damn you lol haha, the man's a genius! lol [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now