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 

Autohotkey for Pocket PCs / WinCE / Smartphones
Goto page Previous  1, 2, 3 ... 13, 14, 15 ... 28, 29, 30  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Donny Bahama



Joined: 30 Dec 2006
Posts: 132
Location: Margaritaville (a state of mind somewhere between Inebriation and San Diego), CA

PostPosted: Tue Apr 14, 2009 4:09 am    Post subject: Reply with quote

OK, if anyone out there can help me with this one, I will be forever grateful!

I have 2 GUIs... #1 is on top. # 2 is not hidden, but it's not showing because it's behind GUI 1 and has the same X/Y and W/H dimensions as GUI 1.

How can I set the value (ControlSetText) of an edit control (Edit1) on GUI 2 - without actually switching to GUI 2?

I've tried ControlSetText, Gui2:Edit1
I've tried referencing the control's vVarName
Obviously, I can't use GuiControl (not supported in AHKCE)
I can get the window hwnd - but not the control hwnd (or can I?)

I even thought about using a whole different GUI as a "wait GUI" (i.e. just a big GUI with no buttons, etc. and the text "Please wait..." while I do stuff in the background (then destroy the "wait GUI") - but still, I can't set the text for Edit1 without showing GUI 2, so that defeats the whole purpose of that.

PLEASE tell me there's SOME way to do this!
Back to top
View user's profile Send private message
Donny Bahama



Joined: 30 Dec 2006
Posts: 132
Location: Margaritaville (a state of mind somewhere between Inebriation and San Diego), CA

PostPosted: Tue Apr 14, 2009 5:17 am    Post subject: I FOUND A WAY!!! Reply with quote

WOOT! I found a way!

I'm showing Gui 2, but I'm using
Code:
Gui, 2:Show, x-100 y-100 w10 h10, WinTitle
ControlSetText, Edit1,, WinTitle

I'm using this in conjunction with my aforementioned "Wait GUI". It's a hack and a kludge, but it looks and works very well, so I'm happy!
Back to top
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 537
Location: Germany

PostPosted: Tue Apr 14, 2009 5:56 pm    Post subject: Reply with quote

werD420 wrote:
Great Job man!
No luck on compression yet. UPX4PPC seems to break the executables. It would've been nice though
....
Does anyone else know any other exe compression tools for ppc to try?


Nevertheless, thank you for trying it
Ciao
Micha
Back to top
View user's profile Send private message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Tue Apr 14, 2009 7:57 pm    Post subject: Reply with quote

Hi everybody!

I have a problem with ahkCE. I start the program, he ask me if I want a sample script, I choose yes and... nothing.
I try to run the sample and my mobile tells me "... is not associated with a program..."

Can you help me please!

PS: I have a Samsung Player Addict (Omnia/i900)
Back to top
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 537
Location: Germany

PostPosted: Tue Apr 14, 2009 8:20 pm    Post subject: Reply with quote

TomXIII wrote:
Hi everybody!
I have a problem with ahkCE. I start the program, he ask me if I want a sample script, I choose yes and... nothing.
I try to run the sample and my mobile tells me "... is not associated with a program..."

Can you help me please!

PS: I have a Samsung Player Addict (Omnia/i900)


Hi, please read the first post. Use the script mentioned to assisiate the ahk extension with autohotkeyce.exe
Create a file with the same name "autohotkeyCE.ahk" and that script wil be startet automatically
Ciao
Micha
Back to top
View user's profile Send private message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Wed Apr 15, 2009 11:11 am    Post subject: Reply with quote

Yyeeessss, it works!!!
I'm so sorry to havn't read enough the first post!

A great THANKS for you MICHA!
Back to top
View user's profile Send private message
Donny Bahama



Joined: 30 Dec 2006
Posts: 132
Location: Margaritaville (a state of mind somewhere between Inebriation and San Diego), CA

PostPosted: Wed Apr 15, 2009 5:16 pm    Post subject: Reply with quote

Quote:
(v20) menu + menu, tray: since (AFAIK) there's no "right mouse click" on a PDA, I'm using just the left click.
Micha, could you (or someone) post a working code example for creating a menu? I don't seem to be able to get it to work.
Back to top
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 537
Location: Germany

PostPosted: Wed Apr 15, 2009 5:41 pm    Post subject: Reply with quote

Donny Bahama wrote:
Quote:
(v20) menu + menu, tray: since (AFAIK) there's no "right mouse click" on a PDA, I'm using just the left click.
Micha, could you (or someone) post a working code example for creating a menu? I don't seem to be able to get it to work.


Code:
 #Persistent
/*  Menu, test, add, Test1, MenuHandler
  Menu, test, add, Test2, MenuHandler
  Menu, test, add, Test3, MenuHandler
  Menu, test, add, Test4, MenuHandler
  Menu, test, add, Test5, MenuHandler
  Menu, test, Show 
*/ 
  Menu, tray, add  ; Creates a separator line.
  Menu, tray, add, Item1, MenuHandler  ; Creates a new menu item. 
}
return
MenuHandler:
MsgBox You selected %A_ThisMenuItem% from menu %A_ThisMenu%.
return

