Open java app and insert text
Hello All!
I'm looking for a little help on an exact problem that seems to have been solved here before (but doesn't work for me).
Here's the original archived thread:
https://discussions.apple.com/thread/2631967?start=0&tstart=0
The question asked is exactly the same....
I have a java app for a Speco Technologies DVR. After opening the app, you must type in a rather long url and then click connect. If you enter the url, then quit the app, when you relaunch it, it does not remember the url that had been entered the previous time.
I would like to create a script that will launch the Java app and then input the url (text string). I cannot get this to work.
I've gotten as far as this:
on run
tell application "Finder" to activate open document file "DVRVIEWER(DO_NOT_DELETE).jar" of folder "Applications" of startup disk
delay 5
set myString to "192.168.0.118"
repeat with currentCharacter in every character of myString
tell application "system events"
keystroke currentCharacter
end tell
delay 0.25
end repeat
tell application "system events"
keystroke return
end run
AppleScript has a Syntax Error of "Expected end of line, etc. but found command name."
Does anyone ( taylor.henderson where are you! ) have a fix, or even a better way to do this? Can I edit the existing .jar to have the info directly in there?
I would actually love to add another section in there that fills in the username and password after entering in the IP address!
Just for clarification on how this goes:
Launch .jar.
Window Launches and prompts for IP address
Enter in IP address
Press RETURN
Windows disappears and new window appears and prompts for username and password
Enter Username
Press TAB
Enter Password
Press RETURN
Thank you guys, I'm sure it's easy, but hey, for me Photoshop and Illustrator are a breeze :-0
-AndyTheFiredog
Hi
andythefiredog wrote:
Is it possible to use similar commands to maximize the java window?
Yes.
You must enable the checkbox labeled "Enable access for assistive devices" in the Universal Access System Preference pane
Add these lines after the last line wich contains "keystroke return"
delay 2
tell (first process whose frontmost is true) to click button 2 of window 1 -- zoom
Here's my test script ( the Speco camera demo), that works without problems here, I use the application "DVRJavaView4.1.jar", this script checks the existence of ui element (more reliable) rather than any delay.
on run
do shell script "/usr/bin/open '/Applications/DVRJavaView4.1.jar'"
tell application "System Events" to tell (first process whose frontmost is true)
repeat until exists window "Please Input DVR address"
delay 1
end repeat
keystroke "millapt.ddns.specoddns.net"
keystroke return
repeat until exists button "OK" of window 1
delay 1 -- wait until the login window is frontmost
end repeat
keystroke "user"
keystroke tab
delay 0.1
keystroke "4321"
delay 0.1
keystroke return
repeat until name of window 1 starts with "DVRJavaView"
delay 1 --wait while the login window is frontmost
end repeat
click button 2 of window 1 -- zoom
end tell
end run
Similar Messages
-
Hi, from the last two days my iphone( iphone 4 with ios 5) have very slow to open the apps and very slow when i check the notification window , it taking too much time to open when i tap to down . help me to resolve the issue.
The Basic Troubleshooting Steps are:
Restart... Reset... Restore...
iPhone Reset
http://support.apple.com/kb/ht1430
Try this First... You will Not Lose Any Data...
Turn the Phone Off...
Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
Wait for the Apple logo to Appear and then Disappear...
Usually takes about 15 - 20 Seconds... ( But can take Longer...)
Release the Buttons...
Turn the Phone On...
If that does not help... See Here:
Backing up, Updating and Restoring
http://support.apple.com/kb/HT1414 -
My i Pad 3 shows "cannot Access Find My Friends open the app and review your sign in information to continue sharing your location. And I have two buttons : Later and Open but they don't work. As long as I have this screen situation, I cann't do anything on my I Pad. Please help !!
I have the same problem on my iPhone4. It is obviously a bug in the software. Once it pops out I am locked out of my phone. I can't even begin to describe the frustration this causes. All that stuff about holding down the buttons is useless. the phone won't even shut off. I can take a screen shot like that or go to voice control. Even when I got to a wifi connection, I can't get on. This app blocks everything else. This is a serious bug and can have serious consequences. The only thing my phone would do is go to voice control and let me play iTunes or phone people. Some smart phone hey?
I have finally got to a place with a wide enough wifi to connect my computer and restore the phone. This has lasted over a day!
I don't even know why Find My Friends is on my phone. Is it part of the package and how do I turn it off? -
My ipad hangs up after showing a message that says it "Cannot Access Find My Friends" and that I need to open the app and review my signin info to continue sharing. I can't go there because it is hung up. I also can't power off.
Perform a Reset...
Reset ( No Data will be Lost )
Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
http://support.apple.com/kb/ht1430 -
I've updated to IOS6 and now i couldn't open any apps and they're automatically close. And can't sync with itunes properly.. Help me!!
Perform a Reset... Try again...
Reset ( No Data will be Lost )
Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
http://support.apple.com/kb/ht1430 -
Just updated to 7.1 and now open some apps and cannot see the entire screen because the iPad, time n battery icons are covering top of screen.
I tried what you said but it still didn't help.
It only affects some of my apps other apps are fine.
For some reason in some of my apps the iPad, time and battery icons get bigger on the top of my screen so I can't see the top of the app page which effects some of the games and applications.
Is there any way to turn these icons off on the top of the screen? -
Open an App and see the App instead of just the name in the menu bar?
This may seem like a dumb question, but here goes anyway...
Two applications in particular....Microsoft Office apps (word,excel,etc)
and Pro Tools LE....
How do I open these apps and see the opening page of the app, rather that
just the name of the app in the menu bar and the desktop...?
This happens automatically in Win XP or Vista....Only a very few Apps have the option/preference to do that in OSX, not sure if any MS APPs do or not.
Maybe it would be closer to what you want though, to instead of opening the APP, drag say the Word® doc you want to the Word® icon in the Dock, which runs Word, opens the document, and skips the Open Dialog. -
i've just updated my iphone, and now I can't open no app, and can't sync music and photos. WHY?????
Have you tried the basics from the manual?
Restart, reset, restore. -
HT4623 when i update iPhone 4S i can open my app and if i m open it its will close why?
when i update iPhone 4S i can open my app and if i m open it its will close why?
Read this: iOS 4: Updating your device to iOS 5 or later
... oh I think it is a 3gs or a 3
This makes a difference. What does it say in Settings > General > About? -
Need to cut a word in half and insert text inside
need to cut a word in half and insert text inside like this: http://looksgreat.tumblr.com/post/56189410707/tutorial-letra-dividida
Hi,
For me, Jongware is right! It's very easy and cool to do it directly in InDesign (with totally editable text). Here's a sample: -
Need to cut a word in half and insert text inside, in Illustrator or InDesign
need to cut a word in half and insert text inside, in Illustrator or InDesign, like this: http://looksgreat.tumblr.com/post/56189410707/tutorial-letra-dividida
That's fine. Everybody has their own preferences. I find it odd that you feel the need to criticize mine. Personally, I've been a Prepress Tech for 25 years, the last 15 in a digital environment on Mac Workstations. I work with live fonts and outlined text every day. I've had way more headaches with font substitution and reflow than I've ever had with vector art. Most of the time, I leave live text as live text. But if I'm designing a Logo or art that is intended to be placed in multiple documents and probably scaled, I'm going to convert it to paths. Much less chance of the RIP screwing it up that way.
Your answer to OPs question was spot on. So was mine. There is rarely only one right way to create something in Illustrator. If you don't care for my methods, then don't use them. But let me assure you, I don't need any schooling from you. The fact that you seem compelled to engage me on this may say something about your personality. Micro-manage much? -
I opened an app, and now neither my home or power buttons work, now i can't close out. How do i?
Keep hold of the power and home buttons until the screen goes blank, when it does release them and power the phone up as you normally would.
-
I can't open contact app and when i click on the mail, calendar, contact in the setup menu, i go back to the main screen.
Anyone can solve this issue ?Try reset ipad. Hold down Sleep and Home button for about 10 seconds until you see the Apple logo.
-
Tried to open an app and my iPad gen one froze. It only shows the apple on black screen and will show the operating wheel sometimes and while plugged in it will beep every few minutes. Will not load one show anything on screen but the small white apple.
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
Iphone 4s Could n't open any app and game
I could n't open any app and game after i restart my iphone4s in this morning. It just show me a black screen while i try to open it and then go back to main page. Does anyone tell me what is going on? I don 't want to download all the apps and games again even i know it helps. Please!
Have you tried a Reset...
Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release the buttons...
http://support.apple.com/kb/ht1430
Maybe you are looking for
-
Replacing "T" Mag Safe Adapter
Typically, I do not participate on these sorts of boards; however, I have had a pretty unfortunate experience today with Apple which I'd like to not only communicate but also seek help. As a preface, the city I live does not have an official Apple St
-
How to save groups-tabs for next time use?
I make some groups-tab by function of sites , like Email-group, News –group. If close FF beta 9, and option of startup is "show a blank page " or "show my home page", these groups were not be saved. If startup is "show my windows and tabs from last t
-
Windows Search and pooled VDI Clients
Hello The management of our customer want to use necessarily the Windows Search on floating VDI Clients. What's the best way in your opinion to enable this? The Search Index (Database) will be computer-based and should not be generated after each p
-
I'm cutting a feature film on FCP 5.0.4 editing 23.98 NTSC DVCAM. The audio was recorded on a hard disk recorder with independent timecode and the clips were merged using slates. If I enter trim mode by double clicking on the video track (with the pu
-
Close but no cigar. (Installing Panther on Beige G3)
Hi Folks, Last time I posted here back in October, I was having trouble with a USB 2 PCI card with my Biege G3 running OS 8.6. Got an old USB 1.1 card since then and it is working fine...Now I am upgrading even farther. I've been reading the posts he