I have the window handle of another application and I want to remove it from the windows taskbar. I'd also like to remove it from the alt-tab menu. The window is a chrome app running my webpage, and I've experimented and I can effect it with MoveWindow successfully.
I just need to know how to declare the APIs to do this, if it's possible and how please :D
Thank you StackExchange!!!
Since all this got is 1 measly downvote, I managed to create a work around. I simple set the window state to hide or show using its handle.
Related
Is there any way to open the Find and Replace dialog in the Access VBA IDE programmatically? To be clear, not F&R on a form or control but in the code window itself? Access doesn't have SendKeys and I can't find any command to do it.
Reason I ask is I have an ultrawide monitor and the dialog always opens in the top left of the screen. I'd like to use WinApi's SetWindowPos to reposition it as I use F&R a lot in my current project. I'm considering rolling my own function using VBE Extensibility but checking here first for a quick solution.
Not that I know of, but you could check out MZ-Tools.
Its Find/Replace window at least opens where you left it:
I need to make a form visible even when I switch desktop on Windows 10 (by pressing Ctrl-Windows-Arrow) if possible, without any 2nd party lib
You can create multiple desktops by pressing Windows-Tab and clicking the + on the bottom-right corner.
Normally, a form only appears in the original desktop it was shown, and can be dragged to another desktop, but won't appear in multiples at the same time.
I know it's possible, because the splash forms of some applications do this. (Ex: Word, Excel)
I searched all over the web, but couldn't find a solution.
EDIT: Another app that I know that does this is the Task Manager, when you mark the "Always Show" checkbox.
This may be of some help. You have to dive into the world of AutoHotKey but this will solve your issues I'm pretty sure:
https://superuser.com/questions/950960/pin-applications-to-multiple-desktops-in-windows-10
Set your form's topmost property to true? Have you tried that?
I was wondering how to create a sort of auto clicker using VB.NET.
I would basicly have the click coordinates pre-defined and the clicks, which would have to be separated by delays I guess since I want more than one to happen periodically, would happen outside of the application window (I read this envolves extra system hooks?).
The only code I have been able to find is related to clicks on the application window, which is not what I am looking for.
In short: I want to click a button on the app window, which would initiate a number of clicks on certain pre-defined screen coordinates.
Thanks in advance :)
See this discussion on social.msdn: Simulate a mouse click in a program.
Uses winapi: SetCursorPos, GetCursorPos and mouse_event.
I believe you need to P/Invoke into Windows to accomplish this.
Have a look at the SendInput function.
If you are using automate the program,that program have some tabindex in order to relevant control.then you can use;
SendKeys.Send("{TAB}");
SendKeys.Send("{ENTER}");
it is more accurate on desktop application
Is there a way to make a "makeKeyAndOrderToFront" without beeing in the Application?
If I am in Safari and in the Menu Bar there is a MenuItem to my App, after I press this, i want to show a window of my App in the Front (makeKeyAndOrderToFront makes this just if you are in the Application).
Which way can I use? And how can I animate this Window (like Tweeties Add new Tweet -> atebits.com).
Thank you!
As you've discovered, changing the window order within your application does not have any impact on which application is active. You can bring your application to the foreground by activating it:
[NSApp activateIgnoringOtherApps:YES];
If your application had a dock icon the behavior would be similar to the user clicking on it.
Applescript would be a trivially easy way to make your app frontmost. It won't be doing any animation, though.
tell application "System Events" to set frontmost of process "My Application" to true
Perhaps the best way to accomplish what you want, if I understand the question correctly, is to have your application respond to an Apple event which you send to it after your menu item is selected which will bring your application and desired window to the front.
Provided your application has a connection to the window server (which it will if it's using AppKit or Carbon), you can use the Core Services function SetFrontProcess() to bring it to the fore. SetFrontProcessWithOptions() can be used to bring only the frontmost non-floating window of your app to the fore. These functions appear to be available to 64-bit applications, but if you're targeting 10.6+, you're likely better off using the NSRunningApplication class. Something like
[[[NSRunningApplication
runningApplicationsWithBundleIdentifier:ident] lastObject]
activateWithOptions:0]
should do the trick.
When I try to add any widget (label, button ...) to main application Window in Gorm, the Window does not accept the widget. I try to drag and drop but nothing wants to 'stick'. When I select and left click on button widget in palette window the curson changes to '2 green squares'. When I start dragging it changes to '2 black squares'.
Another problem is that the 'Document' window opens really long window (stretches about 5 times the width of my screen) but apart from NSOwner, NSFirst, My Window and NSMenu icons it is empty.
Any ideas what is wrong?
I'm running linux with fluxbox-1.1.1
I've compiled gorm-1.2.8 and gnustep-startup-0.22.0 that contains:
ffcall-1.10
gnustep-back-0.16.0
gnustep-base-1.18.0
gnustep-gui-0.16.0
gnustep-make-2.0.7
gnustep-objc-1.6.0
libffi-3.0.1
Any help is appreciated.
Thanks
Maybe there's a compatibility issue or some conflict between existing run time libraries and the new ones that I'm trying to add. Doesn't seems like there's a straightforward answer for this. Nevermind, I gave up trying atm. Maybe later when I setup another Linux box I give it a try - I'll stay with Mac OS X for now :)