Yes! With that, I can finally play games on whichever monitor I want.
[QUOTE=Dj-J3;27605262][img_thumb]http://i54.tinypic.com/261dijk.png[/img_thumb]
- Made it a bit fancier.
- Added option to place the window at 0,0 or not move it at all.
- Can now resize it properly.
- Loads and saves width/height properly.
Download: [url=http://filesmelt.com/dl/Border_Remover1.rar]Here[/url]
Should i give the user ability to choose which monitor he wants the window to be placed on?[/QUOTE]
Filter the list so it only shows actual windows, rather than every process running.
Also, the ability to center the window on whatever monitor you send it to.
[QUOTE=Downsider;27594311][img_thumb]http://dl.dropbox.com/0/view/zkxtpqi8r9yplzq/Photos/Photo%20Jan%2022%2C%206%2034%2041%20PM.jpg[/img_thumb]
My abysmal tiles are quite saddening. Although you can't see it in this screenshot, I animated the character and I think it looks pretty good. I think the next step is to rework the interface for the player and create equippable items.[/QUOTE]
Those tiles look p. good to me.
[QUOTE=deloc;27600477]how trustworthy.[/QUOTE]
Tell me about another solution that doesn't give away my API key. Besides, hexxeh does it too in his iPhone application.
[QUOTE=garry;27603332]I know it's not web programming, but you should really use sanitise received data before you use it using mysql_real_escape_string. Although there isn't any real danger here because you can't run multiple mysql queries in PHP, it's bad practice.[/QUOTE]
I think you forgot to read the spoiler and my later post.
[php]// Make sure a module and valid device identifier are specified
if ( !isset( $_GET["uid"] ) || preg_match( "/^[A-Z0-9]+$/", $_GET["uid"] ) == 0 )
die( "Required parameter 'uid' missing" );[/php]
[QUOTE=CarlBooth;27605359]Filter the list so it only shows actual windows, rather than every process running.
Also, the ability to center the window on whatever monitor you send it to.[/QUOTE]
Done, and done :buddy:
[img_thumb]http://filesmelt.com/dl/center.png[/img_thumb]
[img_thumb]http://filesmelt.com/dl/topleft-secondarymonitor.png[/img_thumb]
(Centering works on any monitor, i just chose to show top-left on the secondary monitor instead.)
Download: [url=http://filesmelt.com/dl/Border_Remover2.rar]Here[/url]
[QUOTE=Dj-J3;27606492]Done, and done :buddy:
[img_thumb]http://filesmelt.com/dl/center.png[/img_thumb]
[img_thumb]http://filesmelt.com/dl/topleft-secondarymonitor.png[/img_thumb]
(Centering works on any monitor, i just chose to show top-left on the secondary monitor instead.)
Download: [url=http://filesmelt.com/dl/Border_Remover2.rar]Here[/url][/QUOTE]
I'd suggest changing the two mutually-exclusive checkboxes for place in centre\place in top-left into three radio-style options to do the two options there and "don't move" - it seems like a better design choice for what you're trying to achieve, plus it does exactly what you've accomplished and with less code on your part (so no toggling .Enabled anymore :smile:)
[QUOTE=Dj-J3;27606492]Done, and done :buddy:
[img_thumb]http://filesmelt.com/dl/center.png[/img_thumb]
[img_thumb]http://filesmelt.com/dl/topleft-secondarymonitor.png[/img_thumb]
(Centering works on any monitor, i just chose to show top-left on the secondary monitor instead.)
Download: [url=http://filesmelt.com/dl/Border_Remover2.rar]Here[/url][/QUOTE]
Didn't work for me. My windows just dissappears.
and as a minor timesaver it'd mean just one click to switch from centre to topleft instead of two. Because we all know how important optimisation is! :v:
[editline]24th January 2011[/editline]
you ninja.
[QUOTE=mechanarchy;27606743]I'd suggest changing the two mutually-exclusive checkboxes for place in centre\place in top-left into three radio-style options to do the two options there and "don't move" - it seems like a better design choice for what you're trying to achieve, plus it does exactly what you've accomplished and with less code on your part (so no toggling .Enabled anymore :smile:)[/QUOTE]
I've thought of that aswell, i'll do it straight away. :v:
[editline].[/editline]
Done. :3:
[img]http://i51.tinypic.com/54gjsm.png[/img]
[editline]23rd January 2011[/editline]
[QUOTE=DaMoggen;27606759]Didn't work for me. My windows just dissappears.[/QUOTE]
Make sure your height and width are set correctly, or auto size is checked. (what application were you trying it on?)
Anybody up for a competition?
[QUOTE=Loli;27607264]Anybody up for a competition?[/QUOTE]
Sure
What sort of competition?
[QUOTE=Dj-J3;27606492]Done, and done :buddy:
[img_thumb]http://filesmelt.com/dl/center.png[/img_thumb]
[img_thumb]http://filesmelt.com/dl/topleft-secondarymonitor.png[/img_thumb]
(Centering works on any monitor, i just chose to show top-left on the secondary monitor instead.)
Download: [url=http://filesmelt.com/dl/Border_Remover2.rar]Here[/url][/QUOTE]
You SO did that just to show off how big your screens are.
Added some additional information about the selected monitor, incase the user doesn't know which monitor is which.
[media]http://i52.tinypic.com/28at43k.png [url]http://i51.tinypic.com/zsmkch.png[/url][/media]
Download: [url=http://filesmelt.com/dl/Border_Remover4.rar]Here[/url]
[editline]23rd January 2011[/editline]
[QUOTE=CarlBooth;27607378]You SO did that just to show off how big your screens are.[/QUOTE]
Not really.
:smug:
[QUOTE=Overv;27606445]Tell me about another solution that doesn't give away my API key. Besides, hexxeh does it too in his iPhone application.[/QUOTE]
Why is it bad to give away your API key? I thought the idea was that it just identifies your application, not you.
[QUOTE=Catdaemon;27607584]Why is it bad to give away your API key? I thought the idea was that it just identifies your application, not you.[/QUOTE]
There is a reason API keys are tied to accounts on Facepunch. It's to prevent regular users from accessing the (unstable) API directly.
[QUOTE=DaMoggen;27606759]Didn't work for me. My windows just dissappears.[/QUOTE]
I just found out this is a bug, i'll fix it shortly. :v:
It's been fixed.
Download: [url=http://filesmelt.com/dl/Border_Remover4.rar]Here[/url]
[QUOTE=Overv;27607645]There is a reason API keys are tied to accounts on Facepunch. It's to prevent regular users from accessing the (unstable) API directly.[/QUOTE]
I think he's talking about the API key once it's released: every user will get his own key.
a question for you guys.
Winsock TCP, should I check after every received or sent message if I lost the connection with WSAGetLastError() ?
[QUOTE=likesoursugar;27608428]a question for you guys.
Winsock TCP, should I check after every received or sent message if I lost the connection with WSAGetLastError() ?[/QUOTE]
Both recv and send should work like their POSIX equivalents, so no.
[QUOTE=likesoursugar;27608428]a question for you guys.
Winsock TCP, should I check after every received or sent message if I lost the connection with WSAGetLastError() ?[/QUOTE]
check if you received a message of zero length
That means youve lost connection
[QUOTE=DrLuke;27608069]I think he's talking about the API key once it's released: every user will get his own key.[/QUOTE]
That's not how it works. Talk to compwhizzi if you want to know why.
[QUOTE=Loli;27607264]Anybody up for a competition?[/QUOTE]
Please don't make the deadline too soon, making games takes time you know!
[QUOTE=Icedshot;27608712]check if you received a message of zero length
That means youve lost connection[/QUOTE]
It won't return 0 when I exit my server.
This is ok tho, but maby a dumb way to do it "/
[code]
int TCP::Receive( char * message, const int length)
{
int bytesRecv = recv(m_socket, message, length, NULL);
if(bytesRecv == SOCKET_ERROR)
{
int error = WSAGetLastError();
if(error == WSAECONNRESET)
{
m_connected = false;
return 0;
}
return 0;
}
return bytesRecv;
}[/code]
[QUOTE=Overv;27608824]That's not how it works. Talk to compwhizzi if you want to know why.[/QUOTE]
i want to ask compwhizii why the api design is totally fucked up and utterly worthless.
[QUOTE=deloc;27609264]i want to ask compwhizii why the api design is totally fucked up and utterly worthless.[/QUOTE]
you sort of answered your own question there
[QUOTE=deloc;27609264]i want to ask compwhizii why the api design is totally fucked up and utterly worthless.[/QUOTE]
This. What kind of API requires you route the application through your own servers? It's pointless and insecure.
[QUOTE=likesoursugar;27609148]It won't return 0 when I exit my server.
This is ok tho, but maby a dumb way to do it "/
[code]
int TCP::Receive( char * message, const int length)
{
int bytesRecv = recv(m_socket, message, length, NULL);
if(bytesRecv == SOCKET_ERROR)
{
int error = WSAGetLastError();
if(error == WSAECONNRESET)
{
m_connected = false;
return 0;
}
return 0;
}
return bytesRecv;
}[/code][/QUOTE]
That seems fairly reasonable from here
If it works, and is fairly fast, its probably not dumb.
[QUOTE=Icedshot;27609634]That seems fairly reasonable from here
If it works, and is fairly fast, its probably not dumb.[/QUOTE]
I'll stick to it for now :3
Btw working on a network lib.
[QUOTE=Catdaemon;27609603]This. What kind of API requires you route the application through your own servers? It's pointless and insecure.[/QUOTE]
I just spoke to compwhizzi and he told me that I should make an effort to protect my API key. That means this is the only way it's going to work for now.
[QUOTE=DrLuke;27608069]I think he's talking about the API key once it's released: every user will get his own key.[/QUOTE]
Wouldn't it be the best if every user has his own API key and when he wants to use some application he just enters his own API key and all the stuff is done with his API key directly.
Sorry, you need to Log In to post a reply to this thread.