AutoHotkey Community

It is currently May 27th, 2012, 3:03 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: March 19th, 2010, 9:54 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
Actually guys, I spoke too soon. Once I implemented it into the actual script I noticed something. The PID for the spell check window doesn't exist but, it still shows up in the task manager. I'm not sure if this is fixable. If only I knew more about VBS language I think I could fix it. But, for now I'm okay with it wokring 80% of the time. Thank you.

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 10:26 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
plz post the script.

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 10:27 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
Code:
ButtonCheck:
Gui, Submit, NoHide
Clipboard = %words%
Run, C:\Users\%username%\Hotkeys\bin\spell.vbs
WinGet, procID, PID, ahk_class bosa_sdm_msword
WinShow, %PID% ; WinActivate doesn't work either
WinWait, Spell Checker
ControlSetText, edit8, %clipboard%, Quick Access Tool
Return

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 10:34 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
try this
Code:
ButtonCheck:
Gui, Submit, NoHide
Clipboard = %words%
Run, C:\Users\%username%\Hotkeys\bin\spell.vbs

winwait, ahk_class bosa_sdm_msword
winget, scPID, PID ; scPID holds the PID.
winshow, ahk_pid %PID% ; enter it this way.

ControlSetText, edit8, %clipboard%, Quick Access Tool
Return
you actually dont need the PID as winshow will look for last found window.

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 10:37 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
Mmm. It still has the same behavior. I'm not sure why this is happening. Are you able to recreate it, TLM?

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 10:39 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
I think what TLM meant was this:

Code:
ButtonCheck:
Gui, Submit, NoHide
Clipboard = %words%
Run, C:\Users\%username%\Hotkeys\bin\spell.vbs

winwait, ahk_class bosa_sdm_msword
winget, scPID, PID ; scPID holds the PID.
winshow, ahk_pid %scPID% ; enter it this way.

ControlSetText, edit8, %clipboard%, Quick Access Tool
Return

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 10:41 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
dam it :lol:

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 10:42 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
lol. Yep. That seems to work. Tested it quite a number of times with different words and situations and the spell checker comes up everytime. Thank you very much guys! I really appreciate it!

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 10:50 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
Its always good to know sinkfaze is watching Image!

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2010, 10:52 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
Nananananana SINKFAZE!

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: rbrtryn, Yahoo [Bot] and 29 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group