Related
Hello,
I have such a problem. But first I will explain why I have that problem.
In company we are using a PocketPC with Windows Mobile 2002. And have only one apllication for work.
When connecting to Server we need to tap the left bottom corner of the screen.
Many of workers tap with diferent objects like cutters, pens, not with Stylus, so the left bottom corner become bad in 1-2 months, till the time I can't do nothing, just changing the screen.
So. There is a posibility to implement somehow a ShortCut to that menu, to avoid taping that part of screen? (Because after that in program we use only buttons.)
(Note: I have no source code for tha app.)
Any kind of help will be apreciate.
Thank you much!
It's easy to simulate screen tap by code.
Do you have experience programming in C/C++?
If so all you have to do is write a little app that does the following:
Code:
HWND hWnd; //window handle
hWnd = FindWindow(L"BUTTON", L"Connect to server"); //this text is just an example
SendMessage(hWnd, WM_LBUTTONDOWN, 0, MAKELPARAM(5, 5)); //actually simulates the click
Then you can assign this app to a hardware button using device settings or put a shortcut to is in the start menu.
I don't know of any ready apps to just simulate a click, but there was a thread around here somewhere on a virtual mouse app for PPC. It's free so try searching for that. (Sorry, don't remember the link).
Good luck.
Thank you man.
I'll try this...
levenum said:
It's easy to simulate screen tap by code.
Do you have experience programming in C/C++?
If so all you have to do is write a little app that does the following:
Code:
HWND hWnd; //window handle
hWnd = FindWindow(L"BUTTON", L"Connect to server"); //this text is just an example
SendMessage(hWnd, WM_LBUTTONDOWN, 0, MAKELPARAM(5, 5)); //actually simulates the click
Then you can assign this app to a hardware button using device settings or put a shortcut to is in the start menu.
I don't know of any ready apps to just simulate a click, but there was a thread around here somewhere on a virtual mouse app for PPC. It's free so try searching for that. (Sorry, don't remember the link).
Good luck.
Click to expand...
Click to collapse
So I have not so many experience in C++ and nor in Visual Studio.
Can you provide me with full c++ code for Visual Studio 2005?
Thank you in advance.
Here is another way. Just create a simple project in vis studio ( I am not using 2005 so I cant tell you what its called, if all else failes use the "hello world" option). Open the main .cpp file and after the includes delete everything. Paste this in....
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_ABSOLUTE,61439,1638,0,NULL);
return 0;
}
Then build the exe. Make a shortcut to the exe on your device and place it in the windows\start menu folder. When the user taps the shortcut the cordinates specified will get a mouse down message, not all ppc programs will rspond to this message but most bought software I have do.
As it is, this will hit the close button on a 240*320 display. To vary the target location see this from the documentation:
If MOUSEEVENTF_ABSOLUTE value is specified, dx and dy contain normalized absolute coordinates between 0 and 65,535. The event procedure maps these coordinates onto the display surface. Coordinate (0,0) maps onto the upper-left corner of the display surface, (65535,65535) maps onto the lower-right corner.
...So you may need to play with it to hit the spot.
If that fails then just replace the
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_ABSOLUTE,61439,1638,0,NULL);
with levenum's code putting the name of the window you are talking about in instead of "Connect to server" to send the normal WM_LBUTTONDOWN message to that window.
OdeeanRDeathshead, your method seems to work. I did it and application works proprely on my Magician.
But now the question is: I need that program for a PocketPC 2002 platform. How to do this in VS2005, can explain me anyone?
Thank you in advance.
Actually, you can't write apps for WM2002 using VS2005.
You need eMbedded Visual C++ 3. It is available free from Microsoft, just search the site. You will also need to install Pocket PC 2002 SDK. (also free on MS site)
levenum said:
Actually, you can't write apps for WM2002 using VS2005.
You need eMbedded Visual C++ 3. It is available free from Microsoft, just search the site. You will also need to install Pocket PC 2002 SDK. (also free on MS site)
Click to expand...
Click to collapse
Ok.. all this I installed.
I will try to do the program there. But problem become more complicated.
My PDA's are not HTC. They are modified by SYMBOL company. So.. I realized that i have no HARD BUTTON.
In start menu I can't let the application, only because START is not accessible. The only program is that for work and it's full screen.
The PDA have a keyboard.
The question is: it is possible to do in program a HOT_KEY combination, and run MOUSEEVENTF_LEFTDOWN only when HOT_KEY combination was pressed.
I understand that program must remain in memory to intercept that.
Do you mean that there are no buttons on your device, only a keyboard?
Doesn't matter really because as far as windows is concerned keystrokes from device buttons and full keyboard are handled the same.
Sorry I am not really familiar with setting up hot keys, I think your app window needs to have input focus for that to work.
There is a function called SetWindowsHookEx that lets you hook all keyboard events so they will pass through your function. You can then have a small app in background (without UI) that will monitor any key combination you want and simulate the tap when necessary.
levenum said:
Do you mean that there are no buttons on your device, only a keyboard?
Click to expand...
Click to collapse
Yeah.... it looks like this http://www.symbol.com/PDT8100
I do not know if you can throw some cash at your problem but SKScHeMa from www.s-k-tools.com can wait for an application to start then execute a script. In the script you can simulate both tap and tap and hold actions.
Hope that helps.
Regards cjb.
One of those buttons must correspond to the buttons on the normal ppc. It would be overkill too write an app to run constantly just to redirect one tap. Do you have the opportunity to ever start the unit without the fullscreen program running, if so you could experiment with the button assignments to find the correct one. If the author of the custom software on the thing was half good they could have disabled those buttons assignments while its running, but if they didn't thats the best solution.
If that fails perhaps a program to run after powerup and ask if the user wants to connect to the server could work. It could show for 10 seconds then end. There was a thread here somewhere about programs starting on powerup but I can't seem to find it now.
edit:
I read the specs and it has two "side scan keys", I bet they are your buttons waiting to be reassigned!
OdeeanRDeathshead said:
One of those buttons must correspond to the buttons on the normal ppc. It would be overkill too write an app to run constantly just to redirect one tap. Do you have the opportunity to ever start the unit without the fullscreen program running, if so you could experiment with the button assignments to find the correct one.
Click to expand...
Click to collapse
No one of that buttons corespond to CALENDAR or CONTACTS or CAMERA or RECORD button.
I can start the device without work program. Also I don't need to simulate tap, because I own my PDA and have knoweledge how to use it.
Users don't know much... for that i disables all. Only Work program in fullscreen mode without START MENU.
I read the specs and it has two "side scan keys", I bet they are your buttons waiting to be reassigned!
Click to expand...
Click to collapse
This is a PDA with barcode scanner. That 2 buttons named "side scan keys" are only for SCANNER and are not programable.
TO ALL: Thank you for your support![/quote]
cjb said:
I do not know if you can throw some cash at your problem but SKScHeMa from www.s-k-tools.com can wait for an application to start then execute a script. In the script you can simulate both tap and tap and hold actions.
Hope that helps.
Regards cjb.
Click to expand...
Click to collapse
Thanks for help.
I can't do any investitions in that.
More of that it's not the same I need. I need to simulate this not only at start, also during work.
Yes, so make the prgram asking if a connect is needed run when the power button is pressed. If the user needs to connect they press off then on then the window comes up asking if a simulated tap is needed (I do not mean reset). If the full off is not desireable then dose your unit change the brightness when the power button is held down? If so, and if it is using the standard name for the named event to signal brigtness changes then you could make the tap simulate program run all the time in a loop but waiting for the brigtness change event. Waiting will take up almost no processor time and the program is so small it takes up almost no memory! The user just has to hold the power button for several seconds and the your window will pop up. The down side is that your app will also have to save then restore the brigtness settings so the user dose not need to manualy reset the brigtness level.
I've done a pretty thorough search on here and have not found this info yet:
1. I need to find a way to call up the Pocket Office menu (the one with Word, Excel, and PowerPoint shortcuts) from the touch Cube. I tried using the officered.dll but can't work it out. Any Ideas?
2. I would like to toggle wifi on/off from the touch Cube as well. Any ideas to that shortcut?
Thanks
1) Search for touch settings app. This should let you change shortcuts on cube faces. Be weary, if you start to play around with it's other options, i changed the animations of the cube via this app and could not get them to change back.
or
search around the key registry for the cube app side settings and to it manualy yourself.
2) Search for just that, either google or xda, wifitoggle or something. There is a small app that has a shortcut to it too that you can use.
TouchSettings application killed the animation of the Touch Cruise Cube. I'd recommend to generally stay away from it. There's a real thing there about the biotouch version etc...
I found that you just have to link to fexplorer.exe with the path to the folder you want to open in the parameters. This way you can link the touch cube to any folder.
Still looking to toggle wifi...
edan said:
... I found that you just have to link to fexplorer.exe with the path to the folder you want to open in the parameters.
Click to expand...
Click to collapse
That's exactly what I'd like to do but not sure what to enter in path/parameters/whatever. How do I make the tweaks?
Thanks.
Never mind - I figured it out myself somehow (Even a blind squirrel finds the occasional acorn).
Love my HD2, but am wondering if anyone knows of a shortcut to get to call forwarding or an app to turn on and off call forwarding, without having to go through all the screens and toggle?
TY
Andrew
I would like to know this aswell, if anyone out there can help ??
any news on this one? It woul be a very handy app.
If you use Launcher Pro as your launcher then you can open that page with an activity shortcut.
Long-hold the home page to add a shortcut and go:
Shortcuts, Activities, Dialer, Call forwarding
It still takes a few seconds to populate that page, but it has to get the information from your provider every time you start it, so there's nothing you can do about that. It is, however, a shortcut to that page.
If you don't use Launcher Pro then I don't believe you have the ability to add activity shortcuts.
I know its been a while since this was requested. I have just changed my car and the new one has an old factory fitted Motorola startac fitted as a factory option. Rather than mess and fit a new hands free kit I was wanting to forward my HD2 to the Startac.
I have just found the way to do what you require. Firstly use your file explorer (i used resco) to unhide hidden files. Then look in the windows folder on your device and look for CMcallforward. You should then be able to send this to your start menu. Im using Cookies Home tab so I was then able to add this as a quick link.
Hope this helps, cant get much better than a one button option
I looked around and couldn't find a detailed guide on how to do this so I figured it out and decided to share..
Prerequisites:
Working Webtop
XFCE Desktop
or
AWN Manager
aLogcat > https://market.android.com/details?id=org.jtb.alogcat&hl=en
This is a simple proccess which will require you to use aLogcat to get the activity name of the item you want to launch and then simply make a new shortcut item on your launcher.
Getting our activity name:
Launch aLogcat
Hit the menu button on your phone
Select Filter
type "activityMan"
leave the option for regular expression unchecked
--Now that your application is logging and filtered you will see a window with alot of text. This is where we will be searching.
hit your menu button again
Select Clear
Now hit your home button and navigate to the icon you would like to be able to directly launch from your webtop and click it.
Go back to aLogcat
Hit the menu button on your phone.
Choose the pause option from ALogcat
***Now were going to search for the string we need to tell activity manager which activity to launch**
Look through your log for something that looks like this: "com.p1.chompsms/.activities.ConversationList" (this one will launch ChompSMS)
In my case the entire line looked like this: /ActivityManager( 1700): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.p1.chompsms/.activities.MainActivity bnds=[5,343][115,483] } from pid 3088
copy the string that comes after "cmp=" (bolded above)
Creating the shortcut
Depending on which interface you are using this will differ slightly:
For AWN Manager
Open AWN Manager
Choose Launchers
Click Add
Set your name description and Icon
For Command add the following: androidlauncher --action "android.intent.action.MAIN" --cmp "<TEXT THAT YOU COPIED ABOVE>"
For XFCE
Right click on the task bar.
Choose "Customize Panels"
Next to where it says Panel 1 hit the + button to create a new Panel.
**Select the new panel and edit its options**
Set it to Normal Width | Fixed position | And then select the position where you would like to see it on your screen.
Change icon size to suit your taste. (Tip, if you would like to use the icon for the application an easy way to get it is to Google "AppName icon" and then use Google's image search. Choose an icon that's somewhere near 96*96 (you can sort by size), save it and select it from the menu.
Now that we have created a shortcut / panel
Right click the new panel / Icon
Add new Items
Launcher
Set your name description and Icon
For Command add the following: androidlauncher --action "android.intent.action.MAIN" --cmp "<TEXT THAT YOU COPIED ABOVE>"
you now have a working shortcut that will pull up the app or activity in "Mobile view" on your webtop!
Yay.
If anyone knows any more tricks with this please let me know! I have been wondering if it is possible to tell the app to come up in full screen.
** if this helped you please remember to hit the thanks button (help a guy boost his newb cred) **
Thanks for this. You probably saved me a lot of time because I was going to try to figure out how to do this.
Have all the apps on the phone worked without problems?
Also, does the Entertainment App work thru XFCE Desktop without the Awn dock?
blingmaster said:
Thanks for this. You probably saved me a lot of time because I was going to try to figure out how to do this.
Have all the apps on the phone worked without problems?
Also, does the Entertainment App work thru XFCE Desktop without the Awn dock?
Click to expand...
Click to collapse
I haven't tested enough to say whether everything works or not. I also haven't eve used the entertainment center . This was one of the primary reasons why I was frustrated with the original webtop. They gave use the ability to launch only a couple of their apps rather than just creating a mechanism for us to select apps for shortcuts. This is something I may look into developing in the future.
Awesome work! I was just going to look at this today after looking at XFCE menu editing yesterday and BAM you already did it!
Too bad I broke my webtop somehow and had to start over this morning. I'm getting so practiced I could do it in my sleep!
Upon further thinking, you could probably just create a .desktop file like the other ones have and then it would automagically get put in the XFCE menu. Then it could be scripted and added into webtopscripts or something.
stewartsoda said:
Awesome work! I was just going to look at this today after looking at XFCE menu editing yesterday and BAM you already did it!
Too bad I broke my webtop somehow and had to start over this morning. I'm getting so practiced I could do it in my sleep!
Upon further thinking, you could probably just create a .desktop file like the other ones have and then it would automagically get put in the XFCE menu. Then it could be scripted and added into webtopscripts or something.
Click to expand...
Click to collapse
Last night was my first night with a working webtop, being able to quickly launch ChompSMS , or pandora on my mobile view was top priority for me. Now that I have that mostly handled I guess I need to move on to learning XFCE tweaks. I'm really glad this helped, I was really surprised that this wasn't already hashed out and detailed, but I was glad to finally be able to contribute something over here!
Hi nineismine,
Mind to provide me a little bit of extra info on the below? Thank you in advance.
(1) How to "remove" the pre-installed short-cut apps in mobile view? For example the "Messaging". I rather prefer to replace this with the "Text Messaging" by following your tutorial.
(2) How to "remove" the pre-installed short-cut apps in webtop view? For example, mine Atrix is Asia Retail version and it build-in with the "Motorola Video" app-tray which I have no idea how to "remove" it.
I herewith attached the screenshot on my stock webtop for your reference (the stock webtop do support screenshot feature and I learn this from this link: http://forum.xda-developers.com/showpost.php?p=17093665&postcount=3)
Edited:
I found my solution by installing the webtop2SD. My issue solved. Thanks.
Hello guys,
I got my N4 today, very pleased.
I dont think there is a way to PASTE your smart clips. I see a way to share them and to add them to a scrapbook, but not paste.
I was sure I saw something like that in some demo?
The manual does not mention if/how that can be done,
Any success with that out there?
tx
Mark.
Select the text
Hit the T button on the selction.
Tap the Share button
Pick "Copy to Clipboard" from the Share via popup.
ATnTdude said:
Select the text
Hit the T button on the selction.
Tap the Share button
Pick "Copy to Clipboard" from the Share via popup.
Click to expand...
Click to collapse
Hi
Thanks for the response, but there is no such option to Copy to Clipboard.
If there is no option search playstore ...there was an app that forced copy to clipboard to be an option...especially useful for YouTube.
xManMythLegend said:
If there is no option search playstore ...there was an app that forced copy to clipboard to be an option...especially useful for YouTube.
Click to expand...
Click to collapse
Hi
yeah, I did that before I posted here.
The clipboard paste apps I found there are about COPYING multiple items to that clipboard, but which does not tie in with Smart Select - so you can't copy smart selected elements to those apps, only things which have the COPY contextual menu as an option, like when you select text and have a copy option.
Nothing I have found allows you to copy a "smart selection" set of items to the clipboard. In fact I don't know if this would make sense on an android system level... the "smart selection" may not use the android clipboard at all... so there may not be any solution unless Samsung makes it possible.
Mark
fredphoesh said:
Hello guys,
I got my N4 today, very pleased.
I dont think there is a way to PASTE your smart clips. I see a way to share them and to add them to a scrapbook, but not paste.
I was sure I saw something like that in some demo?
The manual does not mention if/how that can be done,
Any success with that out there?
tx
Mark.
Click to expand...
Click to collapse
If you open a note and use the edit in s-note icon in the lower right-hand corner, you can just drag one or more items from the collection to the note.
Maris_ said:
If you open a note and use the edit in s-note icon in the lower right-hand corner, you can just drag one or more items from the collection to the note.
Click to expand...
Click to collapse
Hi
Open a note?
What note?
I have some smart select items I want to paste into an email I am replying to.... and there is no "note" I am working on, and there is no icon anywhere to drag to that email I am replying to...
Seems this is how I would use it, and it does not work like that... you can create a new email but not add to a reply or add clips to an existing document.
fredphoesh said:
Hi
Open a note?
What note?
I have some smart select items I want to paste into an email I am replying to.... and there is no "note" I am working on, and there is no icon anywhere to drag to that email I am replying to...
Seems this is how I would use it, and it does not work like that... you can create a new email but not add to a reply or add clips to an existing document.
Click to expand...
Click to collapse
If you don't want to save it to a note, but email instead, it still works the same. Save your selected item (s) to a collection using that little collections icon then open your new email message. If you have more than one item in the collection, tap on the down triangle at the bottom of the collection box, select the item you want to place in the email, and just drag it over. It will place the text in the spot you drag it to.
When you are done placing the text or image. You can drag the collection box towards the top of the screen and a trashcan appears. Drag it to the trashcan and it deletes the collection.
Maris_ said:
Save your selected item (s) to a collection using that little collections icon then open your new email message. If you have more than one item in the collection, tap on the down triangle at the bottom of the collection box, select the item you want to place in the email, and just drag it over. It will place the text in the spot you drag it to.
Click to expand...
Click to collapse
nope
that does not work.
try it.
try smart copy a couple of icons off your desktop and try paste that in gmail. I copied the phone icon, the message icon and app drawer icons as one image file, and when I drag and drop that to gmail, I get "[email protected]" instead of the image of the three icons!
This only works with TEXT but not with photos. Photos result in some gobbledygook nonsense word.
It works via drag n drop with the stock email app. With Gmail you need to use the share button and pick gmail. They will in both cases be sent as attachments to the email you send.
Sent from my SM-N910T using XDA Free mobile app
It doesn't work on Gmail, only if you create a new message. If it's an existing message you're responding to, there is no way to use smart select.
It works as an attachment so you have to save the images first if you want to attach them in Gmail to a reply. I just tested it. I used Share>ES Save To to save the selection as a png to the download directory. (I have ES File Explorer so that shows up in the share list) Then open your Gmail item and attach it from there.
Sent from my SM-N910T using XDA Free mobile app
Well adding attachments to Gmail is something any phone can do... As I am trying to point out, Smart Select cannot paste the contents to an existing gmail, you have to save it first, then attach manually from gmail... Not particularly fast, unique or convenient.
You have to add the attachments to gmail one at a time
The text "Smart Selections" are attached purely as images (no OCR)
So Smart Select is great for Evernote, Google Keep or Samsungs note taking apps, but not for existing Gmails! Saving to Drive also saves text smart selections as images instead of OCR text & images.
Mark.
Well I think Smart Select is a bit of a misnomer. It works by automating the process of saving the selections to png files so you can share them. That's just how it works.
Sent from my SM-N910T using XDA Free mobile app
Dumbo53 said:
Well I think Smart Select is a bit of a misnomer. It works by automating the process of saving the selections to png files so you can share them. That's just how it works.
Click to expand...
Click to collapse
the main part is multiple clipboard copying of BOTH images AND text simultaneously.
It also does OCR of text in images
SADLY with "copy to clipboard" missing as a sharing option, the inability to paste to any app that can paste images and text simultaneously, like gmail, is missing.
I've been trying to figure this out too. I have found a different way of selecting items into the clipboard. I use image clip instead of smart select. Then I hit the share button in the top right. And it automatically copies the item to the clipboard.
---------- Post added at 01:16 AM ---------- Previous post was at 01:09 AM ----------
And from there, if you need it to be square there's an option to do so in the top left corner
sangvann said:
I've been trying to figure this out too. I have found a different way of selecting items into the clipboard. I use image clip instead of smart select. Then I hit the share button in the top right. And it automatically copies the item to the clipboardr
Click to expand...
Click to collapse
Hmm
when I go to Share , and then choose none of the options and then go to Gmail and press to get contextual menu, there is no paste that comes up... so nothing gets copied into the clipboard. What steps did you take?
Even if it did, that would be one image at a time... which is ok, but not quite the nifty thing SmartSelect could be if it could copy all pix and text to clipboard!
Mark