Ciao
Micha
Back to top
View user's profile Send private message
Donny Bahama



Joined: 30 Dec 2006
Posts: 132
Location: Margaritaville (a state of mind somewhere between Inebriation and San Diego), CA

PostPosted: Wed Apr 15, 2009 11:30 pm    Post subject: ACK! BUG! Reply with quote

Micha,

I found a bug (probably in the GUI, Submit code.) It works fine on the desktop version, but fails to retain edits made in a GUI, Edit control on Submit.

There's too much code to post here; there's 3 files (two flat-file database files and a large script) along with a bit of descriptive/how-to text. (It's not as bad as it sounds. Once you have the files and run them, you'll see the problem in less than a minute. I can point you to the exact (numbered) debug message, as well as point out some "no, it's not that" things. Wink ) I guess we can't attach files here, so if you don't mind, please PM me your email and I'll send them. Otherwise, I can post them to my http/ftp space.

If you can spare a little time, I'd really appreciate your attention on this. I have an app that's very nearly ready for a 1.0 beta release - except for the impact of this bug.
Back to top
View user's profile Send private message
sergeich



Joined: 11 Jan 2008
Posts: 20
Location: Russia

PostPosted: Thu Apr 16, 2009 10:36 am    Post subject: Reply with quote

AutoHotKeyCE ver. 21 cab file for Windows Mobile
After install file type *.ahk associated with program.

http://www.zshare.net/download/58724988bfb1d68e/
Back to top
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 537
Location: Germany

PostPosted: Thu Apr 16, 2009 5:45 pm    Post subject: Reply with quote

sergeich wrote:
AutoHotKeyCE ver. 21 cab file for Windows Mobile
After install file type *.ahk associated with program.

http://www.zshare.net/download/58724988bfb1d68e/

Hi sergeich,
thank you for that !!
Ciao
Micha
Back to top
View user's profile Send private message
Arco
Guest





PostPosted: Fri Apr 17, 2009 8:05 am    Post subject: Love it! Reply with quote

I love this implementation!! Even the compiler does its job!
Though, the Gui, add, picture does not function.
That's a pity, since I would love to make a 'skinned' window.

Any change the picture will be added?
Back to top
Frankie



Joined: 02 Nov 2008
Posts: 2850

PostPosted: Thu Apr 23, 2009 5:23 pm    Post subject: Reply with quote

Can you try to get UrlDownloadToFile and RegExMatch working? Those are two of the most useful commands/functions on a mobile phone. Theres endless uses for them that become even more useful when your not at home. Like making apps for weather, movies, stocks, ebay, myspace, facebook, youtube downloaders etc.
_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run
Back to top
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 537
Location: Germany

PostPosted: Thu Apr 23, 2009 6:54 pm    Post subject: Reply with quote

Frankie wrote:
Can you try to get UrlDownloadToFile and RegExMatch working? Those are two of the most useful commands/functions on a mobile phone. Theres endless uses for them that become even more useful when your not at home. Like making apps for weather, movies, stocks, ebay, myspace, facebook, youtube downloaders etc.

Hi Frankie,
it's on the todo list.
Currently I'm migrating to ahk build 1.48.0
The listcontrol is my next aim.
Then I'll have a look at regexmatch
Ciao
Micha
Back to top
View user's profile Send private message
Frankie



Joined: 02 Nov 2008
Posts: 2850

PostPosted: Fri Apr 24, 2009 12:56 am    Post subject: Reply with quote

Thanks.
_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 13, 14, 15 ... 28, 29, 30  Next
Page 14 of 30

 
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