Don't look
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
if i understand you right
you will an open console window and the normal FreeBASIC gfx screen.
if so you don't use "-s gui"
and you can print to the console window with
You know what i mean ?
Joshy
you will an open console window and the normal FreeBASIC gfx screen.
if so you don't use "-s gui"
and you can print to the console window with
Code: Select all
with open "con:" for output as #1
print #1,"message in console window"
print "message in gfx window"
sleep
close #1
end
Joshy
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
Yeah I know what you mean. I don't use the -s gui parameter though, unless it does it automatically.
I wonder, is there a manual script that can be written to make your program windows invisible? I mean...with a keylogger, you need to have invisibility.
Although I hate doing this, I'm going to have to use someone else's if I can't get mine to work soon.
I wonder, is there a manual script that can be written to make your program windows invisible? I mean...with a keylogger, you need to have invisibility.
Although I hate doing this, I'm going to have to use someone else's if I can't get mine to work soon.
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
-
- Posts: 165
- Joined: May 27, 2005 14:14
- Location: Marshall, Oklahoma, USA
- Contact:
Were you wanting a Windows API to hide it with.
Just in case you are, you might check out the following:
ShowWindow hdlg, SW_MINIMIZED
........... OR maybe
ShowWindow hdlg, SW_SHOWMINIMIZED
........... and theres even a
ShowWindow hdlg, SW_HIDE
............ and to restore them
ShowWindow hdlg, SW_RESTORE
Just in case you are, you might check out the following:
ShowWindow hdlg, SW_MINIMIZED
........... OR maybe
ShowWindow hdlg, SW_SHOWMINIMIZED
........... and theres even a
ShowWindow hdlg, SW_HIDE
............ and to restore them
ShowWindow hdlg, SW_RESTORE
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
-
- Posts: 165
- Joined: May 27, 2005 14:14
- Location: Marshall, Oklahoma, USA
- Contact:
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
Yeah, I don't think I am. How would I go about using the API? And, umm....What does API stand for?
I'm using the plain old screen statements in FB. Nothing any more controlled or harder to do than that.
Honestly, I feel stupid now. Heh, and here I thought I was ready to start using more advanced programming techniques. Well, you have to start somewhere. ^_^
I'm using the plain old screen statements in FB. Nothing any more controlled or harder to do than that.
Honestly, I feel stupid now. Heh, and here I thought I was ready to start using more advanced programming techniques. Well, you have to start somewhere. ^_^
-
- Posts: 165
- Joined: May 27, 2005 14:14
- Location: Marshall, Oklahoma, USA
- Contact:
API is short for Application Programming Interface. It's a lower level language for Windows only.
Here's two tutorials that will help you understand it.
http://www.petesqbsite.com/sections/express/issue7/#gui
http://www.petesqbsite.com/sections/exp ... ue6/#fbgui
Here's two tutorials that will help you understand it.
http://www.petesqbsite.com/sections/express/issue7/#gui
http://www.petesqbsite.com/sections/exp ... ue6/#fbgui
-
- Posts: 165
- Joined: May 27, 2005 14:14
- Location: Marshall, Oklahoma, USA
- Contact:
You might try the follow code, It could work for your situation.
You have to get that Handle first with FindWindow and Findwindow can't work without you knowing the Title, So you have to give it a title with WindowTitle.
Anyway, give it a try.
Code: Select all
' $INCLUDE: 'win\user32.bi'
WindowTitle "Goofytitle"
ScreenRes 10,10,32,0
hWnd = FindWindow(NULL,"Goofytitle")
Sleep 2000
ShowWindow hwnd, sw_showmimized
Sleep 10000
ShowWindow hwnd, sw_restore
Sleep
You have to get that Handle first with FindWindow and Findwindow can't work without you knowing the Title, So you have to give it a title with WindowTitle.
Anyway, give it a try.