Antron99 Posted January 7, 2014 Share Posted January 7, 2014 how to make scripts that closes youtube streaming when opening game launcher or facebook games? thank you guys! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 7, 2014 Moderators Share Posted January 7, 2014 Obviously you have missed the forum rules on your way in. Please see the link at the bottom of the page, to see why you will receive no help on this subject. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Antron99 Posted January 7, 2014 Author Share Posted January 7, 2014 Obviously you have missed the forum rules on your way in. Please see the link at the bottom of the page, to see why you will receive no help on this subject. im sorry im a bit confuse. Link to comment Share on other sites More sharing options...
Antron99 Posted January 7, 2014 Author Share Posted January 7, 2014 Obviously you have missed the forum rules on your way in. Please see the link at the bottom of the page, to see why you will receive no help on this subject. sorry sir but i can't understand what you mean? and also, i can't see the forum rules Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 7, 2014 Share Posted January 7, 2014 Personally, I don't see anything wrong with it. He's not interacting, automating or otherwise doing anything with a game. Just wants to close the webpage for youtube when he starts his game. I would have a loop checking for ProcessExists(your exe file here) while 1 sleep(10) if ProcessExists(program) Then winclose(youtube page) exit wend you may want to do an wintitlematchmode (I think it's 2 to only match part of the window name) at the top of your script because I believe the title of the youtube page is "the name of the video - youtube" or something like that. 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
somdcomputerguy Posted January 7, 2014 Share Posted January 7, 2014 Please see the link at the bottom of the page.. and also, i can't see the forum rules http://www.autoitscript.com/forum/index.php?app=forums&module=extras§ion=boardrules - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Antron99 Posted January 7, 2014 Author Share Posted January 7, 2014 Personally, I don't see anything wrong with it. He's not interacting, automating or otherwise doing anything with a game. Just wants to close the webpage for youtube when he starts his game. I would have a loop checking for ProcessExists(your exe file here) while 1 sleep(10) if ProcessExists(program) Then winclose(youtube page) exit wend you may want to do an wintitlematchmode (I think it's 2 to only match part of the window name) at the top of your script because I believe the title of the youtube page is "the name of the video - youtube" or something like that. thanks sir, im new in this program so right now i dont have any idea on how to do this Link to comment Share on other sites More sharing options...
Bert Posted January 7, 2014 Share Posted January 7, 2014 There is a ZERO game interaction policy on the forum. Also, Youtube stuff is frowned upon too. Sorry dude. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Antron99 Posted January 7, 2014 Author Share Posted January 7, 2014 There is a ZERO game interaction policy on the forum. Also, Youtube stuff is frowned upon too. Sorry dude. sir i just want to automatically close the browser (firefox & chrome) when launching any game. i will use it in my internet cafe business to save bandwidth. Link to comment Share on other sites More sharing options...
vkrisz81 Posted January 7, 2014 Share Posted January 7, 2014 i think winlist is the answer for yor problem, and title parameters.. stringinstr "youtube",title any you can detect window to close.. iam on phone i can not make a source but i would do it this way Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 7, 2014 Moderators Share Posted January 7, 2014 Hi,As long as any code is limited to the detection and closing of windows using their titles I am happy to let this thread run. But please do not spill over into anything which goes beyond that, particularly for the game launcher. And the YouTube prohibition is on downloading - the OP is quite clear that it is only streaming that is involved here. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Bert Posted January 7, 2014 Share Posted January 7, 2014 The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Antron99 Posted January 7, 2014 Author Share Posted January 7, 2014 Hi, As long as any code is limited to the detection and closing of windows using their titles I am happy to let this thread run. But please do not spill over into anything which goes beyond that, particularly for the game launcher. And the YouTube prohibition is on downloading - the OP is quite clear that it is only streaming that is involved here. M23 thank you sir! Link to comment Share on other sites More sharing options...
Antron99 Posted January 7, 2014 Author Share Posted January 7, 2014 guys can you give me a sample on how to do it on autoit? close browser automatically when clicking game launcher. please guide me. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 7, 2014 Moderators Share Posted January 7, 2014 Antron99, close browser automatically when clicking game launcherDid you not read what I said above: As long as any code is limited to the detection and closing of windows using their titles I am happy to let this thread runIf you are now asking about how to detect clicking on the game launcher then this thread becomes illegal. So which is it to be? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Bert Posted January 7, 2014 Share Posted January 7, 2014 (edited) while 1 If processexist (game launcher) then processclose (web browser) sleep (10) wend You can do this with 4 lines of code edit: forgot the wend. Edited January 8, 2014 by MBALZESHARI The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 8, 2014 Share Posted January 8, 2014 you forgot your 'wend' 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Antron99 Posted January 8, 2014 Author Share Posted January 8, 2014 (edited) Personally, I don't see anything wrong with it. He's not interacting, automating or otherwise doing anything with a game. Just wants to close the webpage for youtube when he starts his game. I would have a loop checking for ProcessExists(your exe file here) while 1 sleep(10) if ProcessExists(program) Then winclose(youtube page) exit wend you may want to do an wintitlematchmode (I think it's 2 to only match part of the window name) at the top of your script because I believe the title of the youtube page is "the name of the video - youtube" or something like that. I really have no idea how to do this correct me if im wrong. and also, where to save the au3 file to run it automatically when i started to play the game? sorry guys I'm totally noob at this program, I JUST NEED YOUR HELP Edited January 8, 2014 by Antron99 Link to comment Share on other sites More sharing options...
bogQ Posted January 8, 2014 Share Posted January 8, 2014 (edited) you forgot your 'wend'and you forgot to write EndIF below EXIT line and OP wrote play-css.exe and firefox.exe instead of 'play-css.exe' and 'play-css.exe' or "play-css.exe" and "firefox.exe" everybody go and take some coffee to go, it's an order if he is after process commands i don't see the point in loop if exit is after that, so just this line should work instead of the loop if constantly running isn't needed in script If ProcessWait ( "processtowait.exe" ,10 ) Then ProcessClose( "processtoclose.exe" );w8 for procces 10 sec, if its there close itif it's needed just remove 10 second parameter and put it in while 1 loopfor facebook games i realy dont know, dont use FB Edited January 8, 2014 by bogQ Antron99 1 TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
Antron99 Posted January 8, 2014 Author Share Posted January 8, 2014 and you forgot to write EndIF below EXIT line and OP wrote play-css.exe and firefox.exe instead of 'play-css.exe' and 'play-css.exe' or "play-css.exe" and "firefox.exe" everybody go and take some coffee to go, it's an order if he is after process commands i don't see the point in loop if exit is after that, so just this line should work instead of the loop if constantly running isn't needed in script If ProcessWait ( "processtowait.exe" ,10 ) Then ProcessClose( "processtoclose.exe" );w8 for procces 10 sec, if its there close it if it's needed just remove 10 second parameter and put it in while 1 loop for facebook games i realy dont know, dont use FB thanks sir this works for me. i have another question, 1. how to add another games (10 games) in the scripts? 2. how to set scripts to "always running)? because it always closes after launching the game. 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