WM_TOUCH on Windows 7 Delayed
I am trying to work with Windows 7 and a Hantouch touch screen. I have a few issues that are eluding me at the moment.
1) Windows 7 will translate for me the touch action into a mouse left button down action but only after it pauses to see if I intended to hold down to emulate right button down action. My attempted solution was to just receive WM_TOUCH messages, but that
raised other issues.
2) Windows 7 will send me WM_GESTURENOTIFY and two undocumented messages immediately upon touch. These messages are:
Send: 0x2CC - undocumented, comes with touch coordinates encoded in LPARAM
Post: 0x11B - undocumented, not sure how to use this if at all
Send: 0x11A - WM_GESTURENOTIFY
3) When I register to receive WM_TOUCH messages, I continue to get the above messages immediately, which begs the question why am I getting WM_GESTURENOTIFY when the MS documentation states that I will not get gesture messages any longer?
4) When I register to receive WM_TOUCH messages, I get WM_TOUCH as expected, but
after the delay and with the WM_LBUTTONDOWN message, which defeats the purpose of receiving WM_TOUCH messages in the first place. If I want to interpret the touches, why would Windows 7 attempt to do it for me as well?
And then there is another issue I THINK having to do with Windows 7 and the Hantouch touch screen - it seems that if I perform a series of touches quickly enough that I can cause Windows 7 to stop sending any messages to my application for several seconds.
Eventually, a WM_LBUTTONDOWN message is sent, but none of the other messages before it. I thought it was due to a system timer, but closer examination shows that only the WM_LBUTTONDOWN message is received.
Finally, I went to disable the feature on the touch driver that emulates right click by holding down a finger on the screen. But Windows 7 simply ignored those settings and continued to provide a delay and a right click notification. Then after running it again
the next day, the feature was disabled, though the dialog says it was enabled.
If anyone has any information on any item I discussed I would appreciate hearing from you.
For some of the behavior that is true and I have. But it is a MS driver and that driver is generating messages with delays and is also not behaving as document (e.g., I am getting gesture messages after I register to receive WM_TOUCH). I would hope someone
at MS could please shed light on why the driver is doing what it is doing here.
Also, I found today that the XP driver (Touchside) generates WM_LBUTTONDOWN immediately and then if held down long enough generates WM_LBUTTONUP, WM_RBUTTONDOWN, and WM_RBUTTONUP. Clearly this is not correct, but the results are nearly always what one would
like to see. The left button messages generate focus of the control/window, and then the right button messages usually popup a menu. But the point is that the WM_LBUTTONDOWN message was immediate and that immediate behavior is what I miss. If I can get WM_TOUCH
to generate immediately, then fine. But I doubt I would be able to get the MS driver to change its timing of the left button messages.
Similar Messages
-
trying to load music from itunes to my ipod classic message rec'd WINDOWS - WRITE DELAYED FAILED UNABLE TO SAVE ALL THE DATA FOR THE E: THE DATA WAS LOST
is this my ipod or an itunes problem?I spoke to ipod tech support and was told "We do not support itunes. It is only a web based support" Which apparently does not exist.
-
Click wheel ipod freezes up windows explorer/delayed write error
Sorry for the length of this, but I have been dealing with this for a while.
I have two 5G 20GB iPod's that I can't sync to either of my computers.
I usually sync it on my desktop, which is a P4 2.4Ghz, 512MB, XP PRO, MoBo is Asus P4C800, I would connect them with the firewire connection directly from the back of the motherboard.
My iPod's Hard Drive failed. So I replaced it with another Toshiba Drive (MKGAL2006). It didn't have the apple logo on it, but I read that it really didn't matter. When I plugged it in, it immediately detected at first, but when it was auto-updating music, it would get to about 2/3rds of my music library (13 G's) and then I would get an unknown error -124 from iTunes. I would then eject the ipod from itunes, and eject it from the windows menu. When I would check to see what music made it onto my ipod, none would be listed. When I reconnected it, it showed in itunes that I had 9 Gigs of "Other" data on it, but none of it was music. I would then set the ipod to manual update. This locked up the computer, and wouldn't unlock until I unplugged the ipod from the firewire cable. The ipod would then lock up the computer the second I plugged it in, so I put it in disk mode. I would then need to restore my ipod when I plugged it back in. I was then able to upload music to it, however, I couldn't transfer more than 25 songs at a time without getting a "Unknown error -124" from itunes or "Delayed write failure" from windows. I was getting pretty far along with this system, until I finally got a BSOD, with a memory failure error, and memory dump. But there was no program specified. Now, when I plug it in, it shows as removable drive (E:), autoplay will run for 10 minutes, and itunes becomes unresponsive, as will my computer. When I right click on the ipod in my computer, it says the drive cannot be accessed or is unresponsive.
I tried my girlfriends ipod after this on her profile in windows. It followed the same process, during auto sync it would get to a 2 GB's of data, and then get error -124 in itunes. It was showing up as the name of her ipod, however in my computer. When I ejected, switched to manual, then reconnected, it now shows as removable disk in My computer.
I then tried it on my TOSHIBA laptop (1.5 Ghz Celeron, xp home, 504 MB memory,) through the USB cable and fresh install of itunes (7.41).
Mine made a connection, I had to restore it, and it began to sync up music, it got to 2.5 Gigs, and then I got a windows explorer message saying there is no disc in the drive, please insert one. I was able to eject the IPOD (as it was listed in itunes, but I named it something else when I restored it)from itunes, but ejecting it from windows froze up the system tray, and after waiting 15 minutes, I eventually just unplugged it.
I tried my girlfriends ipod, and it was able to install in windows, but won't get listed in itunes, but itunes is responsive.
I am very frustrated with this. Please let me know if there is any vital information with this that I am missing
Thanks in advance.Allright,
So I tried sticking my girlfriends ipod back into the laptop through USB for a couple hours. iTunes locked up, and the iPod got hot. So I disconnected it manually, and I got a unhappy face, that wouldn't reset no matter what. In frustration, I just left everything alone for a couple days.
I found out online that people were having success with these unhappy ipod faces by slapping the back of the case after they hard reset the ipod (press menu and select). So I did just that. And it worked. The ipod was back up and running. I plugged it into the laptop, and it updated itself. iTunes warned me that it was preselected for another library, so to add any music, it would go into another playlist as a secondary library. However, it only added music that wasn't on there before. So Boom, I got one iPod working.
The one I had, whose HDD I replaced, wasn't so lucky. I was still getting stuck restoring it, then hooking it up, and it updated several gigs of music (very slowly) and then would freeze up itunes, and I would have to disconnect. After having read on some forums (I highly recommend you read http://www.notpopular.com/blogs/josh/2005/12/24/replacing-the-hardrive-of-an-ipo d, the comments taught me a lot) that reconnecting the IDE cable on their hard drives got rid of the unhappy faces and folder icons. So I cracked open my ipod, and replaced the replacement hard drive with the original one from apple. SOB actually worked. I put the ipod back together, and hooked it into the USB. It updated about 3000 songs, and showed that sync was complete. I unhooked it, but found there was no music listed under songs. Weird. So I set it into disk mode (reset with menu and select, and at the apple logo hold play and select) and plugged back in, I ejected after 30 or so songs, and found that those 30 songs were listed. I know that disk mode works. So I hook it back in, and I am happy to say that my ipod is working with the original hard drive. I didn't even have to pay the $54 bucks it cost for another drive. I also learned about diagnostic mode ,that isn't written about in the official boards (http://www.methodshop.com/gadgets/ipodsupport/diagnosticmode/index.shtml)
I can check my hard drive, and memory, all sort of groovy tests on there.
And at this point, I am checking out my 3rd generation ipod that I long ago gave up as a hard drive problem. I reseated the hard drive connection and put it into diagnostic mode, which verified my hard drive was fine. So we'll see how that goes. -
Windows 7 -Delay after right click and installation query
Hi,
I have freshly clean installed Windows 7 home premium x64 in my HP laptop which was previously running the x86 version of the same factory installed OS.I have performed a usb install.Now,I have two queries-
1.During the installation,when the machine rebooted,to complete the installation process,it gave the option of 'Continue with win 7-EMS ENABLED'-and I went ahead with it and completed the process.I want to know whether this EMS thing is normal or not?
2.There is a slight delay after the right click in the desktop-how can it be resolved?
Looking forward for your valuable opinions regarding thisHi,
First please know that EMS allows users to control particular components of a server remotely, even when the server is not connected to the network or to other standard remote-administration tools. In Windows Vista and later, use BCDEdit /emssettings command
and its parameters to establish EMS settings for all boot entries. Then, use the BCDEdit /ems command to enable EMS for a particular boot entry.
It's ok to get EMS enabled.
For your second question, it seems a performance issue.
Please first let me know except the system default context on the right click menu, if there is any 3rd part context menu or extension. if so, please use shellexview to remove them:
1. Download ShellExView v1.41 from the following link
http://www.nirsoft.net/utils/shexview.zip
Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise, regarding this product's performance or reliability.
2. Extract "shexview.zip" file and open shexview.exe. It will scan the registry for all the shell extensions.
3. Select all the non-Microsoft extensions in pink by press "Ctrl" in the keyboard.
4. Click the "Disable Selected Items" on the toolbar and click Yes.
5. Restart your computer and check if the issue is resolved.
If there is no such context menu, please run performance troubleshooting under Control Panel\All Control Panel Items\Troubleshooting\All Categories.
Also, help to test the issue in Clean boot mode.
How to perform a clean boot
http://support.microsoft.com/kb/929135
If the issue doesn’t appear, you can determine which one can be the cause by using dichotomy in MSconfig. Checking on half of Non-Microsoft service and restart, determining which half of the services cause the issue and repeating to check half of the problematic
half services.
If the issue still persists, please check if there is any related error or warning in event logs, post back for our further research.
Kate Li
TechNet Community Support -
Triggering switch user window after delay
Is there a way to automatically bring up the switch user window after a delay (like a screen saver)? One thing I actually like about XP is how it goes to the login screen automatically after the screen saver (but doesn't actually log out the user). I know if I put a password on my Mac screen saver I can force people to open the switch user window manually, but this seems like an unnecessary step.
Does Ciao do what you want?
-
Make Applescript to click on box of active window
Hello,
I'm trying to write an AppleScript to automate my batch processing of images through Adobe Fireworks CS6. I can't seem to get the script to select the box at the bottom of the pop of window. I also have a few other windows that I would need to select certain things. I have this script so far.
tell application "Adobe Fireworks CS6"
activate
end tell
tell application "System Events"
tell process "Adobe Fireworks CS6"
click menu item "Batch Process..." of menu "File" of menu bar 1
delay 2
--First window
tell window 1
click checkbox 1 of window 1
end tell
delay 1
click button "Next" of window 1
delay 0.5
--Second window
click button "Export" of window 1
click button "Add" of window 1
tell the first combo box of window 1
delay 3
keystroke (ASCII character 106)
keystroke return
end tell
click button "Next" of window 1
delay1
click button "Batch" of window 1
end tell
end tell
Any help would be much appreciated.
Thanks.Hi
Give this a go, this is ugly but works on a drop window I have that requires a user name and password, with buttons cancel and ok, change the amount of keystroke tabs to suit your set up
activate application "Firefox"
delay 3.5 -- allow app to open, change delay to suit
tell application "System Events"
tell process "Firefox"
keystroke tab
keystroke tab
keystroke tab
keystroke return
end tell
end tell
Budgie -
Delayed write failed on my satellite m45-s2693
I keep having this message on my Satellite m45-s2693: Delayed write failed
How can I solve this problem?
My HDD seems to be OK. Checked it with checkdisk but can't defragment it. Is that part of the problem? How can I fix it?Satellite M45-S2693
See this explanation from Microsoft.
You receive an error message when you save or move documents in Windows XP: "Delayed Write Failed"
-Jerry -
RE: Forte Start up Delay
Sean,
It may be because of the fact that your launch server is pulling down the
latest version of your installed partitions. I think we have the same
problem, and there are 2 ways of dealing with this. 1. Run the development
workshop using ftexec and not use launch server. 2. Put all the developers
into a model node that does not have any applicaitons installed into this.
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: [email protected] [SMTP:[email protected]]
Sent: Monday, June 29, 1998 11:41 PM
To: Venkat Kodumudi
Subject: Forte Start up Delay
To: [email protected] @ Internet
cc:
From: [email protected] @ Internet
Date: 06/29/98 08:27:27 PM PDT
Subject: Forte Start up Delay
Hi all:
We've been experiencing something interesting
lately.
On a HP K9000 system and a DEC AlphaServer 800
system, the Forte Workshop window startup takes
estimated 75 seconds of delay.
It means, after forte printed out the usual
"Attemping to connect to Launch Server.....
Running release cl0 of applet Forte....... "
messages, it will wait about 75 seconds for
the Workshop window to show up.
If one workshop window is up and running, any subsequence
Forte Workshop window will show up immediately.
After closed all the Forte Windows, the delay will happen
again.
We figured it might have something to do with the network
setup, but we couldn't solve this problem.
Anybody have experienced the same problem?
Thanks in advance for any clues.
Sean
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hi Greg,
Thanks for the suggestion. It's really cool. I hope that I have your
suggestion earlier because we have all our client using the launcher to
start our application now. In fact, we divided up our application functions
into applets and have our own customized "launcher distributed" as a sort-of
menu ( which provides the access control ). Changing back to use ftexec -fi
.. would be a major modification. I just hope that Forte has some way to
cheat the "b-tree" so that we can download the applet ourselves ( using some
other media such as FTP, compression, floppy etc ) and update the "b-tree"
later.
Regards,
Peter Sham.
Hutchison Telecom. (Hong Kong).
-----Original Message-----
From: Greg Nyberg [SMTP:[email protected]]
Sent: 1998 07 02 13:12
To: 'Peter Sham (HTHK - Assistant Manager - Software
Development, IITB)'
Subject: RE: Forte Start up Delay
We dont use the launcher to upgrade applications.. We use a c
program
which is actually the program run when they doubleclick on the icon.
This program checks on an FTP server (sortof) to see if there is a
more
recent version, downloads the new version (which is really a
self-extracting self-installing InstallShield program) and installs
it.
The c program then starts Forte using ftexec -fi ... technique.
We have users all over the world, including a number of hotels in
the
Far East using a dial-up TCP/IP connection. With compression, etc,
we
get the size of the file down to about 2MB which takes like 30
minutes
for them to download when we need to upgrade.
Write me if you want more info.
-Greg
> -----Original Message-----
> From: Peter Sham (HTHK - Assistant Manager - Software Development,
> IITB) [SMTP:[email protected]]
> Sent: Wednesday, July 01, 1998 11:16 PM
> To: Venkat Kodumudi
> Cc: '[email protected]'; '[email protected]'
> Subject: RE: Forte Start up Delay
>
> Hi Guys,
>
> Isn't it frustrating! We have the same problem on this "pulling
down
> the
> latest version" feature on our production environment. We have
now
> about
> 100M of applets and some PC is connected back to our computer
center
> through
> some license line. Downloading all the applets means
out-of-business
> for
> the whole morning. Up-grading the license line means increasing
> operating
> cost due to IT department inefficiency. So we can just prey that
no
> PC
> crash on her hard disk, no btree will be corrupted or our user
> wouldn't do
> any funny things on his/her files, otherwise, reloading the whole
> application means nightmare. Worst of all, we can't put our
> application on
> the file server. Is there any way out? Does anyone has a
solution?
>
> Regards,
> Peter Sham.
> Hutchison Telecom. (Hong Kong)
>
> -----Original Message-----
> From: Venkat Kodumudi [SMTP:[email protected]]
> Sent: 1998 06 30 21:09
> To: '[email protected]'
> Cc: '[email protected]'
> Subject: RE: Forte Start up Delay
>
> Sean,
>
> It may be because of the fact that your launch server is
pulling
> down the
> latest version of your installed partitions. I think we have
the
> same
> problem, and there are 2 ways of dealing with this. 1. Run
the
> development
> workshop using ftexec and not use launch server. 2. Put all
the
> developers
> into a model node that does not have any applicaitons
installed
> into
> this.
>
> Venkat Kodumudi
> Price Waterhouse LLP
> Internet: [email protected]
> Internet2: [email protected]
>
> > -----Original Message-----
> > From: [email protected]
> [SMTP:[email protected].
> com]
> > Sent: Monday, June 29, 1998 11:41 PM
> > To: Venkat Kodumudi
> > Subject: Forte Start up Delay
> >
> > To: [email protected] @ Internet
> > cc:
> > From: [email protected] @ Internet
> > Date: 06/29/98 08:27:27 PM PDT
> > Subject: Forte Start up Delay
> >
> > Hi all:
> >
> > We've been experiencing something interesting
> > lately.
> >
> > On a HP K9000 system and a DEC AlphaServer 800
> > system, the Forte Workshop window startup takes
> > estimated 75 seconds of delay.
> >
> > It means, after forte printed out the usual
> >
> > "Attemping to connect to Launch Server.....
> > Running release cl0 of applet Forte....... "
> >
> > messages, it will wait about 75 seconds for
> > the Workshop window to show up.
> >
> > If one workshop window is up and running, any subsequence
> > Forte Workshop window will show up immediately.
> >
> > After closed all the Forte Windows, the delay will happen
> > again.
> >
> > We figured it might have something to do with the network
> > setup, but we couldn't solve this problem.
> >
> > Anybody have experienced the same problem?
> >
> > Thanks in advance for any clues.
> >
> > Sean
> >
> >
> >
> >
> > -
> > To unsubscribe, email '[email protected]' with
> > 'unsubscribe forte-users' as the body of the message.
> > Searchable thread archive
> <URL:http://pinehurst.sageit.com/listarchive/>
> -
> To unsubscribe, email '[email protected]' with
> 'unsubscribe forte-users' as the body of the message.
> Searchable thread archive
> <URL:http://pinehurst.sageit.com/listarchive/>
> -
> To unsubscribe, email '[email protected]' with
> 'unsubscribe forte-users' as the body of the message.
> Searchable thread archive
> <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
10.4.9 - Delays in Terminal, Wake From Sleep, XCode Build
Hi,
Since I've updated my Intel iMac to 10.4.9 I'm experiencing some delays in certain actions. The most bothersome being in Terminal. Every time I open a new session (window/shell) I get the spinning beach ball for about 10 seconds before the new window appears. I also get the same delay when building in Xcode and getting the login prompt after waking from sleep.
Looking at the activity monitor, it doesn't look like there is a spike in CPU usage. Any ideas?
Thanks.
Intel iMac Mac OS X (10.4.6)Nothing interesting as far as I can tell. I checked system.log and windowserver.log as well as console.log. I watched the console as I opened terminal and nothing was written before, during or after the delay.
If I open terminal, wait through the delay, then quit terminal and open it right away, it sometimes it opens a terminal window without delay. It also sometimes opens a new terminal window right away and displays the line "Last login: Fri Mar 23 13:20:52 on ttyp1", but then I have to wait a good 5-10 seconds for the "Welcome to Darwin!" message and the prompt.
Weird... -
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
-AndyTheFiredogHi
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 -
Batch convert Pages files to Doc and stay in the same folder?
Hi there,
I use iWork '09 on Mountain Lion. I recently switched to Microsoft Word and prefer it over Pages (personal preference). However, I have nearly 1000 files on my computer that are in Pages format. I have extensively searched this issue in the Apple Support Communities and it appears that there are scripts that DO EXIST that batch convert Pages files into Word files. However, it appears that many of these scripts were built for older versions of iWork and therefore I run into various errors. For example, I used the script available at http://pagesfaq.blogspot.com/2008/01/export-folder-to-word-rtf-pdf-txt-or.html and click run but nothing actually happens (the script runs for less than a second, then I can click run again). I was able to use one script successfully (pasted below), but the only reason I can't use it is because it saves ALL my converted documents in one folder on my desktop and I would like a script that can save them in the original file were the Pages document is located.
So, is there an iWork '09 compatible script that can convert my Pages documents to Word documents and save them in the same folder as the original? Oh, and for an added bonus, it'd be cool if the script also deleted my Pages version after it was done with the conversion
--[SCRIPT batch_exportPages2DOC] (* Enregistrer ce script en tant que script ou progiciel. Exécuter ce script ou déposer l'icône d'un dossier sur son icône. Il ouvre tout document Pages du dossier et l' enregistre en fichier DOC dans le dossier "was_Pages_now_DOC". Celui-ci peut être sur le bureau ou dans le dossier "~/Documents". Si le GUIscripting n'est pas activé le script demande votre mot de passe pour l'activer. Le script récupère le dossier d'exportation par défaut dans le fichier de préférences de Pages. Éviter de cliquer durant l'exécution du script sauf évidemment pour sélectionner le dossier source. ************* Save the script as script or application bundle. Run it or drag and drop a folder icon on its icon. It opens every Pages's documents stored in the folder and save it as DOC file in a folder named "was_Pages_now_DOC". This one may be on the desktop or in the "~/Documents" folder. according to the property storeOnDesktop. If GUIscripting is disabled the script ask for your password to enable it. The script extract the default export path from the Pages's preferences file. Don't click when the script is running. Except, of course, to select the source folder. ************* Yvan KOENIG (VALLAURIS, France) 2008/04/20 2009/06/17 adapté pour format .doc 2009/12/13 updated for MacOs 10.6… *) property theApp : "Pages" property theExt : "pages" property nomDuRapport : "report_Pages2DOC.txt" property nom_du_dossier : "was_Pages_now_DOC" property storeOnDesktop : true (* true = dest folder will be on Desktop false = dest folder will be in "~/Documents" *) property msg1 : "" -- globale property msg90 : "" -- globale property msg91 : "" -- globale -- property msg92 : "" -- globale property msg94 : "" -- globale property msg96 : "" -- globale property msg99 : "" -- globale property rapport : "" -- globale property dossierDeStockage : "" -- globale property dossierParDefaut : "" -- globale property localExport : "" -- globale property newExt : "" -- globale property newType : "" -- globale property isOs4 : missing value -- globale property isOs5 : missing value -- globale property theMenu : missing value -- globale property menuExport : missing value -- globale property types : {{"doc", "SLDocumentTypeMSWord", 2}, {"pdf", "SLDocumentTypePDF", 1}, {"txt", "SLDocumentTypePlainText", 4}, {"rtf", "SLDocumentTypeRichText", 3}, {"rtfd", "SLDocumentTypeRichTextBundle"}, 3} --===== (* our settings *) property typeNum : 1 (* 1 = WORD, 2 = PDF, 3 = Txt, 4 = rtf, 5 = rtfd *) property theButton : missing value (* 1 button PDF 2 button Word 3 button RTF 4 button Standard *) --===== on run (* lignes exécutées si on double clique sur l'icône du script application • lines executed if one double click the application script's icon *) tell application "System Events" to set dossier to choose folder (* dans un bloc System Events pour avoir un titre de dialogue "localisé" • in a System Events block to get a localized dialog title. *) my commun({dossier}) -- my commun({"Macintosh HD:Users:yvan_koenig:Desktop:for_see:" as alias}) end run --===== on open (sel) (* sel contient une liste d'alias des éléments qu'on a déposés sur l'icône du script (la sélection) • sel contains a list of aliases of the items dropped on the script's icon (the selection) *) my commun(sel) end open --===== on commun(elems) my nettoie() my prepareMessages() tell application "System Events" if not (UI elements enabled) then set (UI elements enabled) to true (* Active le GUI scripting • Enable GUI scripting *) set titres to title of processes end tell -- to System Events if theApp is not in titres then my activateTheApp() (* Active et ferme la fenêtre du document créé à l'ouverture • Activate and close the doc's window created at opening *) set {newExt, newType, theButton} to item typeNum of types (* item 1 = {"doc", "SLDocumentTypeMSWord",2} item 2 = {"pdf", "SLDocumentTypePDF",1} item 3 = {"txt", "SLDocumentTypePlainText",4} item 4 = {"rtf", "SLDocumentTypeRichText",3} item 5 = {"rtfd", "SLDocumentTypeRichTextBundle",3} *) set sysAtt to (system attribute "sys2") if 4 > sysAtt then if my parleAnglais() then error "This script requires MacOs X 10.4 or higher !" else error "Ce script requiert MacOs X 1.4 ou ultérieur !" end if else if 5 > sysAtt then set isOs4 to true set isOs5 to false if my getVersion() < "4" then set theMenu to 3 set menuExport to 13 else set theMenu to 10 set menuExport to 9 end if else if 6 > sysAtt then set isOs4 to false set isOs5 to true if my getVersion() < "4" then set theMenu to 3 set menuExport to 13 else set theMenu to 10 set menuExport to 8 (* was a wrong 9 *) end if else set isOs4 to false set isOs5 to false if my getVersion() < "4" then set theMenu to 3 set menuExport to 13 else set theMenu to 10 set menuExport to 8 (* was a wrong 9 *) end if end if my fermeFenetres() (* • Close existing windows *) my afficheLeMessage(msg1) (* Éviter de cliquer… • Don't click… *) tell application theApp to set localExport to localized string "Export" set dossierParDefaut to my getDefaultExport() as text set rapport to "" set dossierDeStockage to my creeDossierDeStockage(nom_du_dossier) (* Unicode text *) try repeat with elem in elems try my exploreTraite(elem as alias, "") end try end repeat if rapport = "" then set rapport to msg90 -- crée un fichier texte sur le Bureau set p2d to path to desktop set p2r to (p2d as Unicode text) & nomDuRapport tell application "System Events" if exists (file p2r) then delete (file p2r) make new file at end of p2d with properties {name:nomDuRapport} end tell set rapport to rapport as text write rapport to (p2r as alias) on error MsgErr number NroErr if NroErr is not -128 then beep 2 tell application (path to frontmost application as string) to ¬ display dialog "" & NroErr & " : " & MsgErr with icon 0 buttons {msg99} giving up after 20 end if -- NroErr is… return end try my nettoie() if my parleAnglais() then my afficheLeMessage("Export done.") else my afficheLeMessage("Traitement terminé.") end if end commun --===== on nettoie() (* pour ne pas stocker dans le fichier script • So it will not be stored in the script file *) set dossierDeStockage to "" set dossierParDefaut to "" set rapport to "" set localExport to "" set newExt to "" set newType to "" set isOs4 to missing value set isOs5 to missing value set theMenu to missing value set menuExport to missing value set theButton to missing value set msg1 to "" set msg90 to "" set msg91 to "" set msg92 to "" -- set msg94 to "" set msg96 to "" set msg99 to " " end nettoie --===== on afficheLeMessage(m) beep 1 tell application (path to frontmost application as string) activate if my parleAnglais() then display dialog m buttons {" OK "} default button 1 giving up after 10 else display dialog m buttons {" Vu "} default button 1 giving up after 10 end if end tell end afficheLeMessage --===== on creeDossierDeStockage(Nom) (* S'il n'existe pas, construit un dossier destination sur le bureau ou dans "~/Documents" • If does not exist, create a destination folder on the desktop or in "~/Documents" *) local dd, dds if storeOnDesktop is true then set dd to path to desktop as Unicode text else set dd to path to documents folder as Unicode text end if if Nom ends with ":" then set dds to dd & Nom else set dds to dd & Nom & ":" end if (* dossierDeStockage n'existe pas, on le crée • dossierDeStockage is not available, build it *) tell application "System Events" to if not (exists item dds) then make new folder at end of folder dd with properties {name:Nom} return dds as Unicode text end creeDossierDeStockage --===== on exploreTraite(elem, ptree) (* elem est un alias • elem is an alias *) local elem_, cl_, type_Id set elem_ to elem as Unicode text tell application "System Events" to tell disk item elem_ set cl_ to class if cl_ is folder then set type_Id to "" else set type_Id to type identifier end if end tell -- "System Events" set cl_ to cl_ as Unicode text if type_Id is in {"com.apple.iwork.pages.pages", "com.apple.iwork.pages.sffpages"} then (* C'est un fichier Pages. • It's a Pages document *) my TraiteUnDocument(elem_) else if cl_ is in {"file package", "«class cpkg»"} then set rapport to rapport & msg91 & elem_ & return (* "Package", Attention, un package EST un dossier "spécial". • Caution, a package IS a "special" folder. *) else if cl_ is in {"folder", "«class cfol»"} then my ExploreUnDossier(elem_, ptree) else set rapport to rapport & msg92 & elem_ & return (* "Pas un document Pages". • "Not a Pages's document" *) end if -- typeId_ is … end exploreTraite --===== on ExploreUnDossier(dossier, ptree) local nomElement, cheminElement, c repeat with nomElement in list folder dossier without invisibles set cheminElement to dossier & nomElement tell application "System Events" to set c to name of (dossier as alias) my exploreTraite(cheminElement as alias, ptree & c & ":") end repeat end ExploreUnDossier --===== on TraiteUnDocument(leCheminOriginal_UniText) my export2Doc(leCheminOriginal_UniText as alias, leCheminOriginal_UniText) end TraiteUnDocument --===== on export2Doc(p, leCheminOriginal_UniText) (* • here p is the path as alias *) local flag, nom_de_p, nouveauChemin, w, bof, x, p_xport try tell application theApp open p set flag to false repeat 300 times (* Attends que le fichier soit réellement ouvert. • Wait until the file is really open *) if my getNbWindows() > 0 then set flag to true exit repeat end if end repeat end tell -- to theApp if flag is false then error number 8888 (* Le fichier n'a pu être ouvert. • The file can't be open. *) on error MsgErr number NroErr if NroErr = 8888 then set rapport to rapport & msg94 & leCheminOriginal_UniText & return else set rapport to rapport & "### " & MsgErr & " ### " & errNbr & return end if return (* can't do the remaining tasks *) end try tell application "System Events" to tell file leCheminOriginal_UniText set nom_de_p to name end tell -- System Events if nom_de_p ends with theExt then set nom_de_p to text 1 thru -(2 + (length of theExt)) of nom_de_p set nouveauChemin to dossierParDefaut & nom_de_p & "." & newExt --log nouveauChemin tell application "System Events" to if exists (file nouveauChemin) then set name of file nouveauChemin to nom_de_p & my horoDateur(modification date of file nouveauChemin) & "." & newExt (* name stamped *) try set {w, bof} to my getFrontWindow() tell application "System Events" to tell application process theApp click menu item menuExport of menu 1 of menu bar item theMenu of menu bar 1 (* Exporter… *) repeat until exists sheet 1 of window w delay 0.1 end repeat tell sheet 1 of window w (* sheet containing the buttons PDF, Word, RTF, Standard *) -- get properties of UI elements of radio group 1 if isOs4 then click button theButton of radio group 1 else if isOs5 then click checkbox theButton of radio group 1 else click radio button theButton of radio group 1 (* I hope that they will no longer change it *) end if -- isOs4 is true (* if typeNum is 2 then delay 0.2 tell pop up button 1 click click menu item quality of menu 1 end tell delay 0.2 end if *) click button 1 (* Suivant… *) repeat until exists button localExport delay 0.1 end repeat click button localExport (* Exporter… *) end tell -- to sheet… repeat 20 times if exists sheet 1 of window w then click button 2 of sheet 1 of window w (* "Ne pas consulter " dans éventuel rapport d'anomalies • "Don't review" in sheet reporting possible export anomalies *) exit repeat end if delay 0.1 end repeat end tell -- to process … System Events if dossierDeStockage is not dossierParDefaut then (* we must move the file from folder dossierParDefaut to folder dossierDeStockage *) set p_xport to dossierDeStockage & nom_de_p & "." & newExt tell application "System Events" to if exists (file p_xport) then set name of file p_xport to nom_de_p & my horoDateur(modification date of file p_xport) & "." & newExt tell application "Finder" to duplicate file nouveauChemin to folder dossierDeStockage (* • before 10.5, System Events is unable to move *) my wait4File(p_xport) tell application "System Events" to if exists file nouveauChemin then delete file nouveauChemin end if -- dossierDeStockage is not… my ferme1fenetre() on error errMsg number errNbr set rapport to rapport & msg96 & p & return & errMsg & " ### " & errNbr & return end try end export2Doc (* ===== • Build a stamp from the modification date_time *) on horoDateur(dt) local annee, mois, jour, lHeure, lesSecondes, lesMinutes set annee to year of dt set mois to month of dt as number (* existe depuis 10.4 *) set jour to day of dt set lHeure to time of dt set lesSecondes to (lHeure mod 60) set lHeure to round (lHeure div 60) set lesMinutes to (lHeure mod 60) set lHeure to round (lHeure div 60) return "_" & annee & text -2 thru -1 of ("00" & mois) & text -2 thru -1 of ("00" & jour) & "-" & text -2 thru -1 of ("00" & lHeure) & text -2 thru -1 of ("00" & lesMinutes) & text -2 thru -1 of ("00" & lesSecondes) (* • Here, the stamp is "_YYYYMMDD-hhmmss" *) end horoDateur (* ===== • Take care, the front window may be an Inspector or a dialog one. *) on getFrontWindow() local namesOfWindows, w, flag tell application theApp to activate set flag to false tell application "System Events" to tell application process theApp set namesOfWindows to name of every window repeat with w in namesOfWindows if subrole of (get properties of window w) is "AXStandardWindow" then set flag to true exit repeat end if end repeat end tell return {w, flag} (* • w is the name of the front document's window *) end getFrontWindow (* ===== • Wait that the file is completely written on disk *) on wait4File(p) (* • p must be Unicode text *) local oldSize, nnn, newSize set oldSize to 0 tell application "System Events" to set nnn to name of file p repeat try tell application "System Events" to set newSize to physical size of file p if oldSize < newSize then set oldSize to newSize else exit repeat end if end try end repeat end wait4File --===== on activateTheApp() local bof, status tell application theApp to activate if my getStartingStatus() is false then tell application "System Events" to tell application process theApp to keystroke return repeat set {bof, status} to my getFrontWindow() if status is true then exit repeat end repeat end activateTheApp (* ===== • Close existing open windows *) on fermeFenetres() repeat while my getNbWindows() > 0 my ferme1fenetre() end repeat (* • Now there is no open window *) end fermeFenetres --===== on ferme1fenetre() tell application theApp to activate tell application "System Events" to tell application process theApp to keystroke "w" using {command down} end ferme1fenetre --===== on getPlistValue(valName, default) local thePlist, u set thePlist to (path to preferences folder as Unicode text) & "com.apple.iWork." & theApp & ".plist" tell application "System Events" if exists file thePlist then tell contents of property list file thePlist try set u to (value of property list item valName) (* Unicode Text *) on error (* On est là si Pages n'a rien enregistré avec des préférences neuves • Here if Pages never saved with the new preferences file. *) set u to default end try end tell -- to contents of… else (* On est là s'il n'y a pas de fichier de préférences • Here if there is no preferences file. *) set u to default end if end tell -- to system events return u end getPlistValue --===== on getStartingStatus() return my getPlistValue("LSDefaultsUseDefaultStartingPoint", false) end getStartingStatus --===== on getDefaultExport() local u (* son of a *****, I forgot that they don't use the same name !! *) if theApp contains "Pages" then set u to my getPlistValue("SLDocumentDefaultExportDirectory", "~/Documents") else if theApp contains "Numbers" then set u to my getPlistValue("LSDocumentDefaultExportDirectory", "~/Documents") else error "I didn't coded a Keynote version !" end if set u to (POSIX file (do shell script "echo " & u)) as text if u ends with ":" then return u else return (u & ":") end if end getDefaultExport --===== on getNbWindows() tell application "System Events" to tell application process theApp to return count of windows end getNbWindows --===== on getLocale(a, x) tell application a to return localized string x end getLocale --===== on getVersion() try tell application theApp to return version on error return "1" end try end getVersion --===== on parleAnglais() local z try tell application theApp to set z to localized string "Cancel" on error set z to "Cancel" end try return (z is not "Annuler") end parleAnglais --===== on prepareMessages() if my parleAnglais() then set msg1 to "Don’t click when the script is running." & return & "Except, of course, if it ask for." set msg90 to "No problem during the export process." set msg91 to "Package" set msg92 to "Not a " & theApp & "’s document" -- set msg94 to theApp & " can’t read it" set msg96 to "Not copied." set msg99 to "Oops" else set msg1 to "Éviter de cliquer durant l’exécution du script" & return & "sauf s’il le demande." set msg90 to "Exportation réussie sans incident." set msg91 to "Package" set msg92 to "Pas un document " & theApp -- set msg94 to theApp & " n’a pas pu le lire" set msg96 to "Pas copié." set msg99 to " Vu " end if set msg91 to "### " & msg91 & " ### " set msg92 to "### " & msg92 & " ### " -- set msg94 to "### " & msg94 & " ### " set msg96 to "### " & msg96 & " ### " end prepareMessages --===== --[/SCRIPT]Try this app: http://tyorex.com/iWorkConverter
Batch convert Pages files to doc and pdf. -
Applescript to automatically update the EyeTV DVB EPG program guide
For EyeTV users in Europe and Australia with DVB EPG access, you will all know that EyeTV will not keep that database automatically updated.
So I wrote this bit of Applescript will update EyeTV's free to air DVB EPG database.
Paste it into the ApplesScript Editor, and save it as an application somewhere like in Applications. On first run you will get a dialog saying it need access to Accessibility. Navigate to System Preferences > Security and Privacy > Accessibility and you will see your app listed there. Enter your password, click the checkbox, and then try again. It should then work fine.
To automate the launching of the script, set it to run at at daily a convenient time using either Lingon (or some similar launch agent configuration utility), or using iCal as per this tip: http://www.maclife.com/article/howtos/how_make_your_ical_alarm_perform_action
Running it daily (or as often as you like) will keep your EyeTV EPG database up to date always. No more missed recordings because the EPG was not up to date! Yay!
This is the basic script, I'm sure it can be better.:
tell application "EyeTV"
activate
end tell
tell application "System Events"
tell process "EyeTV"
keystroke "g" using command down
delay 1
click (pop up button 1 of window 1)
delay 1
click menu item "Update DVB Program Guide" of menu 1 of pop up button 1 of window "EyeTV Programs"
end tell
end tell
Cheers
Chris.Good morning Frank
OK....
I too have the same issue (didn't notice it at first). Having wasted several hours, I found no way around it.
But there are tools like clicclick that can click anywhere on the mac screen. So... get it from here:
http://www.bluem.net/en/mac/cliclick (big thank you to Carsten Blüm) :-)
install as recommended (I put it in usr/bin/ as I had no usr/local/bin). Check it works via the terminal by pastingcliclick c:28,11 into terminal and pressing return. If that opens the apple menu, then it is installed and working.
Then try this script, which first puts the EyeTV window to a specific location on the screen, then instead of using UI scripting to click the silly pop up button 1, uses clicclick to clik at the location of the button. This opens the menu, and then UI scripting can click it. You may want to change the EyeTV window location from the value I chose, if so put it into your prefered position then use the Accessibility Inspector to get the location of the button, then add some pixels either side of that.
For me this now works perfectly every time, I hope it will for you. Annoying to have to install clicclick but there you go.
tell application "EyeTV"
activate
set the position of window 1 to {30, 60}
end tell
tell application "System Events"
tell application process "EyeTV"
keystroke "g" using command down
delay 4
do shell script "cliclick c:170,70"
delay 1
click menu item "Update DVB Program Guide" of menu 1 of pop up button 1 of window "EyeTV Programs"
end tell
end tell
I have found that the delay after the keystroke g is essential otherwise I get an invalid index error, I think because it is not ready to accept the click. You may need to change the delay.
Also when using Lingon to launch the Applescript App, the path needs to be to the applet file inside the contents of it. ie something like mydirectory/myappname.app/contents/MacOS/applet. name your app without spaces.
cheers
Chris -
Applescript scripted creation of a VPN connection in 10.9
Hi,
I have an Applescript VPN setup script that works fine in 10.8 and previous, but I'm having trouble getting it to work in 10.9. My problem is that the "VPN Type" field in Network in System Preferences is not declared as a child by the sheet that contains it. (In Accessibility Inspector, it gives the message "Parent does not report child as one of its elements.")
So in the 10.8 script, I used the following to select "VPN" and then "PPTP" in the property sheet:
tell application "System Preferences"
reveal pane "Network"
activate
tell application "System Events"
tell process "System Preferences"
tell window 1
delay 1
click button "Add Service"
tell sheet 1
click pop up button 1
click menu item "VPN" of menu 1 of pop up button 1
click pop up button 2
click menu item "PPTP" of menu 1 of pop up button 2
[etc]
In 10.9, this does not work, because there is no pop up button 2 of sheet 1 of window 1 of the Network pane. There is a pop up button, of course, but it is not "of" sheet 1 - it does not appear in sheet 1's AXChildren.
Any ideas? Help a newbie out?Same issue here, any news on this @ghjm?
-
Just updated to v 3.6.21 because previous version was a pain too. When I updated to that one it made the window opening delayed - I mean REALLY delayed, like at least a minute EVERY time, including start-up. How annoying. NOW I can't print and it crashes EVERY time I try. Doesn't matter if I use the pull down menu or the comand "P", or the print preview. I have a Mac running OSX v 10.4.11. I know my software is older so if there's a conflict can I uninstall FF and re-install an older version that works?? IF so, how do I do this? PLEASE HELP ME. thanks
You may well find this article of interest and help in sorting out your problems: [[Installing a previous version of Firefox]] The article does contain a link for previous versions, but also points out other troubleshooting advice that may be more appropriate in some instances.
Another useful article is [[Basic Troubleshooting]]
I hope you sort out your problems either by downgrading or finding the cause of the problem. -
Deselecting images in camera raw before opening the rest is deleting the files from finder!
Hi, as the title suggests, im having an issue with of our machines. There are 6 running camera raw and it is the only one to do this (version 6.6).
Example situation:
10 RAW files are dragged into photoshop,
they open in camera raw.
all are selected and a white balance taken from the 'grey card' image that has been shot specifically.
the grey card image is then deselected (with backspace button or otherwise) because i don't need it to be opened in photoshop for further editing with the rest.
the problem:
after clicking 'open images' the deselected grey card image is dissapearing from my finder window. the delay in opening in photoshop means i can actually watch it go.
this doesnt happen on any other of my machines in the studio and that action should simply tell camera raw that i dont want to open that particular image in photoshop.
can anyone tell me why it is doing that??
we're working off our server (as we normally do), so the files arent being sent to the trash. if raws are worked on from the dekstop, the same thing happens and they obviously go straight to the trash then
why is camera raw deleting my files? are they recovereable? how do i stop it?
any help would be great. its a fast working studio and the grey card shots are not something we can afford to be losing.
thanks,
dom.Sounds like you're working over a network.
This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
See:
http://kb2.adobe.com/cps/406/kb406793.html
Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work. It should.
Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
When problems arise, a lot of valuable work can be lost.
Maybe you are looking for
-
Why do I have to sign into my homepage every time I click the home tab??
every time I click on the HOME icon, I get my basic webpage that asks me to sign in. why is this happening?? the att.yahoo page gives the option of "keep me signed in for 2 weeks unless I sign out" & I have this box checked. I was using IE & Chrome u
-
avast free antivirus current version 8.0 (40527), is blocking some yahoo email synchronization in OSX Mavericks 10.9.1. I am working with the current Mavericks Mail version 7.1 (1827) After disabling the avast antivirus, almost all my yahoo emails (e
-
Cisco 6248 Connectivity Limitations
Hello, I am new to the UCS Fabric Interconnects and am wondering if there are limitations to connecting a Cisco 3925 Gen 2 ISR (desinated Voice Gateway) to a fabric interconnect, specifically a 6248 with the latest version of code. It appears that t
-
I have Ideas communicating correctly and is now syncing to the cloud as it's supposed to.... but when I try to send .idea files to Illustrator either directly from my iPad or downloaded from the cloud, I can't open them without crashing illustrator.
-
Name Changes in the From Collum
Hi All, So, something odd happens... Several names on the from column in the mail program change to different names that are in my address book. So, if I get a message from Sam, his name mysteriously changes to Fred. I have tried rebuilding the mail