BASIC

Author Topic: NETWE  (Read 1287 times)

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
NETWE
« on: 2013-Feb-12 »
How can I use NET command to open a web site but not end my application?
I tried NETWEBEND it opens the browser but my app freezes.
This is on WEBOS, iOS and Windows.
« Last Edit: 2013-Feb-14 by aroldo »
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3365
  • Integrated Brain
    • View Profile
Re: NETWE
« Reply #1 on: 2013-Feb-12 »
HI Aroldo I suppose for don't freeze you app, put in the begin of the code, out of the loop, systempause False and mousepointer true... I think whit this have to work...

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10695
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: NETWE
« Reply #2 on: 2013-Feb-13 »
Was it ALLOWESCAPE TRUE? I think so.

Offline Omadan

  • Dr. Type
  • ****
  • Posts: 374
    • View Profile
    • Top Arcade Apps Games
Re: NETWE
« Reply #3 on: 2013-Feb-13 »
Netwebend terminates your application. I have not tried this with new version but I am pretty sure it terminates your app.
Top Arcade Apps - Best game for mobiles and computers

http://www.toparcadeapps.com

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1142
    • View Profile
    • My GLBasic code archiv
Re: NETWE
« Reply #4 on: 2013-Feb-14 »
Not tested, but according to help file ALLOWESCAPE FALSE should keep your program active, at least on the big platforms.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
Re: NETWEBEND
« Reply #5 on: 2013-Feb-14 »
Kitty and everyone thank you for your answer,  :nw:

I am using GLBasic V11 on Windows 7.

With the following settings AUTOPAUSE TRUE and ALLOWESCAPE FALSE I was able to get NETWEBEND working without issues only on iOS 6.x, on Windows 7 and WebOS (HP TouchPad and Palm Pre 2) the the game freezes after the user presses the icon to go to my web site, the browser opens without any problem but the application does not respond, it freezes)
ALLOWESCAPE has to be set FALSE otherwise it interferes with the iOS Home button (when you press the home button the app goes in the back ground) For more info see my post and resolution on this link: http://www.glbasic.com/forum/index.php?topic=8830.msg75283#msg75283
For right now I will be able to launch the game on the App store. On WebOS it will be annoying, they will have to terminate the app and restart it again, since WebOS has no new devices I think I can handle the complains.
On Windows I am not planing to launch the app but I think the fix will benefit other GLBasic users.
« Last Edit: 2013-Feb-14 by aroldo »
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2