Anybody have a good idea on how to shake client access? I can do it in a web browser using javascript. But I want to shake client access screen. I could call some windows program if I knew of a windows program already out there that would shake the screen. I want to do this for a BIG TIME error. The users just don't see it. My next solution is creating shocking keyboards and mice. Boss won't let me try it yet on anyone...lol
Thanks for any ideas
Software/Hardware used:
ASKED:
January 11, 2010 9:39 PM
UPDATED:
January 14, 2010 3:53 PM
Hmmm… after pasting the CL in above, I see that this editor added a single blank at the beginning of each line. I’m not sure if that will make a huge difference, but it’s probably a good idea to trim one space from each line in Notepad before pasting into SEU. YMMV.
Tom
As an alternative, you could make the error message text blink and change color and lock the keyboard so that any further keystrokes cause a beep to be emitted from the PC.
I could do all that but like he shaking you can do in an HTML browser using javascript. There has to be away to do it.
It would have to be a Windows program…but…how? I know that you could install on every machine that would need this effect, or in a folder mapped to or accessible to every machine, a Windows program. That program can be called by strpco/runpccmd(?). Then, the program gets the handle of the Client Access window and uses Windows APIs to move it around, leaving it alone for a few milliseconds before moving it again.
I’ve done some similar tricks with ‘helper’ programs in Windows, but in my case I was using a Visual Basic 6 program called from a strpco session that grabbed the handle of my window and hid it temporarily.
Perhaps there is some program out there that you can use that would do this. Or, if you have some Windows coding skills, you may want to look into some of the Windows APIs that are available.
HTH.
Thats exactly what I want to do. We use terminal services so all I need to do is install the window program on the server. So I need a windows program to do this.. Any ideas anyone?
It’s not particularly difficult to reposition a window multiple times in order to give a “shaking” effect. Where it would seem to get tricky would be getting a window that belonged to a different program/application and making that other program’s window shake. The emulator window isn’t yours. I.e., it won’t be a window that is created and maintained by whatever program you create or use. It might not even be a “window” — it might be full-screen.
I’m sure it could be done, but I wouldn’t even want to do the work needed to identify the process and then identify which window.
If you can’t pop-up a window (e.g., via QUSLNGTX API), then the best you might be able to do is access the presentation space. The iSeries Access emulator APIs would allow you to grab the ‘color’ layer for example. I suppose you could zip through the array and invert each color a few times. It should at least give a striking result if nothing else as the entire window inverted colors in a cycle for however many times you chose, until some event like clicking a mouse happened.
I suppose.
You’d still want to be sure about which window (which session) was involved.
Tom
I found some VB windows code that shakes the screen when the program is called. All I need to do it compile it and try it out. It looks like it shakes the screen that is up or active/lactive on the clients screen. So that should work. Unless soemone has a program that is already compiled? I have my doubts on some of the code that I got online.
After a bit of research into my code, I see that I used my Windows program to start Client Access. When you use VB6′s ‘shell’ command to run a program, you are _provided_ with the handle of that program. Then, you are free to use such APIs as ‘SetWindowPos’ to affect it. But, if you’ve found a program ready-to-use, it would be worth it for you to test it out, unless you are also a VB6 guru and ready to take this on…