Where is the cursor?
if you do a
BufferedImage screenshot = new Robot().createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
you will get a screenshot, but without the cursor. Is it possible to also have the cursor on the screenshot?
Thank you!!
referr: http://forums.adobe.com/thread/452365?tstart=30
<script language="JavaScript" type="text/javascript">
function setFocusToTextInput()
document.getElementById('${application}').focus();
<!--
// Globals
// Major version of Flash required
var requiredMajorVersion = ${version_major};
// Minor version of Flash required
var requiredMinorVersion = ${version_minor};
// Minor version of Flash required
var requiredRevision = ${version_revision};
// -->
</script>
on creationcomplete event call
init(event);
public function init(event:Event):void
ExternalInterface.call('setFocusToTextInput');
this.username.setFocus();
Similar Messages
-
Quck, where's the cursor? Can Python tell us?
My problem is very simple. I've got to write a python application that can do some crap based on the location of the cursor on the screen. So... how do I find the location of the cursor on the screen? I can use a gtk app, but I'm guessing that the app would require focus, which can't happen. I'm actually hoping to make it a terminal app... hm, something like xkill, actually. ;-) So I'm thinking maybe I need a simple python-xlib call or something like that. Any ideas?
DustyHere, I got bored: setup.py and xmouse.c follow.
xmouse.position() returns a tuple of (xposition,yposition,window id)
from distutils.core import setup
from distutils.extension import Extension
setup( name = "xmouse",
version = "0.1",
ext_modules=[Extension(name = 'xmouse',
sources = ['xmouse.c'],
libraries = ['X11'])]
#include <Python.h>
#include <X11/Xlib.h>
PyObject* xmouse_position(PyObject* self, PyObject* args)
Display* dpy;
int screennum = 0;
char* display;
Window rootwin, childwin;
int root_x, root_y;
int child_x, child_y;
unsigned int mask;
PyObject* ret = NULL;
PyArg_ParseTuple(args, "|zi", &display, &screennum);
dpy = XOpenDisplay(display);
if(!dpy)
/* TODO is this right?? */
PyErr_SetString(PyExc_Exception, "cannot open display");
return NULL;
if(XQueryPointer(dpy, RootWindow(dpy,0), &rootwin, &childwin,
&root_x, &root_y, &child_x, &child_y, &mask) == True)
ret = Py_BuildValue("(i,i,i)", child_x, child_y, (long)childwin);
else
ret = Py_BuildValue("(i,i,i)", root_x, root_y, (long)rootwin);
XCloseDisplay(dpy);
return ret;
PyMethodDef methods[] =
{"position", xmouse_position, METH_VARARGS},
void initxmouse(void)
Py_InitModule("xmouse", methods); -
Where is the cursor after calling setFocus on AS created TextInput?
I am having trouble getting a TextInput field to replace the current selection when the user starts typing without having to first click the field. I have seen that many people face this problem when initially loading the movie, but this is not my case. In my case, Flash already has focus, I have created a TextInput field via AS and made it invisible. At a given point a user double clicks a label and I display ( textInput.visible = true) the the field and setFocus to it. The text is correctly highlighted and the focus border shows but typing produces no effect until I click inside text field and get a cursor there. Is there something else I need to do aside from setFocus? I have also tried setting the selection manually to zero width, and this causes the field to have the focus border but no cursor whatsoever, until the field is actually clicked.
Ruyreferr: http://forums.adobe.com/thread/452365?tstart=30
<script language="JavaScript" type="text/javascript">
function setFocusToTextInput()
document.getElementById('${application}').focus();
<!--
// Globals
// Major version of Flash required
var requiredMajorVersion = ${version_major};
// Minor version of Flash required
var requiredMinorVersion = ${version_minor};
// Minor version of Flash required
var requiredRevision = ${version_revision};
// -->
</script>
on creationcomplete event call
init(event);
public function init(event:Event):void
ExternalInterface.call('setFocusToTextInput');
this.username.setFocus(); -
Update only the row in DB where the cursor are positioned using Write Back
Hello,
I need to have the possibility to create/change values (insert or update data back into the database), dynamically or by typing, in some columns of the physical DB that are mapped in a report request, and that new or changed values could be used as a filter columns in another report request.
So, I have created a new report request in a Subject Area where a certain column of the request result could be editable to make possible change the present value and then write it back in the physical DB.
I have implemented for the column name ‘MOV_VALUE’ the value interaction type format Write Back, and every time I changed any value on this column it updates all rows with this same value from the table ‘MOVEMENTS’.
See below the Template file used in the Write Back table properties:
<?xml version="1.0" encoding="utf-8" ?>
<WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
<WebMessageTable lang="en-us" system="WriteBack" table="Messages">
<WebMessage name= "UpdateMovementData">
<XML>
<writeBack connectionPool="Connection Pool">
<insert> </insert>
<update> UPDATE MOVEMENTS SET MOV_VALUE=@{c4} </update>
<!-- <postUpdate>COMMIT</postUpdate> -->
</writeBack>
</XML>
</WebMessage>
</WebMessageTable>
</WebMessageTables>
Is there any possibility to only update the record from where it is the cursor positioned by using the Write Back in the Answers report?
Is necessary to create any condition to the where clause for the update statement? Which conditions?
Thanks in advance.
Regards,
Pedro ResendeYou might try posting to a BPM forum. BPM is a layered product that happens to use WL JMS, but I think most of the folks on this forum aren't familiar with BPM.
Tom -
Index of the row where the cursor is clicked
Hi all,
I need to set some values in table control for the fields where i clicked the cursor. Actually i am using the below code but its not working...
lo_el_zdcapsc = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
lv_sel_index = lo_el_zdcapsc->get_index( ).
lo_nd_zdcapsc->set_attribute(
EXPORTING
index = lv_sel_index
name = `ZPLANTID`
value = lv_plant ).
For example I placed the cursor in 3 row at the plant column in my table control. So only 3 row plant value has to be set.
Can anybody tell me how to read the index when a cursor is placed at a particular row.
Regards
Sireesha.hi
u can use get_index method to get the index of the particular row selected
data: lr_element type ref to if_wd_context_element.
DATA ls_cn_node TYPE wd_this->element_cn_node.
lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
* get all declared attributes
lr_element->get_static_attributes(
IMPORTING
static_attributes = ls_cn_node ).
data lv type I.
lv = lr_element->GET_INDEX( ).
u have got the table row values in a strucure , now u can set it to new value
regards,
amit -
After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?
Even simpler than that.
Clicking once in a text box selects it.
Clicking once in a selected text box places the insertion point in the box.
The clicks do not need to be close enough in time to be read as a double click.
The same behaviour applies to table cells in Pages and in Numbers.
Regards,
Barry -
I cannot type into one of my pdf files. The cursor only appears where there is no typing. I believe there is foul play going on on my computer, Can you fix this problem?
Hi Donna,
Let's see if we can get to the bottom of this mystery! I hope it's not foul play.
You say the problem is with just one of your PDF files? What version of Acrobat/Reader are you using? If you're in Reader, you're limited to commenting/annotating the PDF (you can't edit text with Reader, so you wouldn't be able to select text that's in the PDF already).
Please let me know what program/tools you're using and we can take it from there.
Best,
Sara -
My kids have been playing on my iMac and I now have a black box on the screen that describes where the cursor is or what I am typing etc.
Can anyone help me with removing this box
I thought it might be subtitles but not sure?How about asking your kids?
Care to share which OS you are using? -
Where is the default DnD cursor?
Does anyone know the class name of the default DnD cursor (or how to get it from a factory)?
It doesn't appear to be associated with any of the awt.Cursor contants (awt.Cursor.MOVE_CURSOR, awt.Cursor.CROSS_HAIR_CURSOR, etc.).
I'd like to use it in an app that explicitly sets the cursor. (I imagine that it' somewhere in javax.swing.plaf.*, but I haven't been able to find it.)
Thanks,
bwBe sure in Folder Options, your view settings do not hide file extensions, so you'll know a PST when you see it. The default path actually depends on 3 things: OS version, Outlook version, whether the installer
or subsequent administrator changed the defaults. It will be in one of these three places, where %username% is obviously the name of the user in question, and everything is on drive letter C:
1) XP and older: C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Outlook
2) Vista & Windows 7: C:\Users\%username%\Documents\Outlook Files
3) Vista & Windows 7: C:\Users\%username%\AppData\Local\Microsoft\Outlook
This Microsoft document elaborates on more than Outlook 2010, including the information above, and the easist way to find the default location:
http://office.microsoft.com/en-us/outlook-help/where-does-microsoft-outlook-2010-save-my-information-and-configurations-HP010354943.aspx -
How to sent text from my C# WinForm program to another program - where the cursore is
hi
how to sent text from my C# WinForm program to another program - where the cursore is
for example: i have in my program label that contain "ABC" , when i press 'Z'
the ABC will Appears where the cursore is standing.
how to do it ?
what to look for ?
thanksHi E_Gold,
You'll need to:
1) Bring the app to the front
2) SendKeys to the app
This code will send "ABC" to MS Word:
using System.Runtime.InteropServices;
private void Form1_Load(object sender, EventArgs e)
// Send the keys 'ABC' to MS Word:
SendKeysToApp("word", "ABC");
private void SendKeysToApp(string appName, string keys)
if (BringAppToFront(appName))
SendKeys.Send(keys);
[DllImport("User32.dll")]
private static extern void SwitchToThisWindow(IntPtr hWnd, bool fAltTab);
private bool BringAppToFront(string processName)
IntPtr hWnd = HWnd(processName);
if (hWnd != new IntPtr(0))
SwitchToThisWindow(hWnd, true);
return true;
else
return false;
private IntPtr HWnd(string processName)
IntPtr hwnd = new IntPtr(0);
using (Process process = ProcessGet(processName))
if (process != null)
try
IntPtr h = process.MainWindowHandle;
hwnd = h;
catch
if (hwnd != new IntPtr(0))
return hwnd;
return hwnd;
public Process ProcessGet(string processNameToGet)
if (processNameToGet == "")
return null;
Process[] processes = Process.GetProcesses();
foreach (Process process in processes)
if (process.ProcessName.IndexOf(processNameToGet, StringComparison.CurrentCultureIgnoreCase) != -1)
return process;
return null;
For info on sending special keys such as "Enter", so this page on MS website:
SendKeys Class
Hope this helps.
Thanks, Andy -
On a web form, I used to be able to enter info. Then when I got the info I needed, I was able to Back Page and the cursor would "remember" where I left it last.
Now, when I Back Page, the cursor goes to the beginning of the form which means that I must replace the cursor at the proper place and enter in new info.
Using FF 4.0 with Vista 64 on my Desk Top.This is probably due to a problem with an add-on. For details of how to troubleshoot that see https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
The AVG Safe Search add-on has caused this problem for some. -
i cannot type a capital i using the left shift key. also keyboard now putting the cursor in a different place than where i type while i am typing. Checked speech keys, all fine. Batteries fine. Also used the keyboard check program on the imac, shows key ok.
wireless mouse will suddenly scroll down horizontally and won't stop. when i am on a webpage it will bounce back to the previous page without my doing so. i have tried adjusting the mouse several times, turning it on and off, and now am using my wacom mouse which also seems to have issues with this computer. i have only had this a few months and getting very frustrated.Can you try a different keyboard to see if the problem persists? Also, you have 90 days of phone support when you buy a mew mac.
-
When I am in Gmail or most other sites, when I type it automatically goes to the address bar. For example, in Gmail, I will click reply, and the cursor starts flashing in the message box. However, when I start typing, it goes into the address bar instead. When I am on another website (for example I am on my library website), i place my cursor in a field, start typing, and again it goes in the address bar. I have tried disabling the add-on, but it doesn't appear in the list of add-ons. When I search, I have the option of installing, as if I don't already have it. Any suggestions would be helpful!
Hi,
There are a few keyboard shortcuts that jumps to the awesome (location) bar. Please see [https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly?redirectlocale=en-US&redirectslug=Keyboard+shortcuts#w_miscellaneous this]. You can try to check if any keys are stuck.
If keyboard problems can be ruled out, you can also Reset Firefox.
The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us! -
When in a program (IE 11 or Word, Outlook, etc..) my User will begin typing. After a few characters the system will just stop accepting the typing. The User will have to Click in to the field to get the cursor back to the correct point & begin typing
from that point.
This seems to happen very frequently for all my users. We recently deployed new PCs with Win 7 32-byte on them to everyone. Has anyone seen this happen and have any remedy for it?
I have replaced the keyboard thinking that is the issue but upon further research I am leaning more toward it being a Windows 7 issue.
Les Rose Network AdministratorHi,
This issue may be caused by the below reasons:
The mouse. The cursor missing from the current page may be caused by the mouse lost its focus point, this may because of the mouse itself or some other elements(Mouse pads and mouse drivers) which may affect
the function of the mouse. If laptops, please try to disable touch board.
Other applications. Please check if there are any applications(Usually some virus or scripts) running automatically when typing, some applications may call the cursor out when it starts.
Network connection. If you use the wireless network, please make sure the connection is well configured on the client side, check WLAN NICs and the driver.
The printer driver. In addition to this, please also verify the PC have all the other drivers up-to-date.
Please take a health check and update the anti-virus databases, if possible try a clean boot , also change a mouse and check the other aspects and see if the problem still exists.
Hope this may help,
Best regards
Michael
If you have any feedback on our support, please click
here.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Where is the blinking cursor on reply input box?
When I click on reply to answer a post, I get the expected input box. No matter how long I wait, I do not get the blinking cursor that allows me to type in my answer. I have to use my mouse to click in the input box so I can begin my typing.
Have other people observed this? I am using TenFourFox on Tiger.
RobertI did find this way of getting the cursor in the text field:
click on html
type a letter
click on use regular editor
cursor appears in text field
delete letter. You need some text for the cursor to be placed.
While not typical protocol, my understanding is that Apple is watching this forum for comments on the new discussion groups.
> The same thing happens pretty much anywhere javascript is used to reveal a text field.
Tuttle, I cannot resist, sorry.
I do not care whether they use javascript or tiddlywinks. It's up to the developer to use the appropriate tools to produce a workable GUI.
>(Have you ever tried to post a comment to the New York Times or Washington Post websites, e.g.?)
I can't help it if they employee poor programmers. If I recall correctly from my JavaScript programming days, there is a control you use to place the cursor in a field. I used the beta version of Yahoo mail just now, it puts the cursor in the input box when I did a reply to a message.
The forum software seems to be running faster today. This is very good news if it continues.
Robert
Maybe you are looking for
-
Wireless radio is not functioning fails diagnostics HP Photosmart 309a All In One
Can't find printer on network. was set up and working fine previously. Have run diagnostics and rebooted systems following HP manual. Diagnostic test shows wireless radio fail and show critical : Action required. Contact HP support. Warrantee is expi
-
Documentation of Service Contracts API -- OKS_COVERAGES_PUB
Hi All We have a requirement in the OKS Service Contracts Module, in which a Concurrent Program has to be created, such that it will detach the old coverage template and attach the new coverage template to the existing contracts. We tried with the St
-
Update Mac OS 7.1 to 7.5 or 7.6
Hi! I've got an old LCIII with System 7.1 (in Spanish) which I don't usually use, but I like to update its System 7.1 to 7.5 or 7.6. I'm looking for the way to do it, but I could't find how to update System 7.1 to 7.5 Where do I start? Thanks a lot!!
-
Hardware: Hardware Overview: Model Name: Mac mini Model Identifier: Macmini1,1 Processor Name: Intel Core 2 Duo Processor Speed: 2 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 4 MB
-
Is there any way to get the photo collage screensaver to read EXIF data rather than file created data? I just had to go in and touch all of my photos to a date because when I moved them over to this computer, they all got stamped with that date as th