Hey all,
I am trying to find a way to bring up a contextual menu triggered swiftly (and reliably) - via MouseDown through Mortscript. The scenario is basically having to press and hold down on screen, wait for contextual menu while small dots appear before anything further can be done.
My current set up consists of a Mortscript that performs MouseDown, Sleeps for 1 sec, and then sends the R key.
Here's the snippet:
MouseDown (479, 639)
Sleep (1000)
SendKeys ("R")
It does work, but the whole process is inefficient and SLOW. I've found anything less that 1000ms and the script becomes unreliable.
Ideally, I'd like the contextual menu to pop-up instantaneously so that the "R" key can be sent immediately after (rather than having to wait). Is there such a way to do this? Any other ideas or suggestions are certainly welcome as well.
Thanks!
Related
I'd tried out several "task close" programs and have rounded up the 2 better ones..
1 ) vjokbuttons
2 ) phmkeys "close task"
advantages of vjokbuttons is that, u can add trailing options for the different behavior
advantages of the phmkeys close task is that, when u keep on pressing the hw button assigned to this phmkey close task, and the moment u are in today screen already, the next button press will prompt a suspend ppc dialog.. ie power down.
This phmkey has been used very extensively by me due to its ability to prompt a shutdown after all apps have been closed.
however, this nifty little program also have its disadvantages..
it does close the task window.. but as applications have secondary and tertiary windows, the phmkeys close task may cause the app to behave strangely if the task close is activated in the application secondary window..
also, it causes control panel apps to not run again if the phm task close was used to close , eg , "memory" in control panel..
I remember in wisbar, its task close button will automatic detect between the need of an "OK" click and the need for the "Close" click.
Is that possible to be included in the vjokbutton?
ie if in secondary window of app [ eg options page ] to have the vjokbutton to simulate an "ok" click instead of close? and if it detects that it is in the primary window of application, to simulate a "close task" when the assigned hw button is clicked..
and of course, when in the today screen , the vjokbutton should prompt for a suspend window for shutdown
can the above features be included in your next release? vijay555?
farbird: just a quick response for now, I need to sleep:
VJOKButt does already check every time it's pressed if the window is an "OK" or an "X", and does the necessary (ie it doesn't just close every app, it pressed ok if it needs to). Hopefully. If it doesn't, please detail the app it doesn't do this in. Not all apps respond to my emulated "OK" correctly, so it may not be 100% native.
Currently, pressing VJOkButt will close the app (if it's closable). If it takes you to the today screen, pressing it again will skip to next app. Pressing again, will close it. Continuous pressing will thus close all running apps in a cycle. Ultimately you will end up on the Today screen with no other running apps.
If you want me to, I can then implement a shutdown screen, so that a subsequent press will permit shutdown. But I provide VJEschaton for shutdown related stuff really. I'm not sure it's logical to build this into VJOkButt, but if you want, I'll think about it.
V
ya know...
I love your fast response...
great...
I will sit my butt in front of the monitor and refresh F5 this thread every 30mins and wait for your reply..
hehe
dank u
Hi guys,
My digitizer has died, and till the new one comes I was thinking of how I could use my T7272, I can write the SMS fine, but I can't send them out, cause the button is on the screen itself... is there a rom I could use freely w/o using the touchscreen?
P.S.
Is the digitizer hard to replace?
You could check out AE Button; it has some options like button presses that will activate soft buttons. I suspect you could send sms's using it. You could also try using mortscripts with AE button that will do stuff you need. There are some pretty simple scripts that will simulate screen taps, and you could assign them to a button push. I'd rather have a working touchscreen, though.
Here are some of the commands:
# 91: startmenu (on some devices it might be home button)
# 92: back key (not the backspace key but back key for closing applications which is available on some devices such as diamnd or blackstone)
# 93: menu key
#112: left softkey
#113: right softkey
#114: accept call (green button)
#115: hang up (red button)
#117: volume up
#118: volume down
#126: data disconnect
#127: toggle speaker
#133: devicelock
#223: power off
I use one to lock the device. Basically, you just put this:
Code:
sendspecial(133)
in a .txt file, and change the extension to .mscr. I call it Lock.mscr, and I have it assigned to a few different actions (like when a call comes in, a script locks the phone). So, sendspecial(112) and sendspecial(113) might help you out. There's also one for hitting 'Ok' in popups, which would probably work for you. I can't find it, though (google 'sendspecial' and you'll find it, it's all on msdn).
Anyway, if you install mortscript (maybe you already have it) as well as AE Button, you could assign button pushes to carry out those actions. Just stick the scripts somewhere easy, like the start menu, and it will be easy to set up.
If you want to get more complicated, there are also mortscript commands that simulate button pushes on the screen. You could set one up that would do just about anything. Also, SK Schema does similar stuff. You can write fairly simple sequences of button pushes that will do just about anything. This is one that I use that runs SK Tools Pim backup (I have it scheduled to run every night in the middle of the night).
#r(\windows\sktstart.exe) #p(STH:20)
#tap(146;602) #sleep(15000)
#tap(110;533) #sleep(500)
#tap(339;455) #sleep(500)
#tap(126;604) #sleep(500)
#tap(114;84) #sleep(500)
#tap(146;99) #sleep(5000)
#tap(310;254) #sleep(90000)
#tap(433;602) #sleep(10000)
#pwr() #sleep(10000)
Click to expand...
Click to collapse
Basically, the backup tool gets launched in line 1, then there are a bunch of screen taps (w/ delays, to make sure everything is ready) in the menus to get the right options selected, followed by turning the device off.
I`m not sure... But i saw somewhere app that emulate a mouse (cursor) and you will be able to control this mouse with your D-pad... But I can be wrong...
I can't install that mortscript w/o the touchscreen though..damn it..: )..
Get MyMobiler, and use it to run your device off of a pc. You should be able to get that working.
I'm trying to get my father to use a spare android phone that I have. I he's a senior so accessibility is a big concern. I've used a launcher to make the text and icon size pretty big.
But now he's having trouble with simple taps. When he tries to hit an icon or button, he accidentally does a small swipe of the icon causing it not to load.
I've realized no apps or links run on the initial touch down event but on the release (as long as there isn't a swipe or hold). Is there a way to change this so that the touch down event activates links?
Any help is appreciated.
Hi guys,
I had a quick question. On my surface pro, I've set the power button to put the device to sleep both on battery and on the power adaptor. But after a few minutes after pressing the button, it seems to turn off. Because when I press the power button, it shows the Surface logo again and boots fresh. Does anyone else have this problem and know how to fix it?
Second minor question. Can you scroll with the Wacom pen?
It does a full boot, not a hibernate restore? That would be odd. Check the event log for more info on what it's doing after you press the button.
As general advice, check your hibernate settings (is it enabled, when does it trigger, etc.)
Yea, well I'm not sure if it's a hibernate restore, but it does show the surface logo. And I checked the settings for power plan, and it says like, what to do with power button and I have itbset to sleep in all cases...not even hibernate.
also, how can I check the event logs and what should I look for
Showing the Surface logo just means that the system was in a powered-off state (hibernate counts). The easy (and obvious) way to tell if it's hibernate or full shutdown is whether your programs are still running when it comes up. Open a file in Notepad on the desktop or something...
To check Windows event logs
Right-click the Start button and choose Event Viewer (this is new in Win8, and handy).
Or, open the Start menu and type "event" (this has existed since Vista; still works on 8 for some things you need to select "Settings" on the right now, which is my biggest gripe with 8).
... do people still not know how to find things on Windows? The mind boggles.
Anyhow, check under Windows Logs -> System log for text like "sleep" or "hibernate" (you can use Ctrl+F to search). It may help to set a filter (option is on the right) of Event source: Kernel-Power, Power, and Power-Troubleshooter. Start at the top of the log (ensure it's sorted so this is most recent; it should be) and look for any indication of what happened.
Hey thanks! So looks like it is going in to hibernate, I checked that my apps were still open. so the question is, why hibernate and why not sleep? any other suggestions on how to troubleshoot this further?
Hibernate draws no power at all (literally, on devices with removable batteries, you can hibernate them and then remove power and battery and leave it on the shelf for a year, and it will resume where it left off when plugged in again). Sleep mode draws some power still; the RAM needs to be continually refreshed, and some system components will run in a low-power state to monitor for things like network wake-up messages.
You can use the Power Options in Windows (on the Desktop, right-click the battery icon, select Power Options, then chose "Change plan settings" for your selected power plan) to control the automatic hibernation behavior. It should be possible to turn it off, or at least set it to a long time. If you want to disable hibernation entirely, that can also be done but you'll need to use the command line. Open up an administrator command prompt (this can also be done from the Start button context menu) and type the following command:
powercfg -H off
Note that this will also free up some "disk" space on C: because hibernate works by writing the RAM out to disk. However, it will also mean that if the battery runs critical, the tablet will have no option but to shut down (currently, it will enter hibernate so you can pick up where you left off when you get to power).
So after scrolling through various activities, I stumbled across this one (see screenshot). It's a horizontal bar with a slider to increase or decrease the amount of time required to press and hold the power button before it activates.
However, as you can see in the screenshot, it's grayed out. Does anybody know how to unlock this setting without root? I'd love to be able to manipulate this setting. sideActions is/was the only application I know of that allowed you to manipulate this.
NOTE: This menu is accessible through the settings activity "Press and Hold Power Button". You need to use a third party application. Nova Launcher has an activity launcher and can even create shortcuts for quick access.