| View previous topic :: View next topic |
| Author |
Message |
cartoonmonkey
Joined: 01 Apr 2005 Posts: 7
|
Posted: Fri Apr 01, 2005 6:13 am Post subject: TabletPC / Flash community help! |
|
|
I (and all other tablet pc users who use Flash ) have a problem, and I think with autohotkey, I've found the holy grail!
Flash has problems running in real time, unless we tablet pc users boost the priority of the task "tabtip.exe" to high. (Not a problem, and easily done through the task manager) However, if you leave this process at high priority, and quit flash.. ( tabtip.exe controls the ink input panel for the tablet pc ) -the ink input suffers, stutters, and generally needs to be set back to Normal priority.
What I need is the following script, as an .exe:
1) Launches macromedia flash - flash.exe
2) Boosts tabtip.exe to high
3) watches to see if flash.exe ends, or is closed down
4) lowers priority of tabtip.exe back down to normal
Ultimately, it would be great for the script to watch to see if window focus changes / i.e: if the user switches to the desktop from Flash, tabtip.exe is changed back to normal priority.. if he switches focus back to flash, tabtip.exe is raised to high. User quits.. tabtip.exe goes back to normal.
I'm a novice at autohotkey and I'd appreciate any help I could get!
Thanks
Chad Essley
I've only been able to make a hotkey script that controlls tabtip.exe so far.. boosts it's priority to high or back to normal.. |
|
| Back to top |
|
 |
Invalid something er othe Guest
|
Posted: Fri Apr 01, 2005 6:20 am Post subject: |
|
|
WinGetActiveTitle
IfEqual
SetTimer
have a look at these, I think thats all youll need besides what you already know |
|
| Back to top |
|
 |
cartoonmonkey
Joined: 01 Apr 2005 Posts: 7
|
Posted: Fri Apr 01, 2005 6:51 am Post subject: Help Redux |
|
|
#z::
Process, Priority, tabtip.exe, high
Runwait, "C:\Program Files\Macromedia\Flash MX\flash.exe"
Process, Priority, tabtip.exe, normal
return
this does it.. but I'm having trouble with watching the flash window.. and switching priority when flash loses focus..
hmm..
c |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Fri Apr 01, 2005 7:24 am Post subject: |
|
|
| Code: | FlashWinTitle = Replace this text with title of the flash window
SetTimer, WatchFlash, 2000 ;Checks the window every 2 seconds
WatchFlash:
WinGetActiveTitle, ActiveTitle
If ActiveTitle <> %FlashWinTitle%
{
Process, Priority, tabtip.exe, normal
}
Else ;it is the active window so make it high priority
{
Process, Priority, tabtip.exe, high
}
Return
|
does this do the trick? _________________ my lame sig  |
|
| Back to top |
|
 |
