Applescript MS Word move cursor
Hi -- how do I use applescript to move the cursor
a few characters (left, right, down) in a word doc?
Thanks!
Hi,
You can also move the cursor without using the GUI Scripting.
Here are some examples :
tell application "Microsoft Word"
-- count : The number of units by which you want to move
move range text object of selection by a character item count 1 --move the cursor right
move range text object of selection by a character item count -1 --move the cursor left
end key selection move unit a line extend by moving -- move cursor to the end of line
home key selection move unit a line extend by moving -- move cursor to the beginning of line
move range text object of selection by a paragraph item count 1 -- move cursor to the beginning of next paragraph
--** move the cursor after the last character in the next paragraph, error if no (next paragraph)
set x to (get selection information selection information type first character line number) as integer
try -- try block to not display the error
move end of range (text object of paragraph (x + 1) of document 1) by a character item count -1
end try
end tell
Here is a list a (the unit by which to move the collapsed range) that you can use with the move range command : (a character item, a word item, a sentence item, a paragraph item, a line item, a story item, a screen, a section, a column, a row, a window, a cell, a character formatting, a paragraph formatting, a table, a item unit)
Also, there are other commands to move cursor, like move range end until, go to next , navigate, ...
Similar Messages
-
How to move cursor from one textfield to another textfield byusing enterkey
hii all,
I have a problem in java script.
To move cursor from one textbox to another text box ,I have take the length of the textboxes of the first column.I used onkeyDown event .
in the function ,firest i checked the condition like
for(i=0;i<form1.box.length;i++) //box is the name of the textboxes
if(event.keyCode==13)
form1.box[i+1].focus();
return false;
by using this the cursor is moving from first text box to secon textbox and stops.
if i use event.returnValue=false; instead of return false ,then the cursor automatically going to the laxt textbox of the column.
my problem is how i can focus the cursor from one textbox to another textbox one after the other till the end.
if any one has solution please help me.
also if we can do in another way also,please help me.
thanx.>try the following code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<SCRIPT language="Javascript">
function fnTest(str) {
if(event.keyCode==13) {
if(str == 4) {
formHeader.box[0].focus();
else {
formHeader.box[parseInt(str)+1].focus();
return false;
</SCRIPT>
<BODY>
<FORM name="formHeader">
<CENTER>
<INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('0');">
<br>
<INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('1');">
<br>
<INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('2');">
<br>
<INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('3');">
<br>
<INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('4');">
</CENTER>
</FORM>
</BODY>
</HTML>
---------------------------------------------- -
How to move cursor to a particular field in a form when the form opens
Hi All,
Using Forms Personalization how to move the cursor to a particular field in a form when the form opens.We are using Oracle Applications 11.5.10.2
Please let me know as soon as possible.
Thanks,
--John.Hi Satya,
Try the following
Open the forms personalization window
Seq: 10
description : Move cursor
Level : Function
On Condition Tab-
Trigger Event : when-new-item-instance
Trigger Object:- (The field on which the cursor is appearing now when you open the form ) for eg : If I am working on a vendor Master form in that case it would be -VNDR.VENDOR_NAME_MIR.
Processing Mode : Both
Context:
whatever context you want to do it respoansibility level or user level.
On the Actions Tab
Seq: 1
Type: Bulletin
Bulletin type : GO_ITEM
Argument : The field to which you want to navigate to. (In my case I want to navigate to Alternate name on the Vendor master form so it would be VNDR.VENDOR_NAME_ALT_MIR).
see if it works for you.
cheers,
Ankur -
In creating a playlist in iTunes of two different versions of a classical string quartet, can the movements be alternated in play order. In other words, Movement 1 by group A, followed by Movement 1 by group B?
In creating a playlist in iTunes of two different versions of a classical string quartet, can the movements be alternated in play order. In other words, Movement 1 by group A, followed by Movement 1 by group B?
-
Waveform graph:move cursor automatically to know coordinate
Good Day
Can i know how to move cursor automatically in the waveform graph
example: i have known Y =2 what is the value of x is...
which properties in property node should i use?
attached also my vi (Coordinate of XY data using cursor)
Best Regards
Ahmad Tarmimi
Solved!
Go to Solution.
Attachments:
coordinate XY.vi 40 KBGood Day
I was trying to program the cursor automatically but it does'nt seem working for me..
Can you please advise me on this matter...
Attached also my study pupose vi
Best Regards
Ahamd Tarmimi
Spoiler (Highlight to read)
Attachments:
cursor adjustment.vi 53 KB -
Move cursor through fields in screen with ENTER like TAB
Hello experts !
I want to move the cursor between fields in a custom screen just like kay TAB do.
I have used command:
MOVE CURSOR TO FIELD mara-spart... but it doesnt work, Cursor remains in th first field..,
any help?
Thank you and regards,
Ibrahim AndresFor example, here is the exact code which is working in my system and has been for quite a while.
The screen flow logic.
PROCESS BEFORE OUTPUT.
MODULE STATUS_1500.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1500.
The code for module status_1500.
* Module STATUS_1500 OUTPUT
module status_1500 output.
set pf-status 'STDCONSOLE'.
set titlebar '1500_07'.
<b> set cursor field cursorfield.</b>
endmodule.
The PAI module USER_COMMAND_1500
* Module USER_COMMAND_1500 INPUT
module user_command_1500 input.
case sy-ucomm.
when 'ENTER'.
<b>* Scroll thru fields when user hits enter
get cursor field cursorfield.
case cursorfield.
when 'P_TICNO'.
cursorfield = 'P_PERNR'.
when 'P_PERNR'.
cursorfield = 'P_WERKS'.
when 'P_WERKS'.
cursorfield = 'P_LGORT'.
when 'P_LGORT'.
cursorfield = 'P_AREAC'.
when 'P_AREAC'.
cursorfield = 'P_TICNO'.
endcase.</b>
endcase.
Here I'm using the same variable CURSORFIELD for setting/getting.
Regards,
Rich Heilman -
OCI: how to move cursor?
I'm writing a program with OCI (for Oracle server -linux) and gonna handle
as much data as number of millions.
The problem is that I have to show a page which can hold only 10~50 records
at once and if 30 records from 100000th row through 100030th row is to be shown,
I think I have to move cursor to the starting position(100000th row in this
case), right?
Is there anyone who can tell me how to make this work with oci library function?
All I can do at the moment is passing all those previous 99999 records by and
select next 30 records. You know, this takes very very long time and makes no
sense to end users.
Any suggestions or idea would be greatly appreciated.
nullOCI doesn't have any screen handling functions nor is it the purpose of OCI. If you want screen handling functions, you can use curses or GTK+ or, if you really want to shoot yourself in a foot, MFC.
-
Can't play A Thousand Words Movie on Spanish Audio
Bought A Thousand Words Movie on I Tunes, But when playing, on Spanish, It Change to French, and No Spanish Subtitles.
How can I Re Install the movie, or repair language issues. on my Movie. Since only English and french sound.Thanks QuickTimeKirk. I didn't know that about QuickTime not being able to play DVD movies. However am still interesed re the icon. Where is the icon supposed to be which I drag files to? On the desktop? There isn't an icon in the player.
Thanks
RF -
Move cursor position in TextField
hi all
I am creating a keyboard in flash. i want to move cursor
position in TextField to insert new character, if anybody knows
plese mail me.
thanks in advanceHey thanks v.seregin but i used an entirely different approach.
Here is my application where i m trying to move pen in input text box
This is an application in facebook please give any suggestions etc..
http://apps.facebook.com/linc-mydiary/
hey thanks to all people who solve our problems. -
Trackpad will click and select but will not move cursor
After breaking the trackpad in my early 2008 MBP I replaced it.
Upon startup the trackpad will click and select but will not move cursor... I have tried all system resets short of wiping and reinstalling OS.
Any suggestions?Because the click has to deal with a physical button press while the movement has to deal with the trackpad detecting the movement of your finger on it.
Just for giggles, if you hold down the Option key on bootup and get to the boot menu on it, does the mouse work then? If so, then it's an OS issue (could be a setting or some .plist that's jacked up. -
Touching the top next to keyboard changes programs and moves cursor.
Touching the top next to keyboard changes programs and moves cursor. Any Clues?
I would take it to an Apple Retail Store or an Apple Authorized Service Provider (AASP) for evaluation, or call your nearest Apple Contact Center. Visit the Genius Bar at the Apple Retail Store, make a reservation.
-
How does one move cursor to mid word?
can I reposition the ipod touch cursor to the middle of a word to crrect a single letter typing error? How ?I
See page 20 of the manual:
http://manuals.info.apple.com/en/iPodtouch_FeaturesGuide.pdf -
Making a horizontal menu button stay in same state when I move cursor down to submenu buttons?
Hello! I realized as I was typing the subject of this post that it was near impossible to describe without being confusing. So I'm going to let some screenshots do most of the talking. **DISCLAIMER: Ignore all formatting besides the "Parks" button for now**
First picture, the cursor is not on the "Parks" button. Second picture, I have rolled over the "Parks" button, changing the color of it (to the "rollover" state color) and revealing the submenu buttons. Third picture, I have moved the cursor down to the submenu buttons, and the main "Parks" button goes back to that original color. How do I get it to stay in the other color when I am rolling over submenus? In other words, I want the "Parks" button to stay light blue when I rollover/click the other menu options.
A good example of what I mean can be found on the header menu of http://www.generalassemb.ly
Thanks! Hope this wasn't too confusing.KGLAD - sorry i couldnt get that to work when i applied it to my own objects / instances...
there must be an easier way...
I am playing an FLV on my main stage and was trying to use the generic operators defined in flash for the play / pause buttons:
mc_MyVideo.playButton = mc_Play;
mc_MyVideo.playButton = mc_Pause;
Then i tried to modify this code to swap the buttons between each other on stage:
mc_Play.onPress = function(){
mc_Pause._x = 339.55;
mc_Pause._y = 12.2;
this._x = -100;
this._y = -100;
mc_Pause.onPress = function(){
mc_Play._x = 339.55;
mc_Play._y = 12.2;
this._x = -100;
this._y = -100;
the buttons work fine controlling mc_MyVideo when both are shown in different locations on the stage and without any other code.... but the moment i try to assign another function to either of them they stop controlling mc_MyVideo.
the closest i came was with an attachMovie function... when i pressed mc_Play it would start the movie and attach "mc_Pause" at the same time... thats the farthest i got...
- Pat -
Cursor does not move, Cursor does not move
Cursor does not move, can not be controlled by wireless mouse and normal mouse, Are there any solution for this problem? Thank!
in selecting the word, it is very difficult to just place a cursor in the word to make any correction, because it wants to highlight it and it is near impossible to deselect
The standard mouse/text selection action should only select a word when you double-click it. Therefore you should be able to position the cursor within a word by just single-clicking it.
when I do finally get a cursor to appear instead of a highlighted word, the arrow keys don't move the cursor to where I need it
That certainly sounds amiss. I don't think I've ever seen a case where the cursor keys don't move.
So I'm thinking Leopard must have some preference / key preference thing going on?
There is a Keyboard & Mouse preference pane in System Preferences which is clearly the place to start, but off-hand I can't think which options there would cause this kind of setup. -
Macbook pro 10.6.8 locks up yet trackpad still moves cursor?
My 2008 Macbook Pro running 10.6.8 (fully up to date) locks up completely though I can still move the mouse on the screen using the trackpad(I have not attempted a USB mouse to see if that still moves the cursor). The Dock does not appear when I mouse over the edge, and I can not get a Command/Option/esc. to pull up the force quit menu(just to see if there is a specific program not responding).
System does not recover given almost an hour to clear this morning. Had to force a shutdown via holding the power button. System restarted fine but has done the same thing twice now today.
I've been having sporadic video issues possibly related to the known Invidia Chipset failure issue. Checked the Mac at the local Apple store(did not present the issue then), was told to bring it back if it has another episode of video problems. I did get a short video glitch just before the second lock up and hit Command/Shift/3 to take a screen shot, which after rebooting showed a normal screen with no distortions present.
This is the first time it has locked up like this. Usually when the video issue happens I just see a reddish tint on the screen or it gets distortion lines over the entire screen.
Would a faulty Video chipset cause the entire system to lockup yet still allow mouse movement? Should I return to the genius bar for another Invidia check?I have a very similar issue with the trackpad that showed up yesterday on my MBP2008 running 10.6.8. I have been able to attached a usb mouse and navigate but the second I touch the pad, it locks up and the usb mouse becomes unusable. I then have to do a restart using the power button. No video issues though...
Maybe you are looking for
-
Hi there! I created an own extra folder in the message mail list and put there mails that once had been sent (it works as an archive but I did not use the archive-function). For obviously just mails in the Sent-File(s) show the receiver instead of th
-
Oracle 11g on CITRIX ( windows 2008 R2 ) OS batch file call fails
Hello Sir/Madam, I've been using HOST built-in to invoke a command window to call another application from my oracle application form. The application is GFS Forms 6i on Oracle 11g db w/ XP OS. This logic works. --XP OS logic: declare cmd varchar2(20
-
Please help me with this adobe player problem?
why isnt my adobe player working on my mac book pro I have downloaded it many times but when I go to youtube and other websites with videos i cannot watch them the screen goes black and says blocked -plug in why?
-
B2B Error:- AIP-16015 and AIP-16016 when deleting a TP Agreement
Hi B2B Guru's, I am getting the following errors while trying to delete a TP agreement in B2B. Error -: AIP-16015: Delete of Internal Delivery Channel Usage failed with error: Cannot delete Internal Delivery Channel Usage because parent Trading Partn
-
SAP BW: Adding my own indexes to Cubes
I am still on BW 3.0. I have a cube I know SAP BW provides several database indexes on FACT and Dimension Tables, but I want my DBA to add some of my own indexes for query performance. 1. If I delete indexes using manage ->Performance Tab, will