AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TabletPC / Flash community help!

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
cartoonmonkey



Joined: 01 Apr 2005
Posts: 7

PostPosted: Fri Apr 01, 2005 6:13 am    Post subject: TabletPC / Flash community help! Reply with quote

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
View user's profile Send private message
Invalid something er othe
Guest





PostPosted: Fri Apr 01, 2005 6:20 am    Post subject: Reply with quote

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

PostPosted: Fri Apr 01, 2005 6:51 am    Post subject: Help Redux Reply with quote

#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
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Fri Apr 01, 2005 7:24 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
cartoonmonkey



Joined: 01 Apr 2005
Posts: 7

PostPosted: Fri Apr 01, 2005 3:54 pm    Post subject: Hmmm Reply with quote

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
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Apr 01, 2005 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
cartoonmonkey



Joined: 01 Apr 2005
Posts: 7

PostPosted: Fri Apr 01, 2005 6:52 pm    Post subject: Reply with quote

I'm still not getting it.. anyone?
I'll trade you a cartoon for the working code..
Smile
Back to top
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Fri Apr 01, 2005 9:31 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
cartoonmonkey



Joined: 01 Apr 2005
Posts: 7

PostPosted: Fri Apr 01, 2005 11:54 pm    Post subject: Ok! Reply with quote

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
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sat Apr 02, 2005 1:24 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
cartoonmonkey



Joined: 01 Apr 2005
Posts: 7

PostPosted: Sat Apr 02, 2005 6:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
ULTRA



Joined: 15 Feb 2005
Posts: 18
Location: Ludwigsburg, Germany

PostPosted: Sat Apr 02, 2005 10:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Apr 03, 2005 2:52 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
cartoonmonkey



Joined: 01 Apr 2005
Posts: 7

PostPosted: Tue Apr 12, 2005 6:19 pm    Post subject: Thank you! Reply with quote

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
View user's profile Send private message
LocustFriend
Guest





PostPosted: Mon May 02, 2005 6:41 am    Post subject: You guys Reply with quote

You guys plus Google rule.
Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group