cartoonmonkey
Joined: 01 Apr 2005 Posts: 7
|
Posted: Fri Apr 01, 2005 3:54 pm Post subject: Hmmm |
|
|
Yes, except flash changes it's window title when a new project is started..
Any way to watch to see if a process is active instead?
I'm thinking that I will leave autohotkey running all the time, (at startup, if that's possible) - always watching for flash.exe to run.
Here's what I currently have:
----------------------------------------
FlashWinTitle = Macromedia Flash MX - [Untitled-1] (this text in brackets changes)
SetTimer, WatchFlash, 2000 ;Checks the window every 2 seconds
WatchFlash:
SetTitleMatchMode, 2 ------------------?? Implemented incorrectly?
SetTitleMatchMode, slow
WinGetActiveTitle, ActiveTitle
If ActiveTitle <> %FlashWinTitle%
{
Process, Priority, tabtip.exe, normal
}
Else ;it is the active window so make it high priority
{
Process, Priority, tabtip.exe, high
}
Return
---------------------
Thanks
Chad |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Fri Apr 01, 2005 5:50 pm Post subject: |
|
|
| You could get the unique ID of the window and then use it with ahk_id. (I'm too lazy to get links, maybe someone else will follow up on this) |
|
| Back to top |
|
 |
cartoonmonkey
Joined: 01 Apr 2005 Posts: 7
|
Posted: Fri Apr 01, 2005 6:52 pm Post subject: |
|
|
I'm still not getting it.. anyone?
I'll trade you a cartoon for the working code..
 |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Fri Apr 01, 2005 9:31 pm Post subject: |
|
|
| Code: |
FlashWinTitle = Replace this text with the text the fash window always contains Ex, Flash
SetTimer, WatchFlash, 2000 ;Checks the window every 2 seconds
WatchFlash:
WinGetActiveTitle, ActiveTitle
If ActiveTitle Not Contains %FlashWinTitle%
{
Process, Priority, tabtip.exe, normal
}
Else ;it is the active window so make it high priority
{
Process, Priority, tabtip.exe, high
}
Return |
try this slightly moded ver _________________ my lame sig  |
|
| Back to top |
|
 |
cartoonmonkey
Joined: 01 Apr 2005 Posts: 7
|
Posted: Fri Apr 01, 2005 11:54 pm Post subject: Ok! |
|
|
That did it!!!
A thousand thank you's!
(I added ::z at the end to keep the script running at all times.)
I owe you 1 cartoon, sir. Names it and I draws it!
-Chad
--------------
FlashWinTitle = Flash
SetTimer, WatchFlash, 1000 ;Checks the window every 2 seconds
WatchFlash:
WinGetActiveTitle, ActiveTitle
If ActiveTitle Not Contains %FlashWinTitle%
{
Process, Priority, tabtip.exe, normal
}
Else ;it is the active window so make it high priority
{
Process, Priority, tabtip.exe, high
}
Return
z::
-------------------- |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sat Apr 02, 2005 1:24 am Post subject: |
|
|
well if I get a cartoon, thats sweetness. May I have Kurumi steel angels drawn for me, specifically karinka. any sexy pose I can make my back ground would be great. and I dont mind if she's partially nude. _________________ my lame sig  |
|
| Back to top |
|
 |
cartoonmonkey
Joined: 01 Apr 2005 Posts: 7
|
Posted: Sat Apr 02, 2005 6:24 pm Post subject: |
|
|
Hmm.. not sure if I can draw that one.. not too proficient at the anime you see. Here's a sketchbook of the type of stuff I do: http://www.cartoonmonkey.com/sketchbook.html
But in any case, I'll research and try to do my best... might be my slightly uh... different version though..
Thanks a million!
C |
|
| Back to top |
|
 |
ULTRA
Joined: 15 Feb 2005 Posts: 18 Location: Ludwigsburg, Germany
|
Posted: Sat Apr 02, 2005 10:52 pm Post subject: |
|
|
You don't have to add z:: to the end of the script to leave it in memory.
Add #Persistent to the top of the script. This way it stays in memory until
it encounters the ExitApp Command or it is closed in other ways. _________________ In a world without walls and fences who needs windows and gates? |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Apr 03, 2005 2:52 am Post subject: |
|
|
well I looked at your style, and I like it, so I have a different suggestion. I need a new logo for "the crystal society" currently its a cube with 3 faces showing, each has a letter, t, c, and s. I guess that would do well too. your choice. _________________ my lame sig  |
|
| Back to top |
|
 |
cartoonmonkey
Joined: 01 Apr 2005 Posts: 7
|
Posted: Tue Apr 12, 2005 6:19 pm Post subject: Thank you! |
|
|
Ok!
Got it done. You'll find it in vector, and bitmap formats there, for print, as well as a web version.
Get it on my blog.. www.cartoonmonkey.com
Best
C |
|
| Back to top |
|
 |
LocustFriend Guest
|
Posted: Mon May 02, 2005 6:41 am Post subject: You guys |
|
|
You guys plus Google rule.
Thanks. |
|
| Back to top |
|
 |
|