Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

want to disable ALT+TAB key using java

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to disable ALT+TAB key using java. I try to disable ALT+TAB key but don't get succeed.
So Please give me some help for get out of this problem.
 
Sheriff
Posts: 22649
126
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alt+Tab is handled by the operating system before it gets passed to Java, so the only option is to intercept these key events before the operating systems handles them. That could be possible through JNI, although to be honest I have no idea how.
 
Marshal
Posts: 75698
354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Too difficult for "beginning". Moving thread.
 
arun singhal
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not beginner Please give me any type of solution.So that I can get out of this problem.I am trying to disable ALT+TAB key by JNI(JAVA NATIVE INTERFACE).But Can't get succeed.Please help me.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why are you trying to do this? You're basically saying "I am now going to break your computer."

You don't even say which OS you're trying to do this to.
 
arun singhal
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry!!!
I am using Window 7 OS.
And I am going to tell why I want to Disable ALT+TAB key using java.....
I am making a project on CYBER CAFE MANAGEMENT in window 7 OS.
In this project When client come to cyber cafe. Then server administrator give unique username and password to client for a time limit like one hour or two hour.
Then when client use computer allotted by administrator in cyber cafe then client only can use other application after login.
And I am making LOGIN interface that have FULL SCREEN.And if Client want to close that that interface without login Then Client can not get succeed.
For that I need to disable ALT+TAB key.
Please Help me to get out of this problem...
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you are using the wrong hammer to hit this nail, so to speak. Have you looked into the Local Security Policy admin tool? Also, have you searched the Win32 API to locate a function that would enable you do do what you want?

Have you googled windows disable alt+tab? I just now did and found some C code that does what you are asking for.
 
Marshal
Posts: 27211
87
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

arun singhal wrote:Sorry!!!
I am using Window 7 OS.
And I am going to tell why I want to Disable ALT+TAB key using java.....
I am making a project on CYBER CAFE MANAGEMENT in window 7 OS.



Then you should choose a different language. All of the key things you have to do for this cannot be done in Java. As already said, you could use JNI to do those things, but if I were grading a Java project and all of the important parts were done in some other language, I wouldn't give it a good grade at all.

Of course I may be making some incorrect assumptions about the requirements for your project.
 
arun singhal
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:
Then you should choose a different language. All of the key things you have to do for this cannot be done in Java. As already said, you could use JNI to do those things, but if I were grading a Java project and all of the important parts were done in some other language, I wouldn't give it a good grade at all.

Of course I may be making some incorrect assumptions about the requirements for your project.



Ok..
I am working on this from some days And not getting success so much.
So that now I am changing approach to Login to client.
Now i am thinking to make an application like logon screen in which unique user name and password are given to each client by server administration.
Can it is possible to make an application like logon screen like in windows logon screen???
If possible then give some idea to make this application using java.
 
Paul Clapham
Marshal
Posts: 27211
87
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, sure you can make a login screen. That's pretty trivial. But if your intention was to hack Windows so that it displayed your login screen instead of its own login screen, that's not trivial at all. Probably not even trivial if you wrote it in a Windows-specific language given the potential for security violations. And again, Java wouldn't be the language to use for hacking Windows.
 
arun singhal
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:Well, sure you can make a login screen. That's pretty trivial. But if your intention was to hack Windows so that it displayed your login screen instead of its own login screen, that's not trivial at all. Probably not even trivial if you wrote it in a Windows-specific language given the potential for security violations. And again, Java wouldn't be the language to use for hacking Windows.



No no...
I don't want to hack windows login screen.
I just want that we login in windows.After that my logon screen came .And then client can use other application after login in my own login screen.
Is it possible to make this type of login screen using java.
Please help me to get out of this problem.
 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I understood your requirement.
You want to provide access of computers to authorized users only.
If you don't successfully login, you can't do anything else on computer.

I don't think a Java application can't be killed so don't think in the direction that by keeping it in full screen mode you'll stop users to access other applications.
 
ankur rathi
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you disable Alt + Tab. User can press Alt + Ctrl + Delete & kill your application.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Search the web for "kiosk mode" for Windows; it'll have more information.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Mr arun Singhal

I have started to work on the same login Project in JAVA

Please share with me as much info as possible........
 
I once met a man from Nantucket. He had a tiny ad
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic