Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Using the "Execute" Command to open a website

Author
Message
TheMarauder
13
Years of Service
User Offline
Joined: 23rd Dec 2012
Location:
Posted: 24th Dec 2012 02:59
Hey all. Long time reader first time poster!

I'm working on a DB program and need to open a website. When it opens the website, quite often it then proceeds to spam the website and bring down both the running DB program and the browser (A few times my Firefox/IE was using 4+GB before I finally got it shut down.) Any suggestions? I even tried throwing in a brief wait since I wondered if the program thought the that key was still held in.

Thanks

Dave

mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 24th Dec 2012 12:56
You must execute cmd.exe with the line


*** Merry Chuckmas! ***
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 24th Dec 2012 14:14 Edited at: 24th Dec 2012 14:15
Have you tried simply using a function call? [include the wait or a type of wait inside the function as well...] but I think you simply have that subroutine repeatedly called in your main loop for that to be happening, are you not using a trigger like an IF-ENDIF function?

EDIT

Just had to include this...



Virtual Nomad
Moderator
20
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 24th Dec 2012 14:33 Edited at: 24th Dec 2012 15:16
using ianm's matrix1utils plug-in #13, you can check to see if a window with "soundcloud" (or whatever you want) in the title is already open and execute file if it isn't:



bah! the code was working...
add: it does work sometimes. more to do with it but it will get you on the right path (i don't have time to continue working on it right now...)

Virtual Nomad @ California, USA . DBPro V7.7 . Matrix1Utils 05.27.12
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
TheMarauder
13
Years of Service
User Offline
Joined: 23rd Dec 2012
Location:
Posted: 24th Dec 2012 18:03
Edit: Should have mentioned Website: is outside of my main loop. It gets called when you Hit the W key.

And thanks for the Marauder photo Mr. Val.
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 24th Dec 2012 18:48 Edited at: 24th Dec 2012 18:49
You need to force an input delay or the key press event will trigger many times in the space of one physical 'press'

Something like



Login to post a reply

Server time is: 2026-07-07 10:59:20
Your offset time is: 2026-07-07 10:59:20