Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lpy

Pages: [1]
1
QB64 Discussion / Re: Philippines in the maze
« on: August 02, 2020, 03:41:24 pm »
Yep that was the solution for me too, running QB64 x32. It's working. The mouse sensitivity is way too high, but otherwise it's good.

2
QB64 Discussion / Re: Philippines in the maze
« on: August 02, 2020, 01:58:51 pm »
Sorry still the same.

Yes, Output to EXE folder is ON.

3
QB64 Discussion / Re: Philippines in the maze
« on: August 02, 2020, 12:27:42 pm »
Hi. I tried compiling with 1.3 but still the same.

4
QB64 Discussion / Re: Philippines in the maze
« on: August 01, 2020, 05:26:20 pm »
Hi, it's not working properly for me. Mouse only moves down regardless of the direction I point it, and getting an error on line 1630.

5
QB64 Discussion / Re: Websocket protocol possible?
« on: July 23, 2020, 03:30:36 pm »
Thanks for your assistance. curl is interesting.. I can send headers much like qb64 PUT, but that's where I'm kinda stuck. There is an external program I can SHELL to, but I'm trying to work out how to avoid doing that and simply do everything "internally" using GET and PUT to do everything I need to. For loading a webpage it's obviously much more simple... you send a few headers and get the response, but websocket is a protocol I don't fully understand, especially with authorising (sending password "hashed", etc).

6
QB64 Discussion / Websocket protocol possible?
« on: July 22, 2020, 06:55:03 pm »
Hi. I'm trying to use Websocket, specifically OBS Websocket, to send/receive commands. I can connect and get a "HTTP/1.1 101 Switching Protocols" response, but that's as far as it goes so far. Anyone know if this is possible in QB64?

Some useful links:
https://www.qb64.org/forum/index.php?topic=2041.0
http://www.[abandoned, outdated and now likely malicious qb64 dot net website - don’t go there]/forum/index_PHPSESSID_gulg2aoa966472fnfhjkgp4i35_topic_7287-15/
https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md

Code: QB64: [Select]
  1. hostWebsocket$ = "127.0.0.1"
  2. portWebsocket$ = "4444"
  3. client = _OPENCLIENT("TCP/IP:" + portWebsocket$ + ":" + hostWebsocket$)
  4. file$ = ""
  5. EOL = CHR$(13) + CHR$(10)
  6. xHeader1$ = "GET /" + file$ + " HTTP/1.1"
  7. xHeader2$ = "User-Agent: websocket-sharp/1.0"
  8. xHeader3$ = "Host: " + hostWebsocket$ + ":" + portWebsocket$
  9. xHeader4$ = "Upgrade: websocket"
  10. xHeader5$ = "Connection: Upgrade"
  11. xHeader6$ = "Cache-Control: no-cache"
  12. xHeader7$ = "Sec-WebSocket-Key: rLtppj9rr1DwGJEPgS9dGg=="
  13. xHeader8$ = "Sec-WebSocket-Version: 13"
  14. x$ = xHeader1$ + EOL + xHeader2$ + EOL + xHeader3$ + EOL + xHeader4$ + EOL + xHeader5$ + EOL + xHeader6$ + EOL + xHeader7$ + EOL + xHeader8$ + EOL + EOL + EOL
  15. PUT #client, , x$
  16. Timer_GET! = TIMER
  17.     GET #client, , a2$
  18.     PRINT a2$;
  19. LOOP UNTIL TIMER > Timer_GET! + 1
  20. CLOSE client
  21.  

Pages: [1]