AutoHotkey Community

It is currently May 27th, 2012, 1:23 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: June 21st, 2005, 12:13 pm 
Offline

Joined: June 6th, 2005, 11:35 pm
Posts: 179
Location: Northern Virginia
Whenever I select a letter from a combobox on a GUI i made it turns up blank instead of whatever letter I choose.

Heres my code:
Code:
;GUI FOR MARCO EXTENDER
Gui, Add, GroupBox, x10 y170 w435 h155, Marco Extender
Gui, Add, Text,xp+5 yp+15, Hotkeys that send spells: Insert, Home, PageUp, Delete, End, and PageDown
;
Gui, Add, Text, xp+0 yp+20, Insert Spell:
IniRead, ins, C:\Documents and Settings\Owner\Desktop\settings.ini, marcoex, Insert Spell:
Gui, Add, ComboBox, vInsert gInsertKey, a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U||V|W|X|Y|Z
;
Gui, Add, Text, xp+125 y205, Home Spell:
Gui, Add, ComboBox, vHome gHomeKey, a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V||W|X|Y|Z
;
Gui, Add, Text, xp+125 y205, PageUp Spell:
Gui, Add, ComboBox, vPageUp gPageUpKey, a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W||X|Y|Z
;
Gui, Add, Text, x15 y255, Delete Spell:
Gui, Add, ComboBox, vDelete gDeleteKey, a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X||Y|Z
;
Gui, Add, Text, xp+125 y255, End Spell:
Gui, Add, ComboBox, vEnd gEndKey, a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y||Z
;
Gui, Add, Text, xp+125 y255, PageDown Spell:
Gui, Add, ComboBox, vPageDown gPageDownKey, a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z||


There are a few double pipes ( the "|" character) after certain letters of the alphabet in the comboxes, which are there purposfully so that those are assumed. Just don't want you being confused bout that.

Is this a bug or did I write something wrong?

Full code here:
http://www.geocities.com/aikscroll/master.txt

_________________
_AiK


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 22nd, 2005, 10:30 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I think I see the problem with this. In the sections such as the following, you require a certain window
to be active for the "Gui Submit" to occur. If the window is not active, the submit does not occur and
the window's variables do not get updated:
Code:
IfWinActive, Nexus
   Gui, Submit, NoHide


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 23rd, 2005, 12:46 am 
Offline

Joined: June 6th, 2005, 11:35 pm
Posts: 179
Location: Northern Virginia
nope, i launched the proggy then ran my proggy and it still does the same thing. it look like its displayed then its deleted really fast. any idea why this is still happening?

_________________
_AiK


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2005, 4:44 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I ran the script with the change I mentioned above and it seems to work. You might try testing it against Notepad or some other window than the game to see if that helps. This is because sending keystrokes to games is sometimes a problem (as discussed in other topics), for which the following might help:

SetKeyDelay, 10, 10


Report this post
Top
 Profile  
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: No registered users and 1 guest


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