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 

SendInput opening search window..?

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



Joined: 06 Jul 2008
Posts: 2

PostPosted: Sun Jul 06, 2008 10:16 pm    Post subject: SendInput opening search window..? Reply with quote

hey all, this is my first post on AutoHotKey forum.

anyways, i've got this script which pretty much goes to a specified page, reads a line of text from a .txt file and uses the sendinput to type it out quickly in the appropriate text box.

I had come across two problems.
1- it seemed as though after i used the sendinput command, the sleep command (waiting for the new page to load) wouldnt run (until i set the sleep to 10000)

and,

2- the big one - I'm sometimes getting the windows 'search for files and folders' window to popup

(http://www.microsoft.com/library/media/1033/windowsxp/images/using/setup/tips/67436-click-all-files-and-folders.gif) -this one.

i've looked into it and the only windows hotkeys i can find that would open that up is [windowskey]+f, but nowhere does my script say to hold down the windows key.

does anyone have any ideas for me?
(my first problem up there was sort of solved by me setting the sleep longer, and isn't really a big deal, just thought id mention it cause i was curious what i was doing wrong.)
Back to top
View user's profile Send private message
Mustang



Joined: 17 May 2007
Posts: 375
Location: England

PostPosted: Mon Jul 07, 2008 12:51 am    Post subject: Re: SendInput opening search window..? Reply with quote

Zida wrote:
i've got this script which pretty much goes to a specified page

Of which book?

Post your code
Back to top
View user's profile Send private message
Zida



Joined: 06 Jul 2008
Posts: 2

PostPosted: Mon Jul 07, 2008 2:50 am    Post subject: Reply with quote

i lol at your pun Wink

thing is though- it's a really simple script,

first it loads up a couple lines of the .txt file

Code:
FileReadLine, Nameline, C:\DATABASE\Directory.txt, %lineNumb%
lineNumb:=lineNumb+1
FileReadLine, Linkline, C:\DATABASE\Directory.txt, %lineNumb%
lineNumb:=lineNumb+1
FileReadLine, Summaryline, C:\DATABASE\Directory.txt, %lineNumb%
lineNumb:=lineNumb+1


then after going to the page and clicking on the box to enter into it just spews out these variables...

Code:
Send, Episode{SPACE}%Episode%{SPACE}-{SPACE}%Nameline%{SPACE}{TAB}
Sleep, 100
SendInput, [center][b]%Series%{SPACE}-{SPACE}Season{SPACE}%Season%{SPACE}-{SPACE}Episode{SPACE}%Episode%{SPACE}-{SPACE}%Nameline%[/b]{SHIFTDOWN}{ENTER}{SHIFTUP}
Sleep, 100
SendInput, {RIGHT}%Linkline%{END}{RIGHT}{RIGHT}{RIGHT}[/center]{SHIFTDOWN}{ENTER}{ENTER}{SHIFTUP}
Sleep, 100
SendInput, %Summaryline%
Sleep, 100
Send, {TAB}{ENTER}


what i have here is not so much a code problem as much as it is... i don't know, thats just the thing.
i used to have something like this script working fine without this error before i found the SendInput code, which just sped up my script like 200%.

i could always revert back to just the simple Send code and it'll all work, i was just wondering if someone else had issues with this (maybe the sendinput is spamming the keystrokes so fast it's screwing up...?)

likewise, if there was a code that would, in effect, just paste a stored string (rather than typing it out) that would work wonderfully.
Back to top
View user's profile Send private message
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