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 

singleinstance or ????

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



Joined: 26 May 2005
Posts: 18

PostPosted: Tue Jun 14, 2005 11:38 am    Post subject: singleinstance or ???? Reply with quote

I have gui/script that when i run from desktop icon...no problem...

But, when i put the gui/script through my mainframe system(SAP) as a favorite..i.e. launched as a file....I get the infamous singleinstance popup..

I've tried using #singelinstance ignore...but it simply doesn't work...plus it removes the favorite from my mainframe system....

BUT..if i instead add an additional step....launching as a favorite my desktop...then clicking on the gui/script icon...it works....

So, any ideas as to what is causing this is appreciated...i'll attach a bit of the script...without any #singleinstance lines as i've tried many...
Code:


WinWait, SAP Easy Access  Standard Menu - 
IfWinNotActive, SAP Easy Access  Standard Menu - WinActivate, SAP Easy Access  Standard Menu - WinWaitActive, SAP Easy Access  Standard Menu - SetMouseDelay, 100



Gui, Add, Text, y+35, THIS TEST PROGRAM xxxxxxxxx
Gui, Add, text, x60 y80 w100 h37, Enter 7 digit Number To Display Customer General Data:(XD03)
Gui, Add, Edit, vVar number limit7
Gui, add, Button, -default, OK

Gui, Add, text, gok1 x250 y80 w120 h37, Enter 7 digit Number To Display List of Customer Contracts:(VA45)
Gui, Add, Edit, vVar1 number limit7
Gui, Add, Button, gok1, OK

Gui, Add, text, x60 y196 w120 h13, Authorised User: (ZABC)
Gui, Add, Edit, vVar2 number limit7
Gui, Add, Button, gok2, OK



Gui, Show, x285 y151 h377 w477, CREATED AND DEVELOPED BY xxx


Return
Back to top
View user's profile Send private message
jimmyj



Joined: 26 May 2005
Posts: 18

PostPosted: Tue Jun 14, 2005 12:43 pm    Post subject: Reply with quote

think i figured out by removing top three lines..as not required in it's present form..as launch is from the standard menu...
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Tue Jun 14, 2005 12:52 pm    Post subject: Reply with quote

Please double check that your shortcuts are really shortcuts and not alternate copies of the script.

If that's not it, it might be difficult to reproduce this on systems lacking your setup. But if I ever can reproduce it, I would definitely try to fix it.

I checked the code and it doesn't appear to allow the dialog to appear when #SingleInstance Off/Ignore/Force is specified.

Edit: Fixed typo. By the way, thanks for the extra details below. If you find out more info and it still seems to be a bug, please let me know.


Last edited by Chris on Wed Jun 15, 2005 10:24 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
jimmyj



Joined: 26 May 2005
Posts: 18

PostPosted: Wed Jun 15, 2005 12:05 pm    Post subject: Reply with quote

well...it's taken as an application from my desktop and run's from there...let me know if this is incorrrect..it seems to 'popup' at random...yet i find nothing in my tasklist that it is already running...

it could be my system setup ..

yes..i've tested using all singleinstance's...popup is removed but the gui/sctript doesn't work properly....
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