AutoHotkey Community

It is currently May 26th, 2012, 8:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: help with input
PostPosted: August 21st, 2009, 6:10 am 
After i enter my number it doesn't type anything anyone know why?



Code:
InputBox, Number, Enter your Number,

; Variables
num := 0
count := %Number%
return




Run notepad.exe
WinActivate, Untitled - Notepad
WinWaitActive, Untitled - Notepad
Loop, %count%
{
num++
Send, {SPACE}& MailHex%num%
}
Return





Exitapp


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2009, 6:17 am 
Offline

Joined: July 28th, 2009, 6:14 pm
Posts: 9
not an expert, but i think that you've made a few mistakes.

Code:
num = 0
count = %Number%
;or this way:
count := Number

Send, {space}MailHex%num%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2009, 6:20 am 
Offline

Joined: July 28th, 2009, 6:14 pm
Posts: 9
oh also, remove the return after the variables section.

Code:
InputBox, Number, Enter your Number,

; Variables
num = 0
count = %Number%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2009, 6:32 am 
mwsmith wrote:
oh also, remove the return after the variables section.

Code:
InputBox, Number, Enter your Number,

; Variables
num = 0
count = %Number%


Thanks it worked, the : was messing up everything


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Mickers, Pulover, tomoe_uehara and 53 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