Re: How to invoke SendInput() Windows API. was Re: How do I paste into a different app?
I found this on Microsoft's developer site but I don't know how I can implement it. > The SendKeys class has been updated for the .NET Framework 3.0 to enable its > use in applications that run on Windows Vista. The enhanced security of > Windows Vista (known as User Account Control or UAC) prevents the previous > implementation from working as expected. > > The SendKeys class is susceptible to timing issues, which some developers > have had to work around. The updated implementation is still susceptible to > timing issues, but is slightly faster and may require changes to the > workarounds. The SendKeys class tries to use the previous implementation > first, and if that fails, uses the new implementation. As a result, the > SendKeys class may behave differently on different operating systems. > Additionally, when the SendKeys class uses the new implementation, the > SendWaitmethod will not wait for messages to be processed when they are sent > to another process. > > If your application relies on consistent behavior regardless of the operating > system, you can force the SendKeys class to use the new implementation by > adding the following application setting to your app.config file. > > > > > > To force the SendKeys class to use the previous implementation, use the value > "JournalHook" instead. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jan 7, 2010, at 3:02 AM, runrev260...@m-r-d.de wrote: > Hi Bill, > > i have done something similar. You can create a vbs script and let Rev run > this. > > I am not very good at VBS, but the following lines show how to insert text > into an app. > > ___ > Set WshShell = WScript.CreateObject("WScript.Shell") > WshShell.Run "winword.exe" > 'the app is opened. If your app is already running, you do not need this line > WScript.Sleep 2000 > 'script stops for 2000 milliseconds to take sure, that the app is running > before further proceeding. > > WshShell.AppActivate "Dokument1 - Microsoft Word" > 'activates your already running app > 'between the quotes you have to put the exact name of the app - as it is > shown in the title bar of that app > ' winword also shows the document name in the title bar > > WScript.Sleep 100 > 'script stops for 100 milliseconds' > > WshShell.SendKeys "This Text should be inserted" > 'the text between the quotes is sent to the app > > WScript.Sleep 100 > WshShell.SendKeys "{enter}" > 'sends an enter to winword > WScript.Sleep 100 > > WshShell.SendKeys "This Text should also be inserted" > 'the text between the quotes is sent to the app > > > > Maybe Ken Ray could jump in, as he knows much more about VB and VBS. > > Regards, > > Matthias > > > > > > Original Message > Subject: How to invoke SendInput() Windows API. was Re: How do I paste into a > different app? (07-Jan-2010 6:42) > From:Bill Vlahos > To: runrev260...@m-r-d.de > >> It looks like Microsoft has deprecated the keybd_event API and suggests >> using SendInput() instead. >> >> Below is a sample of what needs to be sent. This is a C++ example. How do I >> send this from Rev in Windows? It looks similar to what I do with >> AppleScript on the Mac? While the send...as applescript commands are >> documented in Rev's dictionary I don't see anything similar for Windows >> APIs. >> >> INPUT inp[2]; >> memset(inp,0,sizeof(INPUT)); >> inp[0].type = INPUT_KEYBOARD; >> inp[0].ki.dwFlags = KEYEVENTF_UNICODE; // to avoid shift, and so on >> inp[1] = inp[0]; >> inp[1].ki.dwFlags |= KEYEVENTF_KEYUP; >> >> for (LPCTSTR p=str; *p; p++) { >> inp[0].ki.wScan = inp[1].ki.wScan = *p; >> SendInput(2, inp, sizeof(INPUT)); >> } >> >> Here are some relevant links: >> http://msdn.microsoft.com/en-us/magazine/cc163867.aspx >> http://www.codeguru.com/forum/showthread.php?t=377393 >> http://msdn.microsoft.com/en-us/library/ms646310(VS.85).aspx >> >> On Dec 31, 2009, at 7:27 AM, Bill Vlahos wrote: >> >>> I figured it out and have it working on the Mac with AppleScript. I'm not >>> using a paste function but the AppleScript "keystroke" function. It looks >>> like the Windows API "keybd_event" can do the same type of thing. >> >> Bill Vlahos >> _ >> InfoWallet (http://www.infowallet.com) helps me remember the important >> details of my life. >> >> ___ >> use-revolution mailing list >> use-revolution@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> >> >> >> >> To: use-revolution@lists.runrev.com > > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com
Re: RunRevLive.10: 72 hours left to save
Joe, After some unintentional, but IMO painfully personal comments on this List, if I were Kevin, I wouldn't be visiting this List for a while. Your should email Support or Heather directly. You'll get a much faster response. HTH On Mon, Mar 8, 2010 at 11:42 AM, Joe F. wrote: > Hi Kevin, > > I'm sorry, I missed this entire line of messages until tonight so I didn't > know about the complications until now. > > I still haven't received DVDs, letter, or anything and it's nearly two weeks > since this email. > I was just wondering when they might show up and sitting down to inquire > when I came across this. > > So maybe someone could check that I haven't somehow been overlooked. > > As far as whatever silliness you were responding to there, I'd recommend the > use of the "little white lie" as a very handy business tool in cases like > this. It's only wrong to use it to hide genuine wrongdoing; otherwise, it's > your friend. > So they accidentally sent you porn discs - these things happen. > > Cheers, > Joe F. > > On Feb 25, 2010, at 5:12 PM, Kevin Miller wrote: > >> Richmond, >> >> I'm certainly not using those events as an excuse. I'm simply stating a >> fact >> which is true, for those of you that are interested. You can accept that >> or >> not. I have apologized for the situation with respect to the DVDs, it is >> inexcusable. >> >> We knew going into this that we had a lot to learn from the previous set >> of >> conference DVDs which is why we set out well in advance to do better this >> year. I was absolutely determined from the start we would get it right. >> Everything was planned carefully so we could improve and deliver you a >> wonderful experience from end to end. We made many changes to the product >> and it went well. The feedback I have is that the DVDs are better quality >> this year than last year. Unfortunately there was an intersection between >> the events that happened and the delivery of these DVDs. I'm not going to >> go >> into great detail but there was a chain of events involved. Bill was sick >> for a long time before he died which contributed a series of other issues >> we >> were having as a business for a period some time before the actual event. >> We >> had issues with the supplier (we won't be using them again), which we were >> not on top when they occurred because of staff shortages. Ultimately in >> spite of that I take full responsibly. Its unfortunate, I feel bad, I'm >> not >> making excuses. I'm just telling you what happened. >> >> You have every right to judge us for non-delivery of this product. >> However, >> and while I don't want to make this response overly personal, frankly you >> have no right to stand in judgment over my response to everything that >> happened on a personal level. I'm interested to hear that you are able to >> separate that out entirely in your life, but we all react differently to >> these things and I am certainly not able to do that, nor is Heather, Robin >> or some of the other people involved in this. There have been some major >> consequences on a number of levels and for the last two months I have >> simply >> run from one crisis to the next. >> >> The vast majority of the DVDs are now safely in the hands of our >> customers. >> If you have not received your DVD you will have received a letter from us >> today offering you an estimated delivery time and year's free license >> extension. If you have not received the DVDs nor a letter, your DVD >> shipped >> some time ago and as far as we are aware it should be with you. If this >> applies to you feel free to contact me directly, off list. Again I >> apologize >> for letting down our customers and we will do better next time. >> >> Kind regards, >> >> Kevin >> >> Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/ >> RunRev - Software construction for everyone > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: missing fields in Application Browser
On Mon, Mar 8, 2010 at 2:49 PM, Scott Morrow wrote: > Recently, in one of my projects, the Application Browser stopped showing > fields that were in a group. Furthermore, the fields in this group no longer > allow text to be hilited. (The text can still be edited, but not something > that is really usable.) The fields are obviously still there and running "put > the num of flds of this cd" into the message box returns "18" Yet only one > field shows in the Application browser. The field that does show is not in a > group. I've tried trashing the preferences file and reinstalling rev. I was > hoping not to deconstruct and rebuild the groups. Has anyone else run across > this? Thoughts? > Rev 4.0 Enterprise Check the settings for the group in the Inspector. rev 4.0 introduced a new group property called selectGroupedControls. If this is set to true (or checked in the Inspector), then the individual members of the group will not be listed in the Application Browser. This doesn't explain why you can't hilite any text in the fields, but check the group settings and see if anything there fixes that too. HTH, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
missing fields in Application Browser
Recently, in one of my projects, the Application Browser stopped showing fields that were in a group. Furthermore, the fields in this group no longer allow text to be hilited. (The text can still be edited, but not something that is really usable.) The fields are obviously still there and running "put the num of flds of this cd" into the message box returns "18" Yet only one field shows in the Application browser. The field that does show is not in a group. I've tried trashing the preferences file and reinstalling rev. I was hoping not to deconstruct and rebuild the groups. Has anyone else run across this? Thoughts? Rev 4.0 Enterprise Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Best way to carry out boolean searches on large text body.
Thanks for the ideas. I had completely missed the concept of using "is in" as a method. To be honest I had thought these types of search wold be too slow. Boy was I wrong. Doing a simple text on my 450,000 word text block was effectively instantaneous. Most impressive. While the boolean searching is only one aspect of my project, it was the prime aspect upon which everything else was to hang. James ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: reading and converting web page HTML text
> Apparently numbers less than 8 are interpreted as HTML relative size > and larger numbers specify point size. > > Could this have something to do with the recently mentioned problems > with font sizes on Unix platforms? If somehow the rev unix engine is > mixing these up, then something intended to be size 14 could display > at size 4. But I know very little about this stuff, it's just a > thought. Actually it's the way web browsers handled it a long time ago when "real" font sizes were introduced; they had to remain backwards compatible with the previous method but also adopt the new one. Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: RunRevLive.10: 72 hours left to save
Hi Kevin, I'm sorry, I missed this entire line of messages until tonight so I didn't know about the complications until now. I still haven't received DVDs, letter, or anything and it's nearly two weeks since this email. I was just wondering when they might show up and sitting down to inquire when I came across this. So maybe someone could check that I haven't somehow been overlooked. As far as whatever silliness you were responding to there, I'd recommend the use of the "little white lie" as a very handy business tool in cases like this. It's only wrong to use it to hide genuine wrongdoing; otherwise, it's your friend. So they accidentally sent you porn discs - these things happen. Cheers, Joe F. On Feb 25, 2010, at 5:12 PM, Kevin Miller wrote: Richmond, I'm certainly not using those events as an excuse. I'm simply stating a fact which is true, for those of you that are interested. You can accept that or not. I have apologized for the situation with respect to the DVDs, it is inexcusable. We knew going into this that we had a lot to learn from the previous set of conference DVDs which is why we set out well in advance to do better this year. I was absolutely determined from the start we would get it right. Everything was planned carefully so we could improve and deliver you a wonderful experience from end to end. We made many changes to the product and it went well. The feedback I have is that the DVDs are better quality this year than last year. Unfortunately there was an intersection between the events that happened and the delivery of these DVDs. I'm not going to go into great detail but there was a chain of events involved. Bill was sick for a long time before he died which contributed a series of other issues we were having as a business for a period some time before the actual event. We had issues with the supplier (we won't be using them again), which we were not on top when they occurred because of staff shortages. Ultimately in spite of that I take full responsibly. Its unfortunate, I feel bad, I'm not making excuses. I'm just telling you what happened. You have every right to judge us for non-delivery of this product. However, and while I don't want to make this response overly personal, frankly you have no right to stand in judgment over my response to everything that happened on a personal level. I'm interested to hear that you are able to separate that out entirely in your life, but we all react differently to these things and I am certainly not able to do that, nor is Heather, Robin or some of the other people involved in this. There have been some major consequences on a number of levels and for the last two months I have simply run from one crisis to the next. The vast majority of the DVDs are now safely in the hands of our customers. If you have not received your DVD you will have received a letter from us today offering you an estimated delivery time and year's free license extension. If you have not received the DVDs nor a letter, your DVD shipped some time ago and as far as we are aware it should be with you. If this applies to you feel free to contact me directly, off list. Again I apologize for letting down our customers and we will do better next time. Kind regards, Kevin Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/ RunRev - Software construction for everyone ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Windows Portable???
Subtitled: "Naive Question 108". Is 'U3' the same thing as Windows Portable? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: reading and converting web page HTML text
On Mar 6, 2010, at 7:13 PM, Jim Ault wrote: On Mar 6, 2010, at 2:35 PM, Mark Stuart wrote: Hi François, Thanx for your quick reply. I added Sarah's script into my application and ran it. The function halted with an error on ("), because it is not a number. I think Sarah's function is looking for a number after the ampersand, correct? So I'm handling the (") as an exception for now by using this script: if theText contains """ then replace """ with quote in theText end if and then call the decodeEntities(theText) function. I'm sure I'll come across other HTML text like this, but don't know how to handle it really. Basically, I would go to a site that shows all html entities, make a list of those, and do a replace using a repeat loop. Google 'html entities' to get the possibilities. Jim Ault Las Vegas I was curious about this so I looked in the dictionary entry for "HTMLtext", in which there is a list of named HTML entities that Rev is supposed to recognize. In my version of the dictionary this list is missing the ampersand before almost all the entries and also mostly doesn't show the characters referred to (I'm submitting a user note on this). I cleaned up this list meanwhile and it is available at: http://home.comcast.net/%7Epmbrig/HTMLcharEncoding.dmg (Mac) http://home.comcast.net/%7Epmbrig/HTMLcharEncoding.rev.zip (Windows) The data is stored also in stack custom properties -- to find the HTML encoding for a character c, use: the chartoHTML[c] of this stack but you have to set the casesensitive to true first before calling the function or it won't recognize the difference between "É" and "é" On another note, in perusing the dictionary entry for HTMLtext, I noticed that it says: Encloses text whose textFont, textSize, foregroundColor, or backgroundColor is different from the field's default. These five properties are represented as attributes of the tag. * face="fontName" appears in the tag if the textFont is not the default. * size="pointSize" appears if the textSize is not the default. In standard HTML, the size attribute normally takes a value between 1 and 7, representing a relative text size, with 3 being the normal text size for the web page. To accommodate this convention, when setting the HTMLText of a field, if the pointSize is between 1 and 7, the textSize of the text is set to a standard value: pointSize textSize 1 8 point 2 10 point 3 12 point 4 14 point 5 17 point 6 20 point 7 25 point and further down it says: * The size attribute of the font tag can encode the font's point size, in addition to the standard 7 HTML sizes. Apparently numbers less than 8 are interpreted as HTML relative size and larger numbers specify point size. Could this have something to do with the recently mentioned problems with font sizes on Unix platforms? If somehow the rev unix engine is mixing these up, then something intended to be size 14 could display at size 4. But I know very little about this stuff, it's just a thought. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Replace colors in imageData under linux doesn't work
Le 7 mars 2010 à 16:18, Jeffrey Massung a écrit : > > Is the Linux machine you are on PPC (read: big endian)? No, i've tried on a emulated linux (with Parallel on a iMac intel), on a pc and on a netbook intel___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Replace colors in imageData under linux doesn't work
Is the Linux machine you are on PPC (read: big endian)? Jeff M. On Mar 7, 2010, at 8:27 AM, Ludovic Thébault wrote: > Hello, > > I've made a map wih several sectors. Each sector have a specific color. > For example sector one have this color : 245, 255, 255 > sector two : 215,255,255 > sector three : 194,255,255 > ... > The map appear in blue (each sector with a different blue) > > Under MacOS and Windows, a script replace the color of a sector with an > other. But under linux (Ubuntu, Mandriva, Xubuntu) it doesn't work. I've > tested with Rev Studio 2.91 and RevMedia 4. > > the script : > get the imageData of image "carte" > > replace (numToChar(0) & numtochar(230) & numtochar(255) & numtochar(255)) > with \ >(numToChar(0) & numtochar(45) & numtochar(155) & numtochar(90)) in it > > Under Linux, my map appear yellow ! > > Here, a screenshot with the original map, the new map under MacOS and under > Linux > http://img.skitch.com/20100307-11umgehf9gmes8p9k6yknc7w8d.jpg > > Any ideas ? and any workaround ? Thanks > !___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Replace colors in imageData under linux doesn't work
Hi, only a wild guess here as I don't have a setup to experiment, but is there any possibility the alpha channel order isn't the same...? On Sun, Mar 7, 2010 at 9:27 AM, Ludovic Thébault < ludovic.theba...@laposte.net> wrote: > Hello, > > I've made a map wih several sectors. Each sector have a specific color. > For example sector one have this color : 245, 255, 255 > sector two : 215,255,255 > sector three : 194,255,255 > ... > The map appear in blue (each sector with a different blue) > > Under MacOS and Windows, a script replace the color of a sector with an > other. But under linux (Ubuntu, Mandriva, Xubuntu) it doesn't work. I've > tested with Rev Studio 2.91 and RevMedia 4. > > the script : > get the imageData of image "carte" > > replace (numToChar(0) & numtochar(230) & numtochar(255) & numtochar(255)) > with \ >(numToChar(0) & numtochar(45) & numtochar(155) & numtochar(90)) in > it > > Under Linux, my map appear yellow ! > > Here, a screenshot with the original map, the new map under MacOS and under > Linux > http://img.skitch.com/20100307-11umgehf9gmes8p9k6yknc7w8d.jpg > > Any ideas ? and any workaround ? Thanks > !___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Replace colors in imageData under linux doesn't work
Hello, I've made a map wih several sectors. Each sector have a specific color. For example sector one have this color : 245, 255, 255 sector two : 215,255,255 sector three : 194,255,255 ... The map appear in blue (each sector with a different blue) Under MacOS and Windows, a script replace the color of a sector with an other. But under linux (Ubuntu, Mandriva, Xubuntu) it doesn't work. I've tested with Rev Studio 2.91 and RevMedia 4. the script : get the imageData of image "carte" replace (numToChar(0) & numtochar(230) & numtochar(255) & numtochar(255)) with \ (numToChar(0) & numtochar(45) & numtochar(155) & numtochar(90)) in it Under Linux, my map appear yellow ! Here, a screenshot with the original map, the new map under MacOS and under Linux http://img.skitch.com/20100307-11umgehf9gmes8p9k6yknc7w8d.jpg Any ideas ? and any workaround ? Thanks !___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re-4: RevMobile first impressions?
Ah, i see. So i have to finally test with my iPhone instead of testing with the simulator to get to know what does work and what doesn´t. Regards, Matthias Original Message Subject: Re: Re-2: RevMobile first impressions? (07-Mrz-2010 13:49) From:Sarah Reichelt To: runrev260...@m-r-d.de > > > Sent from my iPhone > > On 07/03/2010, at 10:23 PM, runrev260...@m-r-d.de wrote: > > > >> I can't download either a file or a web page from the internet. > > > > Hi Sarah, > > > > how do you download a file. I am using here > > > > put URL to download a textfile from an http authenticated > > webfolder and > > that works. At least in the iPhone simulator. > > > > I'm using "put URL" too and it works perfectly in the simulator but > not on an actual iPhone. > > Cheers, > Sarah > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > > > To: use-revolution@lists.runrev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Re-2: RevMobile first impressions?
Sent from my iPhone On 07/03/2010, at 10:23 PM, runrev260...@m-r-d.de wrote: I can't download either a file or a web page from the internet. Hi Sarah, how do you download a file. I am using here put URL to download a textfile from an http authenticated webfolder and that works. At least in the iPhone simulator. I'm using "put URL" too and it works perfectly in the simulator but not on an actual iPhone. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re-2: RevMobile first impressions?
Original Message Subject: Re: RevMobile first impressions? (06-Mrz-2010 16:59) From:Sarah Reichelt To: runrev260...@m-r-d.de > I can't download either a file or a web page from the internet. Hi Sarah, how do you download a file. I am using here put URL to download a textfile from an http authenticated webfolder and that works. At least in the iPhone simulator. Regards, Matthias ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution