How to invoke right keyboad (Finnish) for DOS-progs
Now my DOS-programs (in my new Win7 34bit ThinkPad) get AMERICAN keyboard (like "/" and no "äö"), whereas in the preinstalled Cmd-Prompt the keyboard is correctly FINNISH. How can I change (keyboard driver of DOS) into a (DOS-Cmd-Prompt and Windows similar) FINNISH keyboard (driver). Does this require some setting into a "Config.nt" and/or "Autoexec.nt"? And how is that "Config.nt" entered into my DOS-program's short-cut?
Thanks for help
Moderator edit: Removed email so SPAMbots don't get it.
The robot class looks promising.
The command line might be useful if I can find out a way to choose the printer using the printDialog.
I wouldn't have to do any of this if I can get the JEditorPane to give me back the correct size. I know it IS the correct size because I can make it visible and look at it. But then when I print it the height is way off.
Thanks for all your help. I've been pounding on this for a week now.
Similar Messages
-
How to display right-click menu for JPanel?
Hi...
I am developing an application to display a JWindow in the screen along with a TrayIcon in the system-tray area. There should be a right-click menu in both the tray icon and JWindow for further options.
I am able to create a JPopupMenu for tray icon. On right-clicking on the tray icon, the menu is being displayed. But not able to do the same for the JWindow. I am able to capture the right-click mouse event, but not able to display the menu.
This is how I am displaying the menu for the tray icon
PopupMenu popupmenu = new PopupMenu();
MenuItem menuitem1 = new MenuItem("Exit");
menuitem1.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent exx)
System.exit(0);
popupmenu.add(menuitem1);
trayicon = new TrayIcon(Toolkit.getDefaultToolkit().getImage("./images/Icon.gif"),"Right-click for more options",popupmenu);For displaying the menu in the JPanel, I am using the following snippet...
public class MyMouseListener extends MouseAdapter
public class MyMouseListener() {}
@Override
public void mouseClicked(MouseEvent e)
if (e.getButton() == MouseEvent.BUTTON3)
System.out.println("Clicked");
jp.setComponentPopupMenu(popupmenu);
}Can anyone please help me to do this??
Thanks in Advance...Hi,
PFA the code I am using...
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DisplayStrip extends JWindow implements MouseListener, MouseMotionListener
Point location;
MouseEvent pressed;
JPanel jp ;
JLabel jl ;
JPopupMenu popupmenu ;
public DisplayStrip()
addMouseListener( this );
addMouseMotionListener( this );
public void mousePressed(MouseEvent me)
pressed = me;
public void mouseClicked(MouseEvent e) {}
public void mouseReleased(MouseEvent e) {}
public void mouseDragged(MouseEvent me)
location = getLocation(location);
int x = location.x - pressed.getX() + me.getX();
int y = location.y - pressed.getY() + me.getY();
setLocation(x, y);
public void mouseMoved(MouseEvent e) {}
public void mouseEntered(MouseEvent e) {}
public void mouseExited(MouseEvent e) {}
public void DisplayStripRun()
setSize(100, 10);
setAlwaysOnTop(true);
jp = new JPanel();
jp.setBackground(Color.GREEN);
jp.addMouseListener(new MyMouseListener());
jl = new JLabel();
jl.setText("Right-click Here");
jp.add(jl);
add(jp);
setVisible(true);
pack();
popupmenu = new JPopupMenu();
JMenuItem menuitem = new JMenuItem("Exit");
menuitem.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent exx)
System.exit(0);
popupmenu.add(menuitem);
public static void main(String args[])
DisplayStrip ds = new DisplayStrip();
ds.DisplayStripRun();
public class MyMouseListener extends MouseAdapter
//public class MyMouseListener() {}
@Override
public void mouseClicked(MouseEvent e)
if (e.getButton() == MouseEvent.BUTTON3)
System.out.println("Right clicked");
jp.setComponentPopupMenu(popupmenu);
popupmenu.setVisible(true);
} -
How to change soundblaster PCI64 IRQ for DOS - win98
Running Windows98se, recently added wireless Zonet adapter for internet capabilities. MSDOS games (DOS/4GW) requires sound card IRQ 7 or lower. My IRQ's are as below. Note: I have no manual for the creative Labs Soundblaster PCI 64 card(IRQ 0) or, Ensoniq Audio legacy Device. Tried device manager and sysedit changes without success. DOS games video is OK but no sound, nor will the in-game sound card configuraton work. How do I change its IRQ to 7 or below? I have no printer on the computer.
0 System timer
Standard 0/02-Key or Microsoft Natural Keyboard
2 Programmable interrupt controller
3 Telepath 56K Voice Faxmodem PNP
4 Communications Port (COM)
5 802.g/b Wireless LAN Client Adapter
5 IRQ Holder for PCI Steering
6 Standard Floppy Disk Controller
7 Printer Port (LPT)
8 System CMOS/real time clock
9 Matrox Millennium G450 DualHead
9 IRQ Holder for PCI Steering
0 Creative Labs Sound Blaster PCI64
0 IRQ Holder for PCI Steering
Intel 8237AB/EB PCI to USB Uni'versal Host Controller
IRQ Holder for PCI Steering
2 PS/2 Compatible Mouse Port
3 Numeric data processor
4 Primary IDE controller (dual fifo)
4 Intel 8237AB/EB PCI Bus Master IDE Controller
5 Secondary IDE controller (dual fifo)
5 Intel 8237AB/EB PCI Bus Master IDE ControllerTry another PCI Slot, or set IRQ 0 as RESERVED in BIOS Plug&Play configuration. Make shure you installed the dos-drivers correctly. Set the soundblaster variable correctly. And dont expect a PCI card will work with your dos-games. You will need an ISA card for 00% compatibility because: It doesnt need drivers, Dosgames will have its own, and: the card is directly accessable.
-
UIX: How to invoke List Binding Editor?
When building input form, I am dropping some message choice components which then automatically opens List Binding Editor.
However, if I want to modify something, how to invoke List Binding Editor for the EXISTING component on the UIX page?0. With your UIX page active in the editor
1. Select the "UI Model" tab in the Structure Window
2. Select the list binding in the UI model
(also known as your binding container)
3. Right-mouse Edit... -
If I have two email accounts, one personal hotmail account and one MS Exchange work account on my iPhone 4s, How can I setup individual notifications for each account? Fore example, if I get a work email, I want to hear a DING, DING....If I get a personal email, I want to hear a BEEP, BEEP. Right now, any email from any account has the same notification. I want work incoming email notification to be different than personal incoming notification. The only semi-workaround I've seen is just disable any notification for the Hotmail account, so only work emails would notify. But then I don't know when I get a personal email. Even the lowely Blackberry Torch 9800 has this feature..not iPhone 4s??
ThanksSorry you get only one notification sound for all email accounts. you can send a suggestion to apple here http://www.apple.com/feedback/
-
How to invoke JavaScript for Premiere Pro CC?
Hi,
I am new to Adobe CC products/scripting and I'm trying to control Adobe Premiere Pro CC from another desktop application. Using ExtendScript Toolkit, from its UI, I can invoke JavaScript commands or files.
But I can't find any way for my desktop application to invoke JavaScript commands. I can't seem to find any command line tool for it (no documentation either and JavaScript doesn't seem to be officially supported). Any help regarding this would be greatly appreciated.
I tried using the Socket object on a .jsx file to act as a server (to listen for commands from my desktop application) and placing it on the common startup script folder. But the start up script blocks the UI of the Premiere Pro application entirely (even if I use "$.sleep(milliseconds)" function in between the "poll" function for acquiring a connection). This wouldn't work for my application as I can't block the UI.
For After After Effects CC, I can use the "afterfx.exe" on Windows and AppleScript with "DoScript" command on Mac, to execute JavaScript expressions or files. But this doesn't seem to work with Premiere Pro or any Adobe CC products. For Photoshop, I can just open any .jsx file with Photoshop (for e.g. "Open With") and it runs the .jsx file. But this technique doesn't work with all the other Adobe CC products (even the ones which support JavaScript officially).
According to Adobe Premiere Pro developer centre, there is no mention of any JavaScript support. But since the functionality does seem to be there (as discovered through ExtendScript Toolkit), I am hoping I can get away just by using JavaScript commands to control Premiere, as opposed to using the native SDK for Plugins. However, I really hope Adobe Premiere Pro folks are seeing this and they officially support JavaScript soon .
Thanks for your help.Hi all,
Any help? Seems that the general Adobe Premiere forum is a lot more active in terms of responses. That is why I originally kept in the general forum at first.
Due to the lack of documentation, I ended up spending even more time just to figure out how to invoke Premiere Pro with a JavaScript file, from the command line. But no luck still . Any advice would be greatly appreciated.
Thanks. -
How to invoke alt-text for images in a PDF file by Automation
Hi,
Can any one help me?
How to invoke Alt-text for Images in a PDF file using script?
Thanks for looking into this.
Regards,
SudhakarWhat do you mean "invoke" alt-text? If Alt-text is there, then it will be presented to a screen reader.
-
How to implement invoker rights in oracle 9i
implement invoker rights in oracle 9i
Invoker rights is a new model for resolving references to database elements in a PL/SQL program unit. From Oracle 8i onwards, we can decide if a program unit should run with the authority of the definer or of the invoker. This means that multiple schemas, accessing only those elements belonging to the invoker, can share the same piece of code.
To enable code to run with Invoker rights, an AUTHID clause needs to be used before the IS or AS keyword in the routine header. The AUTHID clause tells Oracle whether the routine is to be run with the invoker rights (CURRENT_USER), or with the Owner rights (DEFINER). If you do not specify this clause, Oracle by default assumes it to be AUTHID DEFINER.
create or replace procedure update_par(pi_parcod in varchar2,
pi_val in varchar2,
pio_status in out varchar2)
authid current_user is
begin
pio_status = 'OK';
update appparmst
set parval = pi_val
where parcod = pi_parcod
and rownum = 1;
if sql%notfound then
pio_status = 'Error in resetting the parameter';
end if;
end; Restriction in using Invoker rights
1. When compiling a new routine, direct privileges are only considered to resolve any external references. Grants through roles are ignored. The same applies when executing a routine created with invoker rights.
2. AUTHID is specified in the header of a program unit. The same cannot be specified for individual programs or methods within a package or object type.
3. Definer rights will always be used to resolve any external references when compiling a new routine.
4. Maintain extra caution on privileges being assigned to a different user. If the wrong privileges are assigned, a routine with invoker rights may have a mind of its own! Such issues would be difficult to debug. So ensure that the grants are perfectly in place.
5. For an invoker rights routine referred in a view or a database trigger, the owner of these objects is always considered as the invoker, and not the user triggering it.
~ Madrid. -
How to invoke the softKeyboard for a TLF textfield in AS3?
Hi,
I need to use a TLF textfield in a Flash mobile app.
How to invoke the softKeyboard on mobile devices for such a TLF textfield? I tried it the way below, but it's not showing up:
import flash.ui.Keyboard;
import flash.events.KeyboardEvent;
import flash.events.SoftKeyboardEvent;
chat.needsSoftKeyboard = true
chat.requestSoftKeyboard()
(I can't use a "classic textfield" for a couple of reasons)
Any tips welcomeIf you had something like this :
<FORM name="checkform">
<input type="text" name="myText" size="5">
<select size="1" name="select" onChange="check()">
<option value="1">Number1
<option value="2" selected>Number2
</select>
</FORM>Your javascript funtion would look like this :
<script language="JavaScript">
function check() {
if (this.checkform.select.options[this.checkform.select.selectedIndex].value == "1") {
this.checkform.myText.size = "20"
} else {
this.checkform.myText.size = "5"
</script>Note the names of the form (checkform) and the input field (myText). -
How to invoke Workflow and UWL through Webdynpro for Java
Hi,
In my Development Component there are three applications .The requirement is that the data will flow between one application to another only through workflow in
UWL.
Can anybody help me out as to how to invoke workflow programatically from Webdynpro for Java .
After data goes from one application to workflow UWL, how the second application will work on it . If possible please send me the links of some tutorials .
I searched in Webdynpro Tutorials site but there are no tutorials available there .
Thanks a lot .Hi,
Check the following Threads,U will get lot of details......
WebDynpro application that can work with SAP workflow work items?
/thread/142477 [original link is broken]
Configuring UWL with WebDynpro
/people/niharika.jeena/blog/2006/06/06/launching-webdynpro-from-universal-worklist
Sample Application,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/how%20to%20configure%20the%20universal%20worklist.pdf -
How can I build a project made for DOS?
Hello!
I've a project I'm afraid was made 15 years ago by somebody with a DOS version of LabWindows. I'm trying to compile it with LabWindows 7.1.1 and I've some "link error" and "syntax error" (about 80). I've tried with the "translate" tool but it doesn't change. How can I manage?
Hola!
Tengo un proyecto que fue ejecutado en LabWindows para DOS. Estoy intentando compilarlo con LabWindows 7.1.1 y halla algunos "link error" y "syntax error" (unos 80). He probado con la herramienta "translate" si éxito. Qué más puedo intentar?Pow wrote:
Hello!
I've a project I'm afraid was made 15 years ago by somebody
with a DOS version of LabWindows. I'm trying to compile it with
LabWindows 7.1.1 and I've some "link error" and "syntax error" (about
80). I've tried with the "translate" tool but it doesn't change. How
can I manage?
I'm very much afraid you are in the wrong forum here!!
We talk here about LabVIEW which fortunately never had to run under DOS
;-). As to your question itself it could be tricky. If the code has
been written in the C slang of LabWindows for DOS you should be able to
fairly easily get it up to compile in a recent LabWindows CVI version,
although there have been some issues about converting from DOS to CVI
due to 16bit -> 32bit issues and I'm not sure there is still good
documentation about that. The move from DOS to CVI was after all more
than 10 years ago.
If the program is written in the QuickBasic slang LabWindows for DOS
also supported, you will first have to find an old LabWindows for DOS
installation to let it translate the QuickBasic code to C before you
can attempt to import it into LabWindows CVI.
Just looking at the code and trying to recode everything in LabWindows
CVI or maybe LabVIEW ;-) may be not such a bad idea after all. It could
make sure that the application is coded in a good way as ol' LabWindows
for DOS had quite some limitations due to its dual language
QuickBasic/C support.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
i want to change the country from USA to EGYPT in the itunes but i get a message saying, u have remaining balance which is 0.44 USD, how can i find some thing for 0.44 USD to spend this sum so i can switch my account to the right store??
Buy something for more than the balance and charge the remainder to a credit card, or write Apple and ask them to keep the balance.
iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html > Get iTunes support via Express Lane > iTunes > iTunes Store -
How do you right click for skype features on an Micosoft Surface Tablet to block a contact
how do you right click for skype features on an Micosoft Surface Tablet to block a contact
Go to Settings>General>Restrictions and turn on Restrions for Safari and also hide the App store to prevent purchasing apps like another browser
iOS: Understanding Restrictions -
COMMIT needed for invoker rights proc?
The following proc EXEC_PROC in a package named PKG_DYNAMIC_SQL is called by the proc RUN_PROCS which is in a different package shown below:
PROCEDURE exec_proc (pi_proc_name IN varchar2 ,pi_acctky IN varchar2 )
AS
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
EXECUTE IMMEDIATE 'BEGIN ' || pi_proc_name || '(:acctky );' || ' END;' USING IN pi_acctky ;
END exec_proc;
PROCEDURE run_procs(pi_proc_names_tab IN pkg_types.t_tab_proc_names)
IS
BEGIN
FOR indx IN pi_proc_names_tab.FIRST .. pi_proc_names_tab.LAST
LOOP
pkg_dynamic_sql.EXEC_PROC ( pi_proc_names_tab(indx) ,pi_acctky) ;
END LOOP;
END run_procs;
The pi_proc_name is a set of stand alone procs that do an UPDATE statement. I find that unless I have a COMMIT statement inside each pi_proc_name I get a RUN TIME ERROR. Am I right in saying that cause I have a BEGIN END ( Anonymous block) pair round the invocation of pi_proc_name I am using INVOKER RIGHTS? Has that something to do with the error when the called proc does not commit before it exits?
Please help me understand why?does the called proc inherit the AUTONOMOUS TRANSACTION from the caller as in my example?No.
Actually, I'm not sure what you mean:
RUN_PROCS is calling EXEC_PROC (the autonomous transaction).
So: RUN_PROCS is the caller, not EXEC_PROC.
And I would only use autonomous transactions for error logging purposes. Nothing else.
If I understand correctly you're executing several procedures dynamically and each procedure gets committed as a separate transaction, (since they're all autonomous, they cannot 'see' each other anymore, all transactional logic is gone) all in one loop. That's a classic recipe for disaster when unexpected things happen, and they will happen sooner or later.
Are you sure it is safe to execute procedure 'Y' when procedure 'X' went into an error/committed 'the wrong' data/?
In other words: I hope this whole approach a well thought-out strategy, but usually dynamic (PL/)SQL + autonomous transactions = trouble/breaking code/corrupting data. -
How to invoke jdb for this simple code
up to now i have been debugging by looking at the code, could someone please tell me how
to invoke jdb for the following example, and how would i look at the local values within x & y
(without having to rely on JOptionPane):
//pg73 ex2.16 The x value input must be larger than the y value
import javax.swing.JOptionPane;
public class ex2_11
public static void main(String args[])
int x =2, y=3;
JOptionPane.showMessageDialog( null,
"a x= " x "\n " +
"b the value of x+x is " + (x+x) + "\n " +
"c x= " + "\n " +
"d " + (x+y) + "= " + (y+x),
"Results",JOptionPane.PLAIN_MESSAGE);
System.exit(0);I think I have already answered this question somewhere else, but I will reiterate it here.
If you have compile errors in your source code (i.e. you left the semi-colon off at the end of a statement), a class file will not get generated.
What you have done is the following:
1. created a working java source file
2. compiled that file and generated a class file
3. then changed the working source file and introduced a compiler error (i.e. you left the semi-colon off at the end of a statement)
4. then attempted to compile the file (with javac), but due to the compiler error a new class file did not get generated (therefore the old class file from the previous compile still resides on your machine).
5. Then you ran jdb on the old previously generated class file.
To confirm what I am saying is true. Delete the class file, then try to generate it again after introducing your compiler error. A new class file will not get generated and therefore you won't be able to use jdb (as jdb requires the class files).
Hope this helps (and gets me the duke dollars),
Tim
Maybe you are looking for
-
My computer died, so trying to connect my phone on a new computer and download all my music to the new computer/itunes?
-
Javascript code for setting output file name of emailed form in Livecycle
I was given a task of creating a new form with livecycle. I have no knowledge of javascripting so I am struggling with one of the things I am trying to get this form to do. The overview of this form is people around my company fill out this form then
-
How can I get embedded advertising links to open in a new window?
I am working with Muse and have tried editing the HTML but it didn't work. Thanks, Sandy
-
E52 - problem with lock code and bluetooth connect...
I have an E52 as my work phone, and due to company security policy, a lock code and autolock (30 minutes max) is mandatory. This is giving me problems when using bluetooth headsets, regardless of the make (Plantronics, my Garmin GPS, and latest the b
-
TemplateSource property is empty
SAP NetWeaver Developer Studio Version: 7.0.09 Build id: 200608262203 Hi at all, I quote what says the help/adobe library about templateSource "Specifies the unique name of the template. The name is automatically generated when UI element Interactiv