Search found 11 matches

by p2hicy
Mon Sep 08, 2014 12:36 pm
Forum: General Discussion
Topic: How to force Windows 8 to open second instance?
Replies: 11
Views: 4311

Re: How to force Windows 8 to open second instance?

I solved this problem some time ago by using a separate launcher for the main program.
by p2hicy
Tue Aug 19, 2014 5:41 pm
Forum: Coding Questions
Topic: Any PB command that set "request admin mode" automatically
Replies: 6
Views: 2103

Re: Any PB command that set "request admin mode" automatical

Windows heuristics sees the 'update' part in your executable name and automatically elevates it. You can turn it off in the compiler options by enabling "Request User mode for Windows Vista and above (no virtualisation)".

Source: http://technet.microsoft.com/en-us/library/cc709628%28WS.10%29.aspx
by p2hicy
Mon Nov 08, 2010 1:24 pm
Forum: Off Topic
Topic: when purebasic will become a serious fact?
Replies: 2
Views: 983

Re: when purebasic will become a serious fact?

Is that some kind of babelfish translation? :mrgreen:
by p2hicy
Sat Oct 23, 2010 6:31 pm
Forum: Tricks 'n' Tips
Topic: Modal Window Workaround(Win XP-Vista-7)
Replies: 15
Views: 4708

Re: Modal Window Workaround(Win XP-Vista-7)

That only works on the primary screen. On my 3 monitor setup, I'm still able to use the other two.
by p2hicy
Sat Nov 21, 2009 2:41 pm
Forum: Off Topic
Topic: Show me your color sheme and I tell you who you are!
Replies: 109
Views: 63286

Re: Show me your color sheme and I tell you who you are!

How about this?

Image

(Click for big)
by p2hicy
Mon Sep 28, 2009 7:11 am
Forum: Coding Questions
Topic: Run commands of Command Prompt
Replies: 12
Views: 5269

Re: Run commands of Command Prompt

If you can live with a short pop-up of the console window, you can use this:

ImportC "msvcrt.lib"
system(str.p-ascii)
EndImport

a$ = Space(500)

If OpenConsole()

If GetConsoleTitle_(@a$, Len(a$))
ShowWindow_(FindWindow_(0, a$), #SW_HIDE)
EndIf

system("sc query browser")

EndIf
by p2hicy
Sun Sep 27, 2009 6:37 pm
Forum: Coding Questions
Topic: Run commands of Command Prompt
Replies: 12
Views: 5269

Re: Run commands of Command Prompt

Code: Select all

ImportC "msvcrt.lib"
  system(str.p-ascii)
EndImport

OpenConsole()

system("echo oh hai")
system("pause")
That oughta do it. Now you can issue your commands directly as if you would type them into a command prompt window.
by p2hicy
Tue Dec 23, 2003 6:01 am
Forum: Coding Questions
Topic: Function Pointers
Replies: 11
Views: 4218

Code: Select all

Procedure thefunc(title.s, msg.s)
  MessageRequester(title, msg, #NULL)
EndProcedure

thefuncpointer = @thefunc()

CallFunctionFast(thefuncpointer, "hello i'm a title", "hello i'm the message")

by p2hicy
Sun Dec 21, 2003 7:58 am
Forum: Coding Questions
Topic: how to hook API calls ?
Replies: 11
Views: 3793

Any (working) results yet ? :)
by p2hicy
Mon Apr 28, 2003 4:36 am
Forum: Coding Questions
Topic: Problems with 3D - New: Fixed
Replies: 5
Views: 2263

I tried it with my Radeon 9000 Pro. It doesn't even start, i just got low-noise beeps.
by p2hicy
Fri Apr 25, 2003 5:53 pm
Forum: Windows
Topic: Hooks
Replies: 1
Views: 2806

Your code is creating a local hook. You have to set a global hook to catch the events if your application hasn't the focus. Change that line

hhook = SetWindowsHookEx_(#WH_Keyboard, @Hook(), hInstance, lpdwProcessId)

to

hhook = SetWindowsHookEx_(#WH_Keyboard, @Hook(), hInstance, 0)


But now